diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-10-21 17:04:34 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-10-21 17:04:34 +0900 |
commit | 5ac6ace581471dd0747aff57d976b993d43a6938 (patch) | |
tree | 8bccac26f75bbaa8552e7862562bcafb9b6615cc /app/src/main/res/layout/page_fragment_search.xml | |
parent | 6d21ef69a3420987d1f683128a59fd4c200fc1ed (diff) | |
download | SmileEssence-5ac6ace581471dd0747aff57d976b993d43a6938.tar.gz |
uauawip
Diffstat (limited to 'app/src/main/res/layout/page_fragment_search.xml')
-rw-r--r-- | app/src/main/res/layout/page_fragment_search.xml | 111 |
1 files changed, 57 insertions, 54 deletions
diff --git a/app/src/main/res/layout/page_fragment_search.xml b/app/src/main/res/layout/page_fragment_search.xml index e5cac1d7..b4dd128b 100644 --- a/app/src/main/res/layout/page_fragment_search.xml +++ b/app/src/main/res/layout/page_fragment_search.xml @@ -1,63 +1,66 @@ -<LinearLayout 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" android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical"> + android:layout_height="match_parent"> - <RelativeLayout - android:id="@+id/layout_search_config" - android:layout_width="match_parent" + <ImageButton + android:id="@+id/button_search_queries" + android:layout_width="40dp" android:layout_height="40dp" - android:layout_marginBottom="5dp" - android:layout_marginLeft="5dp" - android:layout_marginRight="5dp" - android:layout_marginTop="10dp"> + android:layout_marginStart="8dp" + android:layout_marginTop="8dp" + android:background="?selectableItemBackgroundBorderless" + android:src="@drawable/ic_view_list_black_24dp" + android:tint="?color_nonactivatable" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> - <ImageButton - android:id="@+id/button_search_queries" - android:layout_width="40dp" - android:layout_height="match_parent" - android:layout_alignParentLeft="true" - android:layout_gravity="fill" - android:background="?selectableItemBackgroundBorderless" - android:src="@drawable/ic_view_list_black_24dp" - android:tint="?color_nonactivatable" /> - - <EditText - android:id="@+id/edittext_search" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_toLeftOf="@+id/button_search_execute" - android:layout_toRightOf="@+id/button_search_queries" - android:imeOptions="actionSearch" - android:inputType="text" /> + <EditText + android:id="@+id/edittext_search" + android:layout_width="0dp" + android:layout_height="40dp" + android:layout_marginEnd="8dp" + android:layout_marginStart="8dp" + android:layout_marginTop="8dp" + android:imeOptions="actionSearch" + android:inputType="text" + app:layout_constraintEnd_toStartOf="@+id/button_search_execute" + app:layout_constraintStart_toEndOf="@+id/button_search_queries" + app:layout_constraintTop_toTopOf="parent" /> - <ImageButton - android:id="@+id/button_search_execute" - android:layout_width="40dp" - android:layout_height="match_parent" - android:layout_gravity="fill" - android:layout_toLeftOf="@+id/button_search_save" - android:background="?selectableItemBackgroundBorderless" - android:src="@drawable/ic_search_black_24dp" - android:tint="?color_nonactivatable" /> + <ImageButton + android:id="@+id/button_search_execute" + android:layout_width="40dp" + android:layout_height="40dp" + android:layout_marginEnd="8dp" + android:layout_marginTop="8dp" + android:background="?selectableItemBackgroundBorderless" + android:src="@drawable/ic_search_black_24dp" + android:tint="?color_nonactivatable" + app:layout_constraintEnd_toStartOf="@+id/button_search_save" + app:layout_constraintTop_toTopOf="parent" /> - <ImageButton - android:id="@+id/button_search_save" - android:layout_width="40dp" - android:layout_height="match_parent" - android:layout_alignParentRight="true" - android:layout_gravity="fill" - android:background="?selectableItemBackgroundBorderless" - android:src="@drawable/ic_save_black_24dp" - android:tint="?color_nonactivatable" /> - </RelativeLayout> + <ImageButton + android:id="@+id/button_search_save" + android:layout_width="40dp" + android:layout_height="40dp" + android:layout_marginEnd="8dp" + android:layout_marginTop="8dp" + android:background="?selectableItemBackgroundBorderless" + android:src="@drawable/ic_save_black_24dp" + android:tint="?color_nonactivatable" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" /> <FrameLayout - android:layout_width="match_parent" - android:layout_height="1dp" - android:background="?attr/color_list_divider" - android:paddingBottom="2dp" - android:paddingTop="2dp" /> + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_marginTop="8dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/edittext_search"> - <include layout="@layout/page_fragment_refreshable_timeline" /> -</LinearLayout> + <include layout="@layout/page_fragment_refreshable_timeline" /> + </FrameLayout> +</android.support.constraint.ConstraintLayout> |