diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-18 03:14:31 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-18 03:14:31 +0000 |
commit | ee4a0167a3b27755527023faba9a9bc00f5b91ee (patch) | |
tree | fe4bbd484f933e8036664ec8c3ac16dc21c9061b /app/src/main/res | |
parent | 28400822af6024906fccd8fb9893594d283bee1e (diff) | |
download | infinity-for-reddit-ee4a0167a3b27755527023faba9a9bc00f5b91ee.tar infinity-for-reddit-ee4a0167a3b27755527023faba9a9bc00f5b91ee.tar.gz infinity-for-reddit-ee4a0167a3b27755527023faba9a9bc00f5b91ee.tar.bz2 infinity-for-reddit-ee4a0167a3b27755527023faba9a9bc00f5b91ee.tar.lz infinity-for-reddit-ee4a0167a3b27755527023faba9a9bc00f5b91ee.tar.xz infinity-for-reddit-ee4a0167a3b27755527023faba9a9bc00f5b91ee.tar.zst infinity-for-reddit-ee4a0167a3b27755527023faba9a9bc00f5b91ee.zip |
Fix https://github.com/Docile-Alligator/Infinity-For-Reddit/issues/1508. Minor UI tweaks in SearchActivity.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/activity_search.xml | 25 | ||||
-rw-r--r-- | app/src/main/res/layout/item_recent_search_query.xml | 16 |
2 files changed, 24 insertions, 17 deletions
diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_search.xml index 1a4580c6..4589d6ac 100644 --- a/app/src/main/res/layout/activity_search.xml +++ b/app/src/main/res/layout/activity_search.xml @@ -87,11 +87,15 @@ android:id="@+id/search_in_text_view_search_activity" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_margin="16dp" + android:layout_marginStart="16dp" + android:layout_marginTop="16dp" + android:layout_marginEnd="16dp" + android:layout_marginBottom="16dp" + android:layout_centerVertical="true" + android:fontFamily="?attr/font_family" android:text="@string/search_in" android:textColor="?attr/colorAccent" - android:textSize="?attr/font_default" - android:fontFamily="?attr/font_family" /> + android:textSize="?attr/font_default" /> <TextView android:id="@+id/subreddit_name_text_view_search_activity" @@ -105,16 +109,17 @@ android:textColor="?attr/primaryTextColor" android:textSize="?attr/font_default" android:fontFamily="?attr/font_family" /> - <ImageView - android:id="@+id/delete_all_recent_searches_image_view_search_activity" + + <com.google.android.material.button.MaterialButton + android:id="@+id/delete_all_recent_searches_button_search_activity" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" - android:padding="16dp" - android:clickable="true" - android:focusable="true" - android:src="@drawable/ic_delete_all_24" - app:tint="@color/primaryTextColor" /> + android:layout_centerVertical="true" + app:strokeWidth="0dp" + app:icon="@drawable/ic_delete_all_24" + app:iconSize="24dp" + style="?attr/materialIconButtonOutlinedStyle" /> </RelativeLayout> diff --git a/app/src/main/res/layout/item_recent_search_query.xml b/app/src/main/res/layout/item_recent_search_query.xml index 8fdc502c..e23e7378 100644 --- a/app/src/main/res/layout/item_recent_search_query.xml +++ b/app/src/main/res/layout/item_recent_search_query.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" + xmlns:app="http://schemas.android.com/apk/res-auto" android:clickable="true" android:focusable="true" android:background="?attr/selectableItemBackground"> @@ -13,19 +13,21 @@ android:layout_height="wrap_content" android:layout_weight="1" android:layout_gravity="center_vertical" + android:gravity="center_vertical" android:fontFamily="?attr/font_family" android:textSize="?attr/font_default" android:padding="16dp" android:drawablePadding="16dp" /> - <ImageView - android:id="@+id/delete_image_view_item_recent_search_query" + <com.google.android.material.button.MaterialButton + android:id="@+id/delete_button_item_recent_search_query" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:padding="16dp" - android:clickable="true" - android:focusable="true" - android:background="?attr/selectableItemBackground" /> + app:strokeWidth="0dp" + app:iconSize="24dp" + app:iconTint="@null" + style="?attr/materialIconButtonOutlinedStyle" /> </LinearLayout>
\ No newline at end of file |