2016-10-16 19:05:07 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-08-26 19:02:40 +10: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-16 19:05:07 -07:00
|
|
|
|
|
|
|
<LinearLayout android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-08-26 19:02:40 +10:00
|
|
|
android:orientation="horizontal"
|
|
|
|
tools:layout_height="80dp"
|
|
|
|
tools:theme="@style/Theme.TextSecure.DayNight.NoActionBar">
|
2016-10-16 19:05:07 -07: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 19:02:40 +10:00
|
|
|
android:src="@drawable/ic_baseline_search_24" />
|
2016-10-16 19:05:07 -07: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 15:29:06 +11:00
|
|
|
android:layout_marginStart="6dp"
|
2016-10-16 19:05:07 -07:00
|
|
|
android:hint="@string/giphy_activity_toolbar__search_gifs_and_stickers"
|
2020-08-26 19:02:40 +10:00
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textColorHint="?android:textColorTertiary"
|
2020-01-13 15:29:06 +11:00
|
|
|
android:textCursorDrawable="@drawable/session_edit_text_cursor"
|
2016-10-16 19:05:07 -07:00
|
|
|
android:maxLines="1"
|
2016-10-24 14:00:56 -07:00
|
|
|
android:singleLine="true"
|
|
|
|
android:ellipsize="end"
|
2016-10-16 19:05:07 -07: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 19:02:40 +10:00
|
|
|
android:src="@drawable/ic_baseline_clear_24" />
|
2016-10-16 19:05:07 -07: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"
|
2019-03-20 15:52:14 -07:00
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
2016-10-16 19:05:07 -07: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 19:02:40 +10:00
|
|
|
android:src="@drawable/ic_baseline_dashboard_24" />
|
2016-10-16 19:05:07 -07: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 19:02:40 +10:00
|
|
|
android:src="@drawable/ic_baseline_view_stream_24" />
|
2016-10-16 19:05:07 -07:00
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.AnimatingToggle>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</merge>
|