mini-cards/app/src/main/res/layout/card_preview.xml

58 lines
2.2 KiB
XML
Raw Normal View History

2018-01-21 11:05:54 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-03-02 21:10:22 +00:00
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
2018-01-21 11:05:54 +00:00
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2020-03-02 21:10:22 +00:00
<androidx.cardview.widget.CardView
2018-01-21 11:05:54 +00:00
android:id="@+id/card_preview_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
2020-03-02 20:01:11 +00:00
android:layout_marginRight="10dp"
2018-01-21 11:05:54 +00:00
android:paddingLeft="15dp"
android:paddingTop="5dp"
2020-03-02 20:01:11 +00:00
android:paddingRight="15dp"
android:paddingBottom="5dp"
2018-01-21 11:05:54 +00:00
card_view:cardCornerRadius="5dp"
2020-03-02 20:01:11 +00:00
card_view:cardElevation="10dp"
2018-01-21 11:05:54 +00:00
card_view:cardUseCompatPadding="true"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="3dp">
<RelativeLayout
android:layout_width="match_parent"
2020-03-02 20:01:11 +00:00
android:layout_height="wrap_content"
android:minHeight="100dp">
2018-01-21 11:05:54 +00:00
<TextView
android:id="@+id/card_preview_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:text="TextView"
android:textSize="25dp"
2018-01-21 11:05:54 +00:00
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="3dp" />
<ImageView
android:id="@+id/card_preview_settings_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-03-02 20:01:11 +00:00
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:alpha="1"
android:clickable="true"
android:src="@drawable/ic_settings_gray" />
2018-01-21 11:05:54 +00:00
</RelativeLayout>
2020-03-02 21:10:22 +00:00
</androidx.cardview.widget.CardView>
2018-01-21 11:05:54 +00:00
2020-03-02 21:10:22 +00:00
</androidx.appcompat.widget.LinearLayoutCompat>