首页 > 移动平台 > 详细

Android下实现控件的叠加显示

时间:2015-03-21 18:37:15      阅读:442      评论:0      收藏:0      [点我收藏+]

<FrameLayout
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_marginTop="5dip"
android:orientation="vertical" >
<Gallery
android:id="@+id/pro_detail_gallery"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="0dp"
/>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:layout_marginBottom="20dip"
android:layout_marginLeft="50dip"
android:layout_marginRight="50dip"
android:layout_gravity="bottom"
>
<TextView
android:id="@+id/pro_priceTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="#000" />
<Button
android:id="@+id/buy_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_alignParentRight="true"
android:text="购入囊中"
android:textColor="#fff"
android:background="@drawable/buy" />


</RelativeLayout>
</FrameLayout>

Android下实现控件的叠加显示

原文:http://www.cnblogs.com/happyaday/p/4355914.html

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