【www.gdgbn.com--.Net开发】
非常简单的一个布局,实现一个层叠的效果,运行效果如下图:
<framelayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>android:layout_width="300dip"
android:layout_height="300dip"
android:background="#00008b"
android:layout_gravity="center"
/>android:layout_width="250dip"
android:layout_height="250dip"
android:background="#0000cd"
android:layout_gravity="center"
/>android:layout_width="200dip"
android:layout_height="200dip"
android:background="#0000ff"
android:layout_gravity="center"
/>android:layout_width="150dip"
android:layout_height="150dip"
android:background="#00bfff"
android:layout_gravity="center"
/>android:layout_width="100dip"
android:layout_height="100dip"
android:background="#00ced1"
android:layout_gravity="center"
/>
</framelayout>





samples/compound.xml
7:23 the root-level <framelayout/> can be replaced with
11:21 this linearlayout layout or its framelayout parent is useless
samples/simple.xml 提示未使用到该布局
7:7 the root-level <framelayout/> can be replaced with
samples/too_deep.xml
-1:-1 this layout has too many nested layouts: 13 levels, it should have <= 10!
20:81 this linearlayout layout or its linearlayout parent is useless
24:79 this linearlayout layout or its linearlayout parent is useless
28:77 this linearlayout layout or its linearlayout parent is useless
32:75 this linearlayout layout or its linearlayout parent is useless
36:73 this linearlayout layout or its linearlayout parent is useless
40:71 this linearlayout layout or its linearlayout parent is useless
44:69 this linearlayout layout or its linearlayout parent is useless
48:67 this linearlayout layout or its linearlayout parent is useless
52:65 this linearlayout layout or its linearlayout parent is useless
56:63 this linearlayout layout or its linearlayout parent is useless
samples/too_many.xml
7:413 the root-level <framelayout/> can be replaced with
-1:-1 this layout has too many views: 81 views, it should have <= 80!
samples/useless.xml 提示该布局中有太多的控件
7:19 the root-level <framelayout/> can be replaced with
11:17 this linearlayout layout or its framelayout parent is useless