public void init() { // gallery_adapter=new hotelgalleryAdapter(context, // gallery_list);---------------------------广告位--------------------------------- // hotel_adapter=new hotelAdapter(context, hotel_list); hotel_adapter = new hotelAdapter(context, hotel_list); // hotelGallery=(Gallery)findViewById(R.id.hotel_gallery); 广告栏 // hotel_View=(FlowIndicator)findViewById(R.id.hotel_view); 广告栏 hotel_listview = (CommentListView) findViewById(R.id.hotel_list); // hotel_gallery_layout=(FrameLayout)findViewById(R.id.hotel_gallery_layout); 广告栏 // // hotelGallery.setAdapter(gallery_adapter);---------------------------广告位--------------------------------- hotel_listview.setAdapter(hotel_adapter); }