diff options
Diffstat (limited to 'mobile/android/android-components/components/feature/search/src/main/res/layout')
6 files changed, 175 insertions, 0 deletions
diff --git a/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_extra_small_v1.xml b/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_extra_small_v1.xml new file mode 100644 index 0000000000..ee95021031 --- /dev/null +++ b/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_extra_small_v1.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@id/mozac_button_search_widget_new_tab" + android:layout_width="match_parent" + android:layout_height="50dp" + android:layout_gravity="center" + android:background="@drawable/mozac_rounded_search_widget_background"> + + <ImageView + android:id="@+id/mozac_button_search_widget_new_tab_icon" + android:layout_width="50dp" + android:layout_height="50dp" + android:layout_gravity="center" + android:contentDescription="@string/search_widget_content_description" + android:scaleType="centerInside" /> + +</FrameLayout> diff --git a/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_extra_small_v2.xml b/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_extra_small_v2.xml new file mode 100644 index 0000000000..468df05b75 --- /dev/null +++ b/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_extra_small_v2.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@id/mozac_button_search_widget_new_tab" + android:layout_width="match_parent" + android:layout_height="50dp" + android:layout_gravity="center" + android:background="@drawable/mozac_rounded_search_widget_background"> + + <ImageView + android:id="@+id/mozac_button_search_widget_new_tab_icon" + android:layout_width="50dp" + android:layout_height="50dp" + android:layout_gravity="center" + android:contentDescription="@string/search_widget_content_description" + android:scaleType="centerInside" /> +</FrameLayout> diff --git a/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_large.xml b/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_large.xml new file mode 100644 index 0000000000..7801adb460 --- /dev/null +++ b/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_large.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="50dp" + android:layout_gravity="center" + android:background="@drawable/mozac_rounded_search_widget_background"> + + <ImageView + android:id="@+id/mozac_button_search_widget_new_tab_icon" + android:layout_width="50dp" + android:layout_height="50dp" + android:layout_alignParentStart="true" + android:contentDescription="@string/search_widget_content_description" + android:scaleType="centerInside" /> + + <TextView + android:id="@+id/mozac_button_search_widget_new_tab" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_alignEnd="@id/mozac_button_search_widget_voice" + android:layout_marginStart="9dp" + android:layout_toEndOf="@id/mozac_button_search_widget_new_tab_icon" + android:gravity="start|center_vertical" + android:letterSpacing="-0.025" + android:textAlignment="viewStart" + android:textColor="@color/mozac_feature_search_widget_text_color" + android:textSize="15sp" + tools:text="Search the web" /> + + <ImageButton + android:id="@+id/mozac_button_search_widget_voice" + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_alignParentEnd="true" + android:background="@android:color/transparent" + android:layout_centerVertical="true" + android:padding="8dp" + android:layout_marginEnd="1dp" + android:contentDescription="@string/search_widget_voice" /> + +</RelativeLayout> diff --git a/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_medium.xml b/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_medium.xml new file mode 100644 index 0000000000..5cbcdffd84 --- /dev/null +++ b/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_medium.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="50dp" + android:layout_gravity="center" + android:background="@drawable/mozac_rounded_search_widget_background"> + + <ImageView + android:id="@+id/mozac_button_search_widget_new_tab_icon" + android:layout_width="50dp" + android:layout_height="50dp" + android:layout_alignParentStart="true" + android:contentDescription="@string/search_widget_content_description" + android:scaleType="centerInside" /> + + <TextView + android:id="@+id/mozac_button_search_widget_new_tab" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_alignEnd="@id/mozac_button_search_widget_voice" + android:layout_marginStart="9dp" + android:layout_toEndOf="@id/mozac_button_search_widget_new_tab_icon" + android:gravity="start|center_vertical" + android:letterSpacing="-0.025" + android:textAlignment="viewStart" + android:textColor="@color/mozac_feature_search_widget_text_color" + android:textSize="15sp" + tools:text="Search" /> + + <ImageButton + android:id="@+id/mozac_button_search_widget_voice" + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:padding="8dp" + android:background="@android:color/transparent" + android:layout_marginEnd="1dp" + android:contentDescription="@string/search_widget_voice" /> + +</RelativeLayout> diff --git a/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_small.xml b/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_small.xml new file mode 100644 index 0000000000..c75217e90f --- /dev/null +++ b/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_small.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="50dp" + android:background="@drawable/mozac_rounded_search_widget_background" > + + <ImageView + android:id="@+id/mozac_button_search_widget_new_tab_icon" + android:layout_alignParentStart="true" + android:layout_width="50dp" + android:layout_height="50dp" + android:contentDescription="@string/search_widget_content_description" + android:scaleType="centerInside" /> + + <ImageView + android:id="@+id/mozac_button_search_widget_voice" + android:layout_alignParentEnd="true" + android:layout_width="50dp" + android:layout_height="50dp" + android:contentDescription="@string/search_widget_voice" + android:padding="10dp" + android:background="@android:color/transparent" + android:scaleType="centerInside" /> + +</RelativeLayout> diff --git a/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_small_no_mic.xml b/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_small_no_mic.xml new file mode 100644 index 0000000000..61d2152b4b --- /dev/null +++ b/mobile/android/android-components/components/feature/search/src/main/res/layout/mozac_search_widget_small_no_mic.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@id/mozac_button_search_widget_new_tab" + android:layout_width="match_parent" + android:layout_height="50dp" + android:layout_gravity="center" + android:background="@drawable/mozac_rounded_search_widget_background" + android:orientation="vertical"> + + <ImageView + android:id="@+id/mozac_button_search_widget_new_tab_icon" + android:layout_width="40dp" + android:layout_height="40dp" + android:layout_gravity="center" + android:contentDescription="@string/search_widget_content_description" /> +</FrameLayout> |