2012-02-14 71 views
0

我想创建一个包含六个图像库小部件的屏幕。六个不同的小部件将被垂直堆叠/排列。应该可以垂直滚动。垂直堆叠六个图库小部件的视图

实施是像在当前BBC Android应用市场(https://market.android.com/details?id=bbc.mobile.news.uk)

我试图把六滚动视图中的图库小部件。但是垂直滚动不平滑。我认为我的实施不正确。我应该如何继续创建BBC应用UI?

<LinearLayout android:orientation="vertical" 
     android:layout_width="fill_parent" android:layout_height="fill_parent"> 
     <Gallery android:layout_width="fill_parent" 
      android:layout_height="wrap_content" android:id="@+id/gallery1"> 
     </Gallery> 
     <Gallery android:layout_width="fill_parent" 
      android:layout_height="wrap_content" android:id="@+id/gallery2"> 
     </Gallery> 
     <Gallery android:layout_width="fill_parent" 
      android:layout_height="wrap_content" android:id="@+id/gallery3"> 
     </Gallery> 
     <Gallery android:layout_width="fill_parent" 
      android:layout_height="wrap_content" android:id="@+id/gallery4"> 
     </Gallery> 
     <Gallery android:layout_width="fill_parent" 
      android:layout_height="wrap_content" android:id="@+id/gallery5"> 
     </Gallery> 

     <Gallery android:layout_width="fill_parent" 
      android:layout_height="wrap_content" android:id="@+id/gallery6"> 
     </Gallery> 

    </LinearLayout> 
</ScrollView> 

+0

你可以发布你目前的尝试吗?特别是XML布局? – 2012-02-14 18:45:14

回答

0

打开硬件加速帮助smmothen滚动。