Add dialog for card creation.
This commit is contained in:
parent
1508b143c5
commit
aad92328cd
8 changed files with 128 additions and 16 deletions
|
@ -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>
|
||||
|
|
41
app/src/main/res/layout/create_new_card_view.xml
Normal file
41
app/src/main/res/layout/create_new_card_view.xml
Normal 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>
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue