首页 > 解决方案 > 重用横向和纵向的布局

问题描述

如何对横向和纵向进行布局重用?

<?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>

标签: androidxml

解决方案


推荐阅读