Files
comaps/android/app/src/main/res/layout/item_street.xml
2025-11-24 21:25:37 +01:00

54 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
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"
android:layout_width="match_parent"
android:layout_height="@dimen/height_item_oneline"
android:background="?clickableBackground"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingEnd="@dimen/margin_base"
android:paddingStart="@dimen/margin_half_plus">
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/selected"
android:layout_width="48dp"
android:layout_height="48dp"
android:gravity="center_vertical"
android:layout_marginEnd="@dimen/margin_base"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:buttonTint="@null"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="60dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/selected"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/street_default"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="@style/MwmTextAppearance.Body1"
tools:text="Street name"/>
<com.google.android.material.textview.MaterialTextView
android:id="@+id/street_localized"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="@style/MwmTextAppearance.Body3"
tools:text="Localized street name"/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>