session-android/app/src/main/res/layout/giphy_activity_toolbar.xml

92 lines
4.5 KiB
XML
Raw Normal View History

2016-10-17 02:05:07 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-08-26 09:02:40 +00:00
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="org.thoughtcrime.securesms.giph.ui.GiphyActivity">
2016-10-17 02:05:07 +00:00
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
2020-08-26 09:02:40 +00:00
android:orientation="horizontal"
tools:layout_height="80dp"
tools:theme="@style/Theme.TextSecure.DayNight.NoActionBar">
2016-10-17 02:05:07 +00:00
<ImageView android:id="@+id/action_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:clickable="true"
android:background="@drawable/circle_touch_highlight_background"
2020-08-26 09:02:40 +00:00
android:src="@drawable/ic_baseline_search_24" />
2016-10-17 02:05:07 +00:00
<LinearLayout android:id="@+id/toggle_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<EditText android:id="@+id/search_view"
android:layout_height="wrap_content"
android:layout_width="0px"
android:layout_weight="1"
2020-01-13 04:29:06 +00:00
android:layout_marginStart="6dp"
2016-10-17 02:05:07 +00:00
android:hint="@string/giphy_activity_toolbar__search_gifs_and_stickers"
2020-08-26 09:02:40 +00:00
android:textColor="?android:textColorPrimary"
android:textColorHint="?android:textColorTertiary"
2020-01-13 04:29:06 +00:00
android:textCursorDrawable="@drawable/session_edit_text_cursor"
2016-10-17 02:05:07 +00:00
android:maxLines="1"
android:singleLine="true"
android:ellipsize="end"
2016-10-17 02:05:07 +00:00
android:imeOptions="actionSearch"
android:background="@android:color/transparent"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"/>
<ImageView android:id="@+id/search_clear"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:clickable="true"
android:focusable="true"
android:visibility="invisible"
android:background="@drawable/circle_touch_highlight_background"
2020-08-26 09:02:40 +00:00
android:src="@drawable/ic_baseline_clear_24" />
2016-10-17 02:05:07 +00:00
<org.thoughtcrime.securesms.components.AnimatingToggle
android:id="@+id/button_toggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingStart="10dp"
android:paddingEnd="10dp"
2016-10-17 02:05:07 +00:00
android:gravity="center">
<ImageView android:id="@+id/view_grid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:clickable="true"
android:visibility="visible"
android:focusable="true"
android:background="@drawable/circle_touch_highlight_background"
2020-08-26 09:02:40 +00:00
android:src="@drawable/ic_baseline_dashboard_24" />
2016-10-17 02:05:07 +00:00
<ImageView android:id="@+id/view_stream"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:visibility="gone"
android:clickable="true"
android:focusable="true"
android:background="@drawable/circle_touch_highlight_background"
2020-08-26 09:02:40 +00:00
android:src="@drawable/ic_baseline_view_stream_24" />
2016-10-17 02:05:07 +00:00
</org.thoughtcrime.securesms.components.AnimatingToggle>
</LinearLayout>
</LinearLayout>
</merge>