mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-07 04:53:54 +00:00
[android] Migrate last TextView to Material Components
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
android:orientation="vertical"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
tools:background="@color/black_primary">
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/highest_altitude"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -31,7 +31,7 @@
|
||||
android:paddingEnd="@dimen/margin_quarter_plus"
|
||||
android:paddingBottom="@dimen/margin_eighth"
|
||||
android:textSize="@dimen/text_size_body_5" />
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/lowest_altitude"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -54,7 +54,7 @@
|
||||
android:layout_marginEnd="@dimen/margin_quarter"
|
||||
app:srcCompat="@drawable/ic_ascent"
|
||||
app:tint="?elevationProfilePropIconTint" />
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/ascent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -62,7 +62,7 @@
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:text="10000 m" />
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/ascent_container"
|
||||
@@ -91,7 +91,7 @@
|
||||
android:layout_marginEnd="@dimen/margin_quarter"
|
||||
app:srcCompat="@drawable/ic_descent"
|
||||
app:tint="?elevationProfilePropIconTint" />
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/descent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -99,7 +99,7 @@
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:text="10000 m" />
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/descent_container"
|
||||
@@ -129,7 +129,7 @@
|
||||
android:layout_marginEnd="@dimen/margin_quarter"
|
||||
app:srcCompat="@drawable/ic_maxalt"
|
||||
app:tint="?elevationProfilePropIconTint" />
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/max_altitude"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -137,7 +137,7 @@
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:text="10000 m" />
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/max_height_container"
|
||||
@@ -167,7 +167,7 @@
|
||||
android:layout_marginEnd="@dimen/margin_half"
|
||||
app:srcCompat="@drawable/ic_minalt"
|
||||
app:tint="?elevationProfilePropIconTint" />
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/min_altitude"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -175,7 +175,7 @@
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:text="10000 m" />
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/min_elevation_container"
|
||||
@@ -208,7 +208,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/elevation_profile_difficulty"
|
||||
@@ -220,13 +220,13 @@
|
||||
android:layout_marginStart="@dimen/margin_half_plus_eight"
|
||||
android:layout_marginBottom="@dimen/elevation_profile_dot_levels_margin"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/difficulty_level_1"
|
||||
android:layout_width="@dimen/elevation_profile_difficulty_dot_size"
|
||||
android:layout_height="@dimen/elevation_profile_difficulty_dot_size"
|
||||
android:background="@drawable/dot_elevation_difficulty"
|
||||
android:enabled="false" />
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/difficulty_level_2"
|
||||
android:layout_width="@dimen/elevation_profile_difficulty_dot_size"
|
||||
android:layout_height="@dimen/elevation_profile_difficulty_dot_size"
|
||||
@@ -234,7 +234,7 @@
|
||||
android:layout_marginEnd="@dimen/margin_quarter"
|
||||
android:background="@drawable/dot_elevation_difficulty"
|
||||
android:enabled="false" />
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/difficulty_level_3"
|
||||
android:layout_width="@dimen/elevation_profile_difficulty_dot_size"
|
||||
android:layout_height="@dimen/elevation_profile_difficulty_dot_size"
|
||||
@@ -250,7 +250,7 @@
|
||||
android:layout_toEndOf="@id/difficulty_container"
|
||||
android:gravity="end"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/elevation_profile_time"
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
android:layout_height="@dimen/margin_half_plus"
|
||||
app:srcCompat="@drawable/ic_distance_travelled"
|
||||
app:tint="?ppFloatingMarkerIconColor" />
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/distance_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -73,7 +73,7 @@
|
||||
android:layout_width="@dimen/margin_half_plus_eight"
|
||||
android:layout_height="@dimen/margin_half_plus_eight"
|
||||
app:srcCompat="?elevationProfileSelectedPointTriangle" />
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/altitude"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/layers_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
tools:visibility="visible" />
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.textview.MaterialTextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
style="@style/MwmWidget.TextView.Search"
|
||||
android:drawablePadding="@dimen/margin_base"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.textview.MaterialTextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
style="@style/MwmWidget.TextView.Search"
|
||||
android:text="@string/clear_search"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.textview.MaterialTextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
style="@style/MwmWidget.TextView.Search"
|
||||
android:text="@string/p2p_your_location"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
android:padding="@dimen/margin_base"
|
||||
tools:background="#20FF0000">
|
||||
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/title"
|
||||
android:textAlignment="viewStart"
|
||||
android:layout_width="match_parent"
|
||||
@@ -20,7 +20,7 @@
|
||||
android:maxLines="2"
|
||||
tools:text="Long long title that wraps to multiple lines"/>
|
||||
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/description"
|
||||
android:textAlignment="viewStart"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -35,7 +35,7 @@
|
||||
android:ellipsize="end"
|
||||
tools:text="Hotel \u2022 \u2605\u2605\u2605\u2605\u2605"/>
|
||||
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/open"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -44,7 +44,7 @@
|
||||
android:text="@string/closed"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3" />
|
||||
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/region"
|
||||
android:textAlignment="viewStart"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -60,7 +60,7 @@
|
||||
android:ellipsize="end"
|
||||
tools:text="Russia, Moscow & Central, Moscow"/>
|
||||
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/distance"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.google.android.material.textview.MaterialTextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
style="@style/MwmWidget.TextView.Search"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/subtitle"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/title"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@null" />
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="@dimen/margin_half"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:padding="@dimen/margin_half">
|
||||
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
</com.google.android.material.appbar.MaterialToolbar>
|
||||
|
||||
<TextView
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?panel"
|
||||
|
||||
Reference in New Issue
Block a user