|
|
@@ -1,75 +1,79 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<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:id="@+id/relativeLayout3"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content" >
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/border">
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/aname"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentLeft="true"
|
|
|
- android:layout_alignParentTop="true"
|
|
|
+ android:layout_marginStart="7dp"
|
|
|
+ android:layout_marginTop="7dp"
|
|
|
android:text="Medium Text"
|
|
|
- android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintVertical_chainStyle="packed" />
|
|
|
|
|
|
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="fill_parent"
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/et_from"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_below="@+id/aname"
|
|
|
- android:orientation="vertical" >
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content" >
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/et_from"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
- android:ems="10"
|
|
|
- android:hint="@string/str_from"
|
|
|
-
|
|
|
- android:focusable="false"
|
|
|
- />
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_clear_from"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
- android:text="@string/str_clear" />
|
|
|
-
|
|
|
- </LinearLayout>
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content" >
|
|
|
+ android:ems="10"
|
|
|
+ android:focusable="false"
|
|
|
+ android:hint="@string/str_from"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/btn_clear_from"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/aname"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/aname" />
|
|
|
|
|
|
- <EditText
|
|
|
- android:id="@+id/et_to"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
- android:ems="10"
|
|
|
- android:hint="@string/str_to"
|
|
|
- android:focusable="false"
|
|
|
- >
|
|
|
-
|
|
|
- <requestFocus />
|
|
|
- </EditText>
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_clear_to"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
- android:text="@string/str_clear"/>
|
|
|
-
|
|
|
- </LinearLayout>
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_clear_from"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="39dp"
|
|
|
+ android:layout_marginEnd="7dp"
|
|
|
+ android:background="@drawable/btn_bg"
|
|
|
+ android:text="@string/str_clear"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/et_from"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/et_from" />
|
|
|
+
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/et_to"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="7dp"
|
|
|
+ android:ems="10"
|
|
|
+ android:focusable="false"
|
|
|
+ android:hint="@string/str_to"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/btn_clear_to"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/et_from"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/et_from">
|
|
|
+
|
|
|
+ <requestFocus
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+ </EditText>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_clear_to"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="39dp"
|
|
|
+ android:layout_marginEnd="7dp"
|
|
|
+ android:background="@drawable/btn_bg"
|
|
|
+ android:text="@string/str_clear"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/et_to"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/et_from" />
|
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
|
-</RelativeLayout>
|
|
|
+</android.support.constraint.ConstraintLayout>
|