Change divider hierachy in item_load_more_comments.xml and item_comment_fully_collapsed.xml.

This commit is contained in:
Alex Ning 2021-04-26 17:26:24 +08:00
parent ca4db1f582
commit 03d5a02480
2 changed files with 66 additions and 60 deletions

View File

@ -1,59 +1,65 @@
<?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"
android:orientation="vertical">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ml.docilealligator.infinityforreddit.customviews.CommentIndentationView
android:id="@+id/vertical_block_indentation_item_comment_fully_collapsed"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:orientation="vertical">
<ml.docilealligator.infinityforreddit.customviews.CommentIndentationView
android:id="@+id/vertical_block_indentation_item_comment_fully_collapsed"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/user_name_text_view_item_comment_fully_collapsed"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:paddingStart="16dp"
android:paddingEnd="8dp"
android:textSize="?attr/font_default"
android:fontFamily="?attr/font_family" />
<TextView
android:id="@+id/user_name_text_view_item_comment_fully_collapsed"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="?attr/font_family"
android:paddingStart="16dp"
android:paddingTop="12dp"
android:paddingEnd="8dp"
android:paddingBottom="12dp"
android:textSize="?attr/font_default" />
<TextView
android:id="@+id/score_text_view_item_comment_fully_collapsed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:textSize="?attr/font_default"
android:fontFamily="?attr/font_family" />
<TextView
android:id="@+id/score_text_view_item_comment_fully_collapsed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="?attr/font_family"
android:paddingStart="8dp"
android:paddingTop="12dp"
android:paddingEnd="8dp"
android:paddingBottom="12dp"
android:textSize="?attr/font_default" />
<TextView
android:id="@+id/time_text_view_item_comment_fully_collapsed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:paddingStart="8dp"
android:paddingEnd="16dp"
android:textSize="?attr/font_default"
android:fontFamily="?attr/font_family" />
<TextView
android:id="@+id/time_text_view_item_comment_fully_collapsed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:fontFamily="?attr/font_family"
android:paddingStart="8dp"
android:paddingTop="12dp"
android:paddingEnd="16dp"
android:paddingBottom="12dp"
android:textSize="?attr/font_default" />
</LinearLayout>
<View
android:id="@+id/divider_item_comment_fully_collapsed"
android:layout_width="match_parent"
android:layout_height="1dp"
android:visibility="gone" />
</LinearLayout>
<View
android:id="@+id/divider_item_comment_fully_collapsed"
android:layout_width="match_parent"
android:layout_height="1dp"
android:visibility="gone" />
</LinearLayout>

View File

@ -2,17 +2,17 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="?attr/cardViewBackgroundColor">
<ml.docilealligator.infinityforreddit.customviews.CommentIndentationView
android:id="@+id/vertical_block_indentation_item_load_more_comments_placeholder"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ml.docilealligator.infinityforreddit.customviews.CommentIndentationView
android:id="@+id/vertical_block_indentation_item_load_more_comments_placeholder"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/placeholder_text_view_item_load_more_comments"
@ -25,12 +25,12 @@
android:textSize="?attr/font_default"
android:fontFamily="?attr/font_family" />
<View
android:id="@+id/divider_item_load_more_comments_placeholder"
android:layout_width="match_parent"
android:layout_height="1dp"
android:visibility="gone" />
</LinearLayout>
<View
android:id="@+id/divider_item_load_more_comments_placeholder"
android:layout_width="match_parent"
android:layout_height="1dp"
android:visibility="gone" />
</LinearLayout>