diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-04-26 13:53:32 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-04-26 13:53:32 +0000 |
commit | 1d294609f5bb472fea0d536ac381359e9d9c4dc0 (patch) | |
tree | b08d35ea740818efd92b2ffb4a1e45b3bd7e06e8 /app/src/main/res | |
parent | 6bd4b41f8c7eeb112d00bc42658eace8ed3bcb85 (diff) | |
download | infinity-for-reddit-1d294609f5bb472fea0d536ac381359e9d9c4dc0.tar infinity-for-reddit-1d294609f5bb472fea0d536ac381359e9d9c4dc0.tar.gz infinity-for-reddit-1d294609f5bb472fea0d536ac381359e9d9c4dc0.tar.bz2 infinity-for-reddit-1d294609f5bb472fea0d536ac381359e9d9c4dc0.tar.lz infinity-for-reddit-1d294609f5bb472fea0d536ac381359e9d9c4dc0.tar.xz infinity-for-reddit-1d294609f5bb472fea0d536ac381359e9d9c4dc0.tar.zst infinity-for-reddit-1d294609f5bb472fea0d536ac381359e9d9c4dc0.zip |
Unescape HTML for post content and comments. Minor UI fixes.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_view_post_detail.xml | 26 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post.xml | 19 |
2 files changed, 17 insertions, 28 deletions
diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml index 1a0be45d..26239fef 100644 --- a/app/src/main/res/layout/activity_view_post_detail.xml +++ b/app/src/main/res/layout/activity_view_post_detail.xml @@ -73,10 +73,8 @@ android:id="@+id/title_text_view_view_post_detail" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginEnd="16dp" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" - android:layout_marginStart="16dp" + android:paddingStart="16dp" + android:paddingEnd="16dp" android:textColor="#000000" android:textSize="18sp" /> @@ -84,24 +82,23 @@ android:id="@+id/content_markdown_view_view_post_detail" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginEnd="16dp" - android:layout_marginStart="16dp" + android:paddingStart="16dp" + android:paddingEnd="16dp" android:layout_marginTop="16dp" android:visibility="gone" /> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp"> + android:paddingStart="16dp" + android:paddingEnd="16dp" + android:paddingTop="16dp"> <com.google.android.material.chip.Chip android:id="@+id/type_text_view_view_post_detail" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="8dp" android:layout_marginEnd="8dp" - android:textSize="12sp" android:textColor="@android:color/white" android:layout_centerVertical="true" app:chipBackgroundColor="@color/colorPrimaryDark"/> @@ -110,18 +107,18 @@ android:id="@+id/gilded_image_view_view_post_detail" android:layout_width="24dp" android:layout_height="24dp" - android:layout_marginTop="8dp" android:layout_toEndOf="@id/type_text_view_view_post_detail" + android:layout_centerVertical="true" android:visibility="gone"/> <TextView android:id="@+id/gilded_number_text_view_view_post_detail" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="8dp" android:layout_marginStart="4dp" android:layout_marginEnd="8dp" android:layout_toEndOf="@id/gilded_image_view_view_post_detail" + android:layout_centerVertical="true" android:visibility="gone" android:textSize="20sp" android:textColor="@color/gold"/> @@ -130,11 +127,10 @@ android:id="@+id/crosspost_image_view_view_post_detail" android:layout_width="24dp" android:layout_height="24dp" - android:layout_marginTop="8dp" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" - android:layout_toStartOf="@id/nsfw_text_view_item_best_post" android:layout_toEndOf="@id/gilded_number_text_view_view_post_detail" + android:layout_centerVertical="true" android:src="@drawable/crosspost" android:tint="@color/colorAccent" android:visibility="gone"/> @@ -145,10 +141,10 @@ android:layout_height="wrap_content" android:text="@string/nsfw" android:layout_alignParentEnd="true" - android:layout_marginTop="8dp" android:layout_marginStart="8dp" android:textColor="@android:color/white" android:visibility="gone" + android:layout_centerVertical="true" app:chipBackgroundColor="@color/colorAccent"/> </RelativeLayout> diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml index 9d94cb2a..45024d78 100644 --- a/app/src/main/res/layout/item_post.xml +++ b/app/src/main/res/layout/item_post.xml @@ -71,34 +71,32 @@ android:id="@+id/title_text_view_best_post_item" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp" + android:paddingStart="16dp" + android:paddingEnd="16dp" android:textSize="18sp" android:textColor="#000000"/> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginEnd="16dp"> + android:paddingStart="16dp" + android:paddingEnd="16dp" + android:paddingTop="16dp"> <com.google.android.material.chip.Chip android:id="@+id/type_text_view_item_best_post" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="8dp" android:layout_marginEnd="16dp" - android:textSize="12sp" android:textColor="@android:color/white" android:layout_centerVertical="true" - app:chipBackgroundColor="@color/colorPrimaryDark"/> + app:chipBackgroundColor="@color/colorPrimaryDark" /> <ImageView android:id="@+id/gilded_image_view_item_best_post" android:layout_width="24dp" android:layout_height="24dp" android:layout_toEndOf="@id/type_text_view_item_best_post" - android:layout_marginTop="8dp" android:layout_centerVertical="true" android:visibility="gone"/> @@ -106,7 +104,6 @@ android:id="@+id/gilded_number_text_view_item_best_post" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="8dp" android:layout_marginStart="4dp" android:layout_marginEnd="8dp" android:layout_toEndOf="@id/gilded_image_view_item_best_post" @@ -119,10 +116,8 @@ android:id="@+id/crosspost_image_view_item_best_post" android:layout_width="24dp" android:layout_height="24dp" - android:layout_marginTop="8dp" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" - android:layout_toStartOf="@id/nsfw_text_view_item_best_post" android:layout_toEndOf="@id/gilded_number_text_view_item_best_post" android:src="@drawable/crosspost" android:tint="@color/colorAccent" @@ -135,9 +130,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" - android:layout_marginTop="8dp" android:layout_marginStart="8dp" - android:textSize="12sp" android:textColor="@android:color/white" android:visibility="gone" android:layout_centerVertical="true" |