有人可以向我解释一下,为什么我的布局上的 DecorView 的子级是 FrameLayout,而我还没有定义它?
这是xml布局
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background_general" >
<ImageView
android:id="@+id/ivIKUGo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:src="@drawable/mainbutton_selector" />
<ImageView
android:id="@+id/imageViewmoto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginBottom="150dp"
android:src="@drawable/motto_buttonpage_hdpi" />
</RelativeLayout>
Thanks
你将会有一个LinearLayout
在。。之间DecorView
和FrameLayout
其中包含的内容Activity
如果您使用普通主题。如果您使用NoTitleBar
主题类型,那么就不需要额外的LinearLayout
所以它被删除留下内容FrameLayout
作为 的孩子DecorView
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)