diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-05-12 14:09:59 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-05-12 14:09:59 +0300 |
commit | 969409d2bfeef6636dde4d55a30e4d509fda2b77 (patch) | |
tree | bb556bc972b02a13be2caf4f56a71000afbad2b0 /app/src/main/res/layout | |
parent | 2515c9461866d019871a299dfd73127228aa46a5 (diff) |
#217 SingleCardWidget
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/widget_single_card.xml | 73 |
1 files changed, 69 insertions, 4 deletions
diff --git a/app/src/main/res/layout/widget_single_card.xml b/app/src/main/res/layout/widget_single_card.xml index 780f97375..4d0e10827 100644 --- a/app/src/main/res/layout/widget_single_card.xml +++ b/app/src/main/res/layout/widget_single_card.xml @@ -1,8 +1,73 @@ <?xml version="1.0" encoding="utf-8"?> -<TextView xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" - android:id="@+id/title" android:layout_width="match_parent" - android:text="Test-Text Initial" android:layout_height="match_parent" - tools:text="@tools:sample/lorem/random" /> + android:background="?attr/backgroundColor" + android:orientation="vertical" + android:padding="@dimen/spacer_2x"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:id="@+id/title" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:textAppearance="?attr/textAppearanceBody1" + tools:text="@tools:sample/lorem/random" /> + + <TextView + android:id="@+id/card_due_date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/due_tomorrow_background" + android:drawablePadding="@dimen/spacer_1hx" + android:gravity="center" + android:padding="@dimen/spacer_1hx" + android:textColor="@color/fg_secondary" + app:drawableStartCompat="@drawable/calendar_blank_grey600_24dp" + tools:text="tomorrow" /> + </LinearLayout> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <TextView + android:id="@+id/card_count_comments" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:drawablePadding="@dimen/spacer_1hx" + android:gravity="center_vertical" + android:padding="@dimen/spacer_1hx" + app:drawableLeftCompat="@drawable/ic_comment_white_24dp" + app:drawableStartCompat="@drawable/ic_comment_white_24dp" + app:drawableTint="@color/grey600" + tools:text="2" /> + + <TextView + android:id="@+id/card_count_tasks" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:padding="@dimen/spacer_1hx" + app:drawableLeftCompat="@drawable/ic_check_grey600_24dp" + app:drawableStartCompat="@drawable/ic_check_grey600_24dp" + tools:text="1/2" /> + + <TextView + android:id="@+id/card_count_attachments" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:padding="@dimen/spacer_1hx" + app:drawableLeftCompat="@drawable/ic_attach_file_grey600_24dp" + app:drawableStartCompat="@drawable/ic_attach_file_grey600_24dp" + tools:text="3" /> + </LinearLayout> +</LinearLayout>
\ No newline at end of file |