Add dialog for card creation.

This commit is contained in:
kenkeiras 2018-01-23 00:59:28 +01:00
parent 1508b143c5
commit aad92328cd
8 changed files with 128 additions and 16 deletions

View file

@ -28,6 +28,7 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:theme="@style/AppTheme"
app:srcCompat="@drawable/ic_add_black" />
</android.support.design.widget.CoordinatorLayout>

View file

@ -0,0 +1,41 @@
<?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"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_centerHorizontal="true">
<RelativeLayout
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/card_name_text_view"
android:layout_width="81dp"
android:layout_height="wrap_content"
android:text="Card name"
android:layout_alignBaseline="@id/card_name_edit_text"
/>
<EditText
android:id="@+id/card_name_edit_text"
android:layout_width="225dp"
android:layout_height="wrap_content"
android:ems="10"
android:layout_toRightOf="@id/card_name_text_view"
android:text="My new card" />
</RelativeLayout>
<RelativeLayout
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<com.larswerkman.holocolorpicker.ColorPicker
android:id="@+id/card_background_color_picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
</LinearLayout>

View file

@ -2,7 +2,7 @@
<resources>
<color name="colorPrimary">#066996</color>
<color name="colorPrimaryDark">#044563</color>
<color name="colorAccent">#b2ff59</color>
<color name="colorAccent">#ffb300</color>
<color name="black_semi_transparent">#B2000000</color>
<color name="background">#e5e5e5</color>