2019-04-05 23:33:02 +02:00
|
|
|
<?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"
|
2019-12-06 04:54:32 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-04-05 23:33:02 +02:00
|
|
|
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"
|
2020-03-03 02:57:29 +01:00
|
|
|
android:layout_width="@dimen/tab_counter_box_width_height"
|
|
|
|
android:layout_height="@dimen/tab_counter_box_width_height"
|
2019-04-23 01:40:31 +02:00
|
|
|
android:importantForAccessibility="no"
|
2019-12-06 04:54:32 +01:00
|
|
|
app:srcCompat="@drawable/ic_tabs"/>
|
2019-04-05 23:33:02 +02:00
|
|
|
|
|
|
|
<!-- 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"
|
2020-03-03 02:57:29 +01:00
|
|
|
android:textAlignment="center"
|
2019-04-13 00:20:49 +02:00
|
|
|
android:textColor="?primaryText"
|
2019-04-05 23:33:02 +02:00
|
|
|
android:textSize="12sp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:text="16" />
|
|
|
|
</FrameLayout>
|
|
|
|
</merge>
|