码迷,mamicode.com
首页 > 移动开发 > 详细

Android下实现控件的叠加显示

时间:2015-03-21 18:40:07      阅读:147      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!