You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.4 KiB
XML
34 lines
1.4 KiB
XML
4 years ago
|
<?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"
|
||
|
xmlns:tools="http://schemas.android.com/tools"
|
||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
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="@dimen/tab_counter_box_width_height"
|
||
|
android:layout_height="@dimen/tab_counter_box_width_height"
|
||
|
android:importantForAccessibility="no"
|
||
|
app:tint="@color/tab_icon"
|
||
|
app:srcCompat="@drawable/ic_tabs"/>
|
||
|
|
||
|
<!-- 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:textAlignment="center"
|
||
|
android:textColor="@color/tab_icon"
|
||
|
android:textSize="12sp"
|
||
|
android:textStyle="bold"
|
||
|
tools:text="16" />
|
||
|
</FrameLayout>
|