< 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=".MainActivity"> < LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" tools:layout_editor_absoluteX="136dp" tools:layout_editor_absoluteY="0dp" android:orientation="vertical" tools:ignore="MissingConstraints"> < WebView android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1"> </ WebView > < LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" android:layout_weight="3"> < Button android:id="@+id/btnLeft" android:layout_weight="1" android:layout_width="match_parent" android:layout_height="match_parent" android:text="左边" /> < EditText android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:gravity="center" android:text="0"/> < Button android:id="@+id/btnRight" android:layout_weight="1" android:layout_width="match_parent" android:layout_height="match_parent" android:text="右边" /> </ LinearLayout > </ LinearLayout > </ android.support.constraint.ConstraintLayout > |