小编Muh*_*eer的帖子

具有不同屏幕尺寸的Android RelativeLayout问题

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.testing.testinglibraryapps.Main2Activity">

<RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

    </RelativeLayout>
    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

    </RelativeLayout>


</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)

如何将Android屏幕分为两部分.即一个相对布局应位于屏幕的3/4部分,其他布局应为1/4

我应该在这里设置什么属性来实现我想要的布局

android android-layout android-relativelayout

-1
推荐指数
1
解决办法
59
查看次数