mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] Closes https://github.com/mozilla-mobile/fenix/issues/546 - Uses Minimum Touch Target Size for Tab Header Buttons
This commit is contained in:
parent
fccef0c7b3
commit
ba8052adf7
@ -1,42 +1,46 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
- 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/. -->
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/tabs_header"
|
android:id="@+id/tabs_header"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_margin="16dp"
|
||||||
android:layout_marginStart="16dp"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:layout_marginEnd="16dp"
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent">
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/header_text"
|
android:id="@+id/header_text"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/tabs_header_title"
|
android:text="@string/tabs_header_title"
|
||||||
android:textSize="24sp"
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Headline6"
|
||||||
android:textColor="?attr/toolbarTextColor"
|
android:textColor="?attr/toolbarTextColor"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"/>
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
<ImageView
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
android:id="@+id/add_tab_button"
|
android:id="@+id/add_tab_button"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/glyph_button_width"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/glyph_button_height"
|
||||||
android:layout_margin="8dp"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:src="@drawable/ic_new"
|
android:src="@drawable/ic_new"
|
||||||
android:tint="?attr/toolbarTextColor"
|
android:tint="?attr/toolbarTextColor"
|
||||||
android:baselineAlignBottom="true"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintBaseline_toBaselineOf="@id/header_text"
|
app:layout_constraintEnd_toStartOf="@id/tabs_overflow_button"
|
||||||
app:layout_constraintEnd_toStartOf="@id/tabs_overflow_button"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
<ImageView
|
|
||||||
|
<ImageButton
|
||||||
android:id="@+id/tabs_overflow_button"
|
android:id="@+id/tabs_overflow_button"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/glyph_button_width"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/glyph_button_height"
|
||||||
android:layout_margin="8dp"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
android:tint="?attr/toolbarTextColor"
|
|
||||||
android:src="@drawable/ic_menu"
|
android:src="@drawable/ic_menu"
|
||||||
android:baselineAlignBottom="true"
|
android:tint="?attr/toolbarTextColor"
|
||||||
app:layout_constraintBaseline_toBaselineOf="@id/header_text"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"/>
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in New Issue
Block a user