重用横向和纵向布局

时间:2019-10-28 05:50:25

标签: android xml

如何重新使用横向和纵向布局?

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
    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" >

    <fragment
        android:id="@+id/userFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:layout="@layout/user_fragment" />

</android.support.constraint.ConstraintLayout>

0 个答案:

没有答案