From 874ecbbf72fedc9f1f539308e453ea2547ccc516 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sun, 21 Feb 2021 22:28:56 +0800 Subject: Start adding Card Layout 2. --- .../layout/fragment_post_layot_bottom_sheet.xml | 16 + .../res/layout/item_post_card_2_with_preview.xml | 371 +++++++++++++++++++++ app/src/main/res/layout/item_post_gallery.xml | 112 +++---- app/src/main/res/layout/item_post_with_preview.xml | 13 - app/src/main/res/values/strings.xml | 1 + 5 files changed, 441 insertions(+), 72 deletions(-) create mode 100644 app/src/main/res/layout/item_post_card_2_with_preview.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/fragment_post_layot_bottom_sheet.xml b/app/src/main/res/layout/fragment_post_layot_bottom_sheet.xml index 760a5ea3..3cf40d28 100644 --- a/app/src/main/res/layout/fragment_post_layot_bottom_sheet.xml +++ b/app/src/main/res/layout/fragment_post_layot_bottom_sheet.xml @@ -60,6 +60,22 @@ android:textSize="?attr/font_default" android:fontFamily="?attr/font_family" /> + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_card_2_with_preview.xml b/app/src/main/res/layout/item_post_card_2_with_preview.xml new file mode 100644 index 00000000..8a5fe64e --- /dev/null +++ b/app/src/main/res/layout/item_post_card_2_with_preview.xml @@ -0,0 +1,371 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_gallery.xml b/app/src/main/res/layout/item_post_gallery.xml index 4d40c4d8..3d32cd04 100644 --- a/app/src/main/res/layout/item_post_gallery.xml +++ b/app/src/main/res/layout/item_post_gallery.xml @@ -8,73 +8,67 @@ app:cardElevation="2dp" app:cardCornerRadius="8dp"> - - - - - - - + - + - + - + - + + app:drawableTopCompat="@drawable/ic_error_outline_black_24dp" + android:layout_gravity="center" + android:gravity="center" + android:text="@string/error_loading_image_tap_to_retry" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" /> - + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_with_preview.xml b/app/src/main/res/layout/item_post_with_preview.xml index 5cec4cfa..5782403c 100644 --- a/app/src/main/res/layout/item_post_with_preview.xml +++ b/app/src/main/res/layout/item_post_with_preview.xml @@ -101,19 +101,6 @@ android:textSize="?attr/title_font_18" android:fontFamily="?attr/title_font_family" /> - - Card Layout Compact Layout Gallery Layout + Card Layout 2 Just Now 1 Minute -- cgit v1.2.3