Abi*_*han 8 android view android-imageview
我有三个ImageViews,我想要1 ImageView在后台,另外2个图像应该放在那个.我无法使用任何其他视图,因为图像是以无法设置为Linear或Relative布局背景的图像形式下载的.
第一张图片

这是第二张图片我想要的是什么

Ham*_*atu 11
您可以尝试以下xml布局...
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" >
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/ic_launcher"
android:scaleType="fitXY" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="100dip"
android:background="@drawable/ic_launcher" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:layout_marginBottom="100dip"
android:background="@drawable/ic_launcher" />
</FrameLayout>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
26205 次 |
| 最近记录: |