Android下实现控件的叠加显示

<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>

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。