another-widget/app/src/main/res/layout/custom_location_item.xml
Tommaso Berlose e12e908496 UI update
2021-01-05 17:53:00 +01:00

35 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:clickable="true"
android:focusable="true"
app:cardElevation="0dp"
android:id="@+id/item"
app:strokeWidth="1dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="4dp"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
app:strokeColor="@color/cardBorder"
android:foreground="?android:attr/selectableItemBackground"
app:cardBackgroundColor="@color/colorPrimaryDark"
app:cardCornerRadius="8dp">
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="56dp"
android:gravity="center_vertical|start"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:paddingEnd="16dp"
android:paddingStart="16dp"
android:focusable="true"
android:clickable="true"
android:textAlignment="viewStart"
android:background="?attr/selectableItemBackground"
android:textColor="@color/colorPrimaryText"
style="@style/AnotherWidget.Settings.Title"/>
</com.google.android.material.card.MaterialCardView>