From 477f88543a09b48585b68be89a7a378726a038f8 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Mon, 22 Feb 2021 15:31:10 +0800 Subject: Continue adding Card Layout 2. --- app/src/main/res/layout/item_post_card_2_text.xml | 269 +++++++++++++++++++++ .../res/layout/item_post_card_2_with_preview.xml | 34 +-- app/src/main/res/layout/item_post_text.xml | 1 - .../res/layout/item_post_video_type_autoplay.xml | 1 - app/src/main/res/layout/item_post_with_preview.xml | 1 - 5 files changed, 278 insertions(+), 28 deletions(-) create mode 100644 app/src/main/res/layout/item_post_card_2_text.xml (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/item_post_card_2_text.xml b/app/src/main/res/layout/item_post_card_2_text.xml new file mode 100644 index 00000000..35daac06 --- /dev/null +++ b/app/src/main/res/layout/item_post_card_2_text.xml @@ -0,0 +1,269 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 index 8955cb61..351fd1d7 100644 --- 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 @@ -4,23 +4,20 @@ android:layout_width="match_parent" android:layout_height="wrap_content" xmlns:tools="http://schemas.android.com/tools" - android:layout_marginTop="8dp" + android:paddingTop="8dp" android:layout_marginBottom="8dp" - android:id="@+id/card_view_item_post_card_2_with_preview" android:clickable="true" android:focusable="true" android:background="?attr/selectableItemBackground" android:orientation="vertical"> + app:cardCornerRadius="8dp"> - + - + - - diff --git a/app/src/main/res/layout/item_post_video_type_autoplay.xml b/app/src/main/res/layout/item_post_video_type_autoplay.xml index 9573d808..3b78eb27 100644 --- a/app/src/main/res/layout/item_post_video_type_autoplay.xml +++ b/app/src/main/res/layout/item_post_video_type_autoplay.xml @@ -6,7 +6,6 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_marginTop="8dp" android:layout_marginBottom="8dp" - android:id="@+id/card_view_item_post_video_type_autoplay" app:cardElevation="2dp" app:cardCornerRadius="16dp"> 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 5782403c..3d2f09b3 100644 --- a/app/src/main/res/layout/item_post_with_preview.xml +++ b/app/src/main/res/layout/item_post_with_preview.xml @@ -6,7 +6,6 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_marginTop="8dp" android:layout_marginBottom="8dp" - android:id="@+id/card_view_item_post_with_preview" app:cardElevation="2dp" app:cardCornerRadius="16dp"> -- cgit v1.2.3