/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
android/res/layout/fragment_auth_editor.xml
222 строки
9 KB
velichkomarija
[android] Fixed font size in osm rating string.
23 ноя 2020, 12:07
23 ноя 2020, 12:07
9b5c825
Код
Авторство
О чём код?
<?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="match_parent" android:orientation="vertical"> <androidx.appcompat.widget.Toolbar android:id="@+id/toolbar" style="@style/MwmWidget.ToolbarStyle" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?colorPrimary" android:gravity="end|center_vertical" android:theme="@style/MwmWidget.ToolbarTheme" tools:ignore="UnusedAttribute"> <ImageView android:id="@+id/more" android:layout_width="?actionBarSize" android:layout_height="?actionBarSize" android:layout_gravity="end|center_vertical" android:background="?selectableItemBackgroundBorderless" android:scaleType="center" android:src="@drawable/ic_more" android:visibility="gone"/> </androidx.appcompat.widget.Toolbar> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="true"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:clipChildren="false" android:clipToPadding="false" android:orientation="vertical" tools:ignore="ScrollViewSize"> <LinearLayout android:id="@+id/block_edits" android:layout_width="match_parent" android:layout_height="wrap_content" android:animateLayoutChanges="true" android:background="?colorPrimary" android:orientation="vertical" android:padding="@dimen/margin_base" android:visibility="visible"> <LinearLayout android:id="@+id/sent_edits" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingBottom="@dimen/margin_base" android:orientation="vertical"> <TextView android:id="@+id/edits_count" android:layout_width="match_parent" android:layout_height="112dp" android:gravity="center" android:textColor="@color/text_light" android:textSize="96sp" android:textStyle="bold" tools:text="244"/> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:text="@string/editor_profile_changes" android:textAppearance="@style/MwmTextAppearance.Body1" android:textColor="@color/white_primary" android:textStyle="bold"/> <TextView android:id="@+id/date_sent" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:gravity="center" android:textAppearance="@style/MwmTextAppearance.Body3" android:textColor="@color/white_secondary" tools:text="Last sent: 12.01.2015"/> </LinearLayout> </LinearLayout> <LinearLayout android:id="@+id/block_auth" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:background="?colorPrimary" android:clipChildren="false" android:clipToPadding="false" android:orientation="vertical" android:paddingLeft="@dimen/margin_base" android:paddingStart="@dimen/margin_base" android:paddingRight="@dimen/margin_base" android:paddingEnd="@dimen/margin_base" tools:visibility="gone"> <TextView android:id="@+id/first_osm_edit" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="20dp" android:text="@string/login_to_make_edits_visible" android:textAppearance="@style/MwmTextAppearance.Body3.Light" android:textColor="@color/text_light"/> <Button android:id="@+id/login_osm" style="@style/MwmWidget.Button.Accent" android:layout_width="match_parent" android:layout_height="@dimen/editor_auth_btn_height" android:fontFamily="@string/robotoMedium" android:text="@string/openstreetmap" android:textAllCaps="false" android:textAppearance="@style/MwmTextAppearance.Body1.Light" tools:targetApi="jelly_bean"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/margin_double" android:text="@string/no_osm_account" android:textAppearance="@style/MwmTextAppearance.Body3.Light" android:textColor="@color/text_light"/> <TextView android:id="@+id/register" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/margin_half" android:background="?clickableBackground" android:paddingTop="@dimen/margin_half" android:paddingBottom="@dimen/margin_half" android:text="@string/register_at_openstreetmap" android:textAllCaps="true" android:textAppearance="@style/MwmTextAppearance.Body1.Light" android:textColor="@color/text_light"/> </LinearLayout> <RelativeLayout android:id="@+id/block_rating" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:padding="@dimen/margin_base"> <androidx.cardview.widget.CardView style="@style/MwmWidget.Editor.CardView" android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:orientation="horizontal" android:paddingLeft="@dimen/margin_half" android:paddingStart="@dimen/margin_half" android:paddingRight="@dimen/margin_half" android:paddingEnd="@dimen/margin_half" android:paddingTop="@dimen/margin_base" android:paddingBottom="@dimen/margin_base"> <ImageView android:id="@+id/image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/margin_half" android:layout_marginStart="@dimen/margin_half" android:scaleType="center" android:src="@drawable/ic_leaderboard" android:tint="?iconTint"/> <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/margin_base" android:layout_marginStart="@dimen/margin_base" android:layout_weight="1" android:orientation="vertical" tools:ignore="NestedWeights"> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_vertical" android:text="@string/editor_profile_rating_place" android:textAppearance="@style/MwmTextAppearance.Body3"/> <TextView android:id="@+id/rating" android:layout_width="match_parent" android:layout_height="match_parent" android:fontFamily="@string/robotoMedium" android:gravity="center_vertical" android:textAppearance="@style/MwmTextAppearance.Headline" tools:ignore="UnusedAttribute" tools:text="-42"/> </LinearLayout> </LinearLayout> </androidx.cardview.widget.CardView> <TextView android:id="@+id/about_osm" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:background="?clickableBackground" android:gravity="center" android:paddingBottom="@dimen/margin_half" android:paddingTop="@dimen/margin_half" android:text="@string/editor_more_about_osm" android:textAppearance="@style/MwmTextAppearance.Body4" android:textColor="?colorAccent" android:textSize="@dimen/text_size_body_4"/> </RelativeLayout> </LinearLayout> </ScrollView> </LinearLayout>