Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/220.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android XML线性布局显示_Android_Layout_Display - Fatal编程技术网

Android 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

大家早上好

我在解决问题时遇到了一些问题,需要一些帮助。我创建了一个名为comment\uu布局的XML资源文件。由于某些原因,我无法使布局全屏显示。请检查XML代码并提供帮助。正如您将在屏幕截图中看到的,注释布局加载到父布局上,这正是我想要的,但是,我希望注释布局是全屏的


父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,我已经编写了自己的组件系统,它基本上取代了android
View
,并基于数据载体中包含的数据动态构建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>