/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
android/res/layout/interactive_counter.xml
75 строк
3 KB
alexzatsepin
[android] Fixed font styles in guests/rooms picker
14 сен 2020, 13:36
14 сен 2020, 13:36
b722e02
Код
Авторство
О чём код?
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" android:clickable="true" android:focusable="true" android:padding="@dimen/margin_base"> <ImageView android:id="@+id/icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:tint="?iconTint" tools:src="@drawable/ic_people" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginStart="@dimen/margin_double" android:layout_toEndOf="@id/icon" android:baselineAligned="false" android:gravity="center_vertical" android:orientation="horizontal"> <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical"> <TextView android:id="@+id/title" android:layout_width="match_parent" android:layout_height="wrap_content" android:textAppearance="?fontSubtitle1" tools:text="Title" /> <TextView android:id="@+id/subtitle" android:layout_width="match_parent" android:layout_height="wrap_content" android:textAppearance="?fontBody2" tools:text="Subtitle" /> </LinearLayout> <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/margin_base_plus" android:layout_weight="1" android:gravity="center_vertical" android:orientation="horizontal"> <ImageButton android:id="@+id/minus" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@android:color/transparent" android:src="@drawable/ic_counter_minus" android:tint="@color/icon_tint_selector" /> <TextView android:id="@+id/counter" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="center_horizontal" android:textAppearance="?fontSubtitle1" tools:text="1" /> <ImageButton android:id="@+id/plus" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@android:color/transparent" android:src="@drawable/ic_counter_plus" android:tint="@color/icon_tint_selector" /> </LinearLayout> </LinearLayout> </RelativeLayout>