以一种布局方式打天下,难以在界面设计布置上比较棘手,而充分利用各种样式,可以提供界面各控件位置布置的便利性。下面就是以ConstraintLayout和LinearLayout混合搭配使用为样例,如下:
<?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"
tools:context=".SurveyBrowseIAngleRecordActivity">
<LinearLayout
android:id="@+id/ll_SurveyBrowseIAngleRecordActivity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_pare