Android XML线性布局显示
大家早上好 我在解决问题时遇到了一些问题,需要一些帮助。我创建了一个名为comment\uu布局的XML资源文件。由于某些原因,我无法使布局全屏显示。请检查XML代码并提供帮助。正如您将在屏幕截图中看到的,注释布局加载到父布局上,这正是我想要的,但是,我希望注释布局是全屏的Android XML线性布局显示,android,layout,display,Android,Layout,Display,大家早上好 我在解决问题时遇到了一些问题,需要一些帮助。我创建了一个名为comment\uu布局的XML资源文件。由于某些原因,我无法使布局全屏显示。请检查XML代码并提供帮助。正如您将在屏幕截图中看到的,注释布局加载到父布局上,这正是我想要的,但是,我希望注释布局是全屏的 父XML: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.andro
父XML:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/component_wizard_layout_parent__relative"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/component_wizard_layout_parent"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/frame_component_wizard_manager"/>
<LinearLayout
android:id="@+id/component_wizard_component_popup__layout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
你是什么意思?您的comment\u布局
已设置为全屏显示,因为其高度设置为match\u parent
!!请将您的java代码发布在您正在膨胀的comment\uu layout.xml的位置。显示您的父布局xml以及您正在显示注释布局的父布局xml。我无法添加java代码。这可能超出你的理解水平。我没有使用原生android,我已经编写了自己的组件系统,它基本上取代了androidView
,并基于数据载体中包含的数据动态构建GUI。我已经包括了家长的建议,这可能超出了你的理解水平,那么你不应该在这里问这个问题。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/component_wizard_layout_parent__relative"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/component_wizard_layout_parent"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/frame_component_wizard_manager"/>
<LinearLayout
android:id="@+id/component_wizard_component_popup__layout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>