我想像下图那样叠加 imageview 和 gallery
我试过这样的..
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="70dp" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/title_header" />
<Gallery
android:id="@+id/Gallery"
android:layout_width="fill_parent"
android:layout_height="wrap_content"></Gallery>
</RelativeLayout>
但它不是叠加层。请帮助我..
最佳答案
请试试这个
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="70dp" >
<Gallery
android:id="@+id/Gallery"
android:layout_width="fill_parent"
android:layout_marginTop="10dip"
android:layout_height="wrap_content"></Gallery>
<ImageView
android:layout_width="wrap_content"
android:layout_alignParentTop="true"
android:layout_height="wrap_content"
android:src="@drawable/title_header" />
</RelativeLayout>
android:layout_marginTop="10dip"
根据需要赋值。
关于android - 如何在图库上叠加 ImageView ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14810527/