3-7
FrameLayout(帧布局)
-
android:foreground:*设置改帧布局容器的前景图像
-
android:foregroundGravity:设置前景图像显示的位置
-
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/FrameLayout1" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" android:foreground="@drawable/logo" android:foregroundGravity="right|bottom"> <TextView android:layout_width="200dp" android:layout_height="200dp" android:background="../style/images/android-tutorial-framelayout.html" /> <TextView android:layout_width="150dp" android:layout_height="150dp" android:background="../style/images/android-tutorial-framelayout.html" /> <TextView android:layout_width="100dp" android:layout_height="100dp" android:background="../style/images/android-tutorial-framelayout.html" /> </FrameLayout>

浙公网安备 33010602011771号