1
0
Fork 0
fenix/app/src/main/res/layout/mozac_ui_tabcounter_layout.xml

40 lines
1.6 KiB
XML

<?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/. -->
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:background="@drawable/mozac_ui_tabcounter_round_rectangle_ripple"
tools:layout_height="wrap_content"
tools:layout_width="wrap_content">
<FrameLayout
android:id="@+id/counter_root"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true">
<ImageView
android:id="@+id/counter_box"
android:layout_width="24dp"
android:layout_height="24dp"
android:contentDescription="@string/mozac_ui_tabcounter_description"
android:src="@drawable/mozac_ui_tabcounter_box"
android:tint="?primaryText" />
<!-- This text size auto adjusts based on num digits in `TabCounter` -->
<TextView
android:id="@+id/counter_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="1dp"
android:layout_marginEnd="1dp"
android:textColor="?primaryText"
android:textSize="12sp"
android:textStyle="bold"
tools:text="16" />
</FrameLayout>
</merge>