aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorDocile-Alligator <chineseperson5@gmail.com>2022-06-03 05:03:32 +0000
committerDocile-Alligator <chineseperson5@gmail.com>2022-06-03 05:03:32 +0000
commitd88e18208274995dadfaf1a3ca03e77be946fb63 (patch)
tree39e09dd1e90d53383606f20bbb8440772d601abb /app/src/main/res
parent73c662159fd06d99166bc80d7500c8f850d21813 (diff)
downloadinfinity-for-reddit-d88e18208274995dadfaf1a3ca03e77be946fb63.tar
infinity-for-reddit-d88e18208274995dadfaf1a3ca03e77be946fb63.tar.gz
infinity-for-reddit-d88e18208274995dadfaf1a3ca03e77be946fb63.tar.bz2
infinity-for-reddit-d88e18208274995dadfaf1a3ca03e77be946fb63.tar.lz
infinity-for-reddit-d88e18208274995dadfaf1a3ca03e77be946fb63.tar.xz
infinity-for-reddit-d88e18208274995dadfaf1a3ca03e77be946fb63.tar.zst
infinity-for-reddit-d88e18208274995dadfaf1a3ca03e77be946fb63.zip
Add a link handler in SearchActivity.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_search.xml39
1 files changed, 28 insertions, 11 deletions
diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_search.xml
index cb3305fe..8d4055ca 100644
--- a/app/src/main/res/layout/activity_search.xml
+++ b/app/src/main/res/layout/activity_search.xml
@@ -21,18 +21,35 @@
app:popupTheme="@style/AppTheme.PopupOverlay"
app:navigationIcon="?attr/homeAsUpIndicator">
- <EditText
- android:id="@+id/search_edit_text_search_activity"
+ <LinearLayout
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#00000000"
- android:gravity="top"
- android:hint="@string/search"
- android:maxLines="1"
- android:textSize="?attr/font_20"
- android:fontFamily="?attr/font_family"
- android:inputType="textNoSuggestions"
- android:imeOptions="actionSearch" />
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="16dp">
+
+ <EditText
+ android:id="@+id/search_edit_text_search_activity"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:background="#00000000"
+ android:hint="@string/search"
+ android:maxLines="1"
+ android:textSize="?attr/font_20"
+ android:fontFamily="?attr/font_family"
+ android:inputType="textNoSuggestions"
+ android:imeOptions="actionSearch" />
+
+ <ImageView
+ android:id="@+id/link_handler_image_view_search_activity"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="8dp"
+ android:src="@drawable/ic_open_link_24dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/actionBarItemBackground" />
+
+ </LinearLayout>
</androidx.appcompat.widget.Toolbar>