[fenix] For https://github.com/mozilla-mobile/fenix/issues/4516: Use full width for large search widgets (https://github.com/mozilla-mobile/fenix/pull/4659)
parent
e4f3b39e0b
commit
8efb7f9cdb
@ -1,45 +0,0 @@
|
|||||||
<?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:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent">
|
|
||||||
|
|
||||||
<RelativeLayout android:layout_width="360dp"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:background="@drawable/rounded_white_corners"
|
|
||||||
android:layout_gravity="center">
|
|
||||||
|
|
||||||
<LinearLayout android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_marginTop="9dp"
|
|
||||||
android:id="@+id/button_search_widget_new_tab">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="32dp"
|
|
||||||
android:layout_height="32dp"
|
|
||||||
android:background="@drawable/ic_logo_widget"
|
|
||||||
android:layout_marginLeft="9dp"
|
|
||||||
android:layout_marginRight="12dp"/>
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/text_search_widget"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="32dp"
|
|
||||||
android:gravity="center"
|
|
||||||
android:textSize="15dp"
|
|
||||||
android:textColor="@color/search_widget_text"
|
|
||||||
android:letterSpacing="-0.025"/>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<ImageButton
|
|
||||||
android:id="@+id/button_search_widget_voice"
|
|
||||||
android:layout_width="32dp"
|
|
||||||
android:layout_height="32dp"
|
|
||||||
android:background="@drawable/ic_microphone_widget"
|
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:layout_alignTop="@id/button_search_widget_new_tab"
|
|
||||||
android:layout_marginRight="9dp"/>
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
</FrameLayout>
|
|
@ -1,25 +0,0 @@
|
|||||||
<?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:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent">
|
|
||||||
|
|
||||||
<LinearLayout android:layout_width="64dp"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:background="@drawable/rounded_white_corners"
|
|
||||||
android:layout_gravity="center"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<ImageButton
|
|
||||||
android:id="@id/button_search_widget_new_tab"
|
|
||||||
android:layout_width="40dp"
|
|
||||||
android:layout_height="40dp"
|
|
||||||
android:background="@drawable/ic_logo_widget"
|
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginTop="5dp"/>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</FrameLayout>
|
|
@ -0,0 +1,18 @@
|
|||||||
|
<?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/button_search_widget_new_tab"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:background="@drawable/rounded_white_corners"
|
||||||
|
android:layout_gravity="center">
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:layout_width="40dp"
|
||||||
|
android:layout_height="40dp"
|
||||||
|
android:background="@drawable/ic_logo_widget"
|
||||||
|
android:layout_gravity="center"/>
|
||||||
|
</FrameLayout>
|
@ -0,0 +1,18 @@
|
|||||||
|
<?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/button_search_widget_new_tab"
|
||||||
|
android:layout_width="64dp"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:background="@drawable/rounded_white_corners"
|
||||||
|
android:layout_gravity="center">
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:layout_width="40dp"
|
||||||
|
android:layout_height="40dp"
|
||||||
|
android:background="@drawable/ic_logo_widget"
|
||||||
|
android:layout_gravity="center"/>
|
||||||
|
</FrameLayout>
|
Loading…
Reference in New Issue