首页 > 其他 > 详细

探索Gallery和ImageSwitcher布局

时间:2014-11-27 21:45:05      阅读:294      评论:0      收藏:0      [点我收藏+]
 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 2     android:layout_width="match_parent"
 3     android:layout_height="match_parent"
 4     android:orientation="vertical"
 5     >
 6     <Gallery 
 7         android:id="@+id/img_gallery"
 8         android:layout_width="fill_parent"
 9         android:layout_height="110px"
10         android:layout_marginTop = "100px"
11         android:layout_alignParentLeft="true"
12         />
13     <ImageSwitcher 
14         android:id="@+id/image_switcher"
15         android:layout_width="90px"
16         android:layout_height="90px"
17         android:layout_alignParentTop="true"
18         android:layout_centerHorizontal="true"
19         android:layout_alignBottom="@+id/img_gallery"
20         
21         ></ImageSwitcher>
22 </RelativeLayout>

bubuko.com,布布扣

当把上面Gallery一项属性改成android:layout_marginTop = "0px",出现下面的效果

bubuko.com,布布扣

 

探索Gallery和ImageSwitcher布局

原文:http://www.cnblogs.com/hixin/p/4127078.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!