diff options
author | stefan-niedermann <info@niedermann.it> | 2019-09-17 20:01:25 +0300 |
---|---|---|
committer | stefan-niedermann <info@niedermann.it> | 2019-09-17 20:01:25 +0300 |
commit | 8279841b2e7dbdb949ad4c351a90fd4b46c1a69c (patch) | |
tree | 56fb93f48f15ce96007041e2ae1800e183703b40 /app/src/main/res/layout/fragment_card_edit_tab_attachments.xml | |
parent | 7b08b2b32869d768d36c4b52dbe6081ad3600431 (diff) |
Enhance all empty-views
Diffstat (limited to 'app/src/main/res/layout/fragment_card_edit_tab_attachments.xml')
-rw-r--r-- | app/src/main/res/layout/fragment_card_edit_tab_attachments.xml | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/app/src/main/res/layout/fragment_card_edit_tab_attachments.xml b/app/src/main/res/layout/fragment_card_edit_tab_attachments.xml index 771493bbe..cae65686c 100644 --- a/app/src/main/res/layout/fragment_card_edit_tab_attachments.xml +++ b/app/src/main/res/layout/fragment_card_edit_tab_attachments.xml @@ -14,42 +14,39 @@ android:layout_height="match_parent"> </LinearLayout> - <LinearLayout + <RelativeLayout android:id="@+id/no_attachments" android:layout_width="match_parent" android:layout_height="match_parent" - android:gravity="center" - android:orientation="vertical"> - + android:visibility="gone"> <ImageView - android:id="@+id/empty_list_icon" - android:layout_width="72dp" + android:layout_width="match_parent" android:layout_height="72dp" + android:layout_above="@+id/no_attachments_text" + android:layout_gravity="center" android:contentDescription="@null" + android:tint="@color/fg_secondary" app:srcCompat="@drawable/ic_attach_file_grey600_24dp" /> <TextView - android:id="@+id/empty_list_view_headline" + android:id="@+id/no_attachments_text" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:ellipsize="end" + android:layout_centerVertical="true" android:gravity="center" - android:maxLines="2" - android:paddingTop="@dimen/standard_padding" - android:paddingBottom="@dimen/standard_padding" android:text="@string/attachments" + android:textAlignment="center" + android:paddingTop="16dp" + android:paddingBottom="16dp" android:textSize="@dimen/empty_content_font_size" /> <TextView - android:id="@+id/empty_list_view_text" - android:layout_width="match_parent" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:ellipsize="end" - android:gravity="center" + android:layout_below="@id/no_attachments_text" + android:layout_centerHorizontal="true" android:text="@string/no_files_attached_to_this_card" /> - </LinearLayout> + </RelativeLayout> </LinearLayout>
\ No newline at end of file |