Add support for renaming and deleting cards.
This commit is contained in:
parent
eafa61c34b
commit
42e67dc6a6
12 changed files with 197 additions and 8 deletions
BIN
app/src/main/res/drawable-hdpi/ic_settings_black.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_settings_black.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 827 B |
BIN
app/src/main/res/drawable-mdpi/ic_settings_black.png
Normal file
BIN
app/src/main/res/drawable-mdpi/ic_settings_black.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 557 B |
BIN
app/src/main/res/drawable-xhdpi/ic_settings_black.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_settings_black.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_settings_black.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_settings_black.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_settings_black.png
Normal file
BIN
app/src/main/res/drawable-xxxhdpi/ic_settings_black.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
|
@ -14,7 +14,6 @@
|
|||
android:layout_marginRight="10dp"
|
||||
android:layout_marginTop="5dp"
|
||||
|
||||
android:minHeight="100dp"
|
||||
android:paddingBottom="5dp"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingRight="15dp"
|
||||
|
@ -26,6 +25,7 @@
|
|||
tools:layout_editor_absoluteY="3dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:minHeight="100dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
|
@ -38,7 +38,19 @@
|
|||
android:text="TextView"
|
||||
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"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:clickable="true"
|
||||
android:src="@drawable/ic_settings_black" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
</android.support.v7.widget.LinearLayoutCompat>
|
44
app/src/main/res/layout/card_settings_dialog.xml
Normal file
44
app/src/main/res/layout/card_settings_dialog.xml
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_centerHorizontal="true">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/card_setting_name_text_view"
|
||||
android:layout_width="81dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Card name"
|
||||
android:layout_alignBaseline="@id/card_setting_name_edit_text"
|
||||
/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/card_setting_name_edit_text"
|
||||
android:layout_width="225dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:ems="10"
|
||||
android:layout_toRightOf="@id/card_setting_name_text_view"
|
||||
android:text="My new card" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/card_setting_delete_card"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_below="@id/card_setting_name_edit_text"
|
||||
android:layout_marginTop="10dp"
|
||||
android:clickable="true"
|
||||
android:text="Delete card"
|
||||
android:textColor="@android:color/holo_red_dark"
|
||||
android:textSize="20dp"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
|
@ -2,7 +2,6 @@
|
|||
<LinearLayout 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:orientation="vertical"
|
||||
android:layout_centerHorizontal="true">
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue