/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
android/res/layout/layout_nav_bottom_numbers.xml
166 строк
6 KB
Dmitry Donskoy
[android] Fixed review notes
09 дек 2018, 23:44
09 дек 2018, 23:44
8e0e031
Код
Авторство
О чём код?
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="@dimen/nav_menu_height" android:orientation="vertical" android:layout_marginRight="@dimen/nav_toggle" android:layout_marginEnd="@dimen/nav_toggle" android:background="?clickableBackground" tools:background="#3000FF00" tools:ignore="RtlSymmetry"> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"> <!-- Speed --> <RelativeLayout android:id="@+id/speed_view_container" android:layout_width="0dp" android:layout_weight="1" android:layout_height="match_parent" android:background="@drawable/speed_cams_bg" android:minWidth="@dimen/nav_numbers_side_min_width" android:paddingBottom="@dimen/margin_eighth" android:paddingTop="@dimen/margin_eighth" android:paddingLeft="@dimen/nav_numbers_margin" android:paddingRight="@dimen/nav_numbers_margin"> <TextView android:id="@+id/speed_value" android:layout_centerHorizontal="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:lines="1" android:includeFontPadding="false" android:textAppearance="@style/MwmTextAppearance.RoutingNumber.Navigation" tools:text="999"/> <!-- Speed --> <TextView android:id="@+id/speed_dimen" android:layout_below="@id/speed_value" android:layout_centerHorizontal="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:lines="1" android:includeFontPadding="false" android:textAppearance="@style/MwmTextAppearance.RoutingDimension" tools:text="km/h" tools:background="#20FF0000"/> </RelativeLayout> <!-- Time --> <RelativeLayout android:layout_width="0dp" android:layout_weight="1" android:layout_height="match_parent" android:minWidth="@dimen/nav_numbers_side_min_width" android:paddingBottom="@dimen/margin_eighth" android:paddingTop="@dimen/margin_eighth" android:paddingLeft="@dimen/nav_numbers_margin" android:paddingRight="@dimen/nav_numbers_margin"> <LinearLayout android:id="@+id/time_values_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" tools:background="#20FF0000"> <TextView android:id="@+id/time_hour_value" android:layout_width="wrap_content" android:layout_height="wrap_content" android:lines="1" android:includeFontPadding="false" android:textAppearance="@style/MwmTextAppearance.RoutingNumber.Navigation" tools:text="999"/> <TextView android:id="@+id/time_hour_dimen" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/margin_quarter" android:layout_marginEnd="@dimen/margin_quarter" android:lines="1" android:includeFontPadding="false" android:textAppearance="@style/MwmTextAppearance.RoutingDimension" tools:text="h"/> <TextView android:id="@+id/time_minute_value" android:layout_width="wrap_content" android:layout_height="wrap_content" android:lines="1" android:includeFontPadding="false" android:textAppearance="@style/MwmTextAppearance.RoutingNumber.Navigation" tools:text="99"/> <TextView android:id="@+id/time_minute_dimen" android:layout_width="wrap_content" android:layout_height="wrap_content" android:lines="1" android:includeFontPadding="false" android:textAppearance="@style/MwmTextAppearance.RoutingNumber" tools:text="m"/> </LinearLayout> <LinearLayout android:layout_below="@+id/time_values_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:theme="?navigationTheme" android:minWidth="@dimen/nav_numbers_center_min_width" android:layout_centerHorizontal="true" android:gravity="center" tools:background="#20FF0000"> <ImageView android:id="@+id/dot_left" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/margin_half" android:layout_marginEnd="@dimen/margin_half" android:src="?newsMarker"/> <ImageView android:id="@+id/dot_estimate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="?newsMarker"/> </LinearLayout> </RelativeLayout> <!-- Distance --> <RelativeLayout android:layout_width="0dp" android:layout_weight="1" android:layout_height="match_parent" android:minWidth="@dimen/nav_numbers_side_min_width" android:paddingBottom="@dimen/margin_eighth" android:paddingTop="@dimen/margin_eighth" android:paddingLeft="@dimen/nav_numbers_margin" android:paddingRight="@dimen/nav_numbers_margin"> <TextView android:id="@+id/distance_value" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:lines="1" android:includeFontPadding="false" android:textAppearance="@style/MwmTextAppearance.RoutingNumber.Navigation" tools:text="99999"/> <TextView android:id="@+id/distance_dimen" android:layout_below="@id/distance_value" android:layout_centerHorizontal="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:lines="1" android:includeFontPadding="false" android:textAppearance="@style/MwmTextAppearance.RoutingDimension" tools:text="km" tools:background="#20FF0000"/> </RelativeLayout> </LinearLayout> </LinearLayout>