Ph0tonic/SDP_Projet

View on GitHub
app/src/main/res/layout/map_selection_recyclerview_item.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:padding="0px">

    <androidx.cardview.widget.CardView
        android:id="@+id/map_selection_item_card"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:padding="1dp"
        app:cardBackgroundColor="#FFFFFF"
        app:cardElevation="2dp"
        app:cardUseCompatPadding="true"
        app:contentPadding="1dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="@dimen/tiny_margin"
            android:orientation="vertical">

            <TextView
                android:id="@+id/offlineRegionName"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                style="@style/TextAppearance.AppCompat.Title"/>

            <TextView
                android:id="@+id/offlineRegionProperty"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                style="@style/TextAppearance.AppCompat.Subhead"/>
        </LinearLayout>

    </androidx.cardview.widget.CardView>

</LinearLayout>