mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-05 21:39:50 +02:00
Use MarkwonView (a markdown library) instead of HtmlTextView to display post content and comments.
This commit is contained in:
@@ -70,16 +70,13 @@
|
||||
android:textColor="#000000"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<org.sufficientlysecure.htmltextview.HtmlTextView
|
||||
android:id="@+id/content_html_text_view_view_post_detail"
|
||||
<ru.noties.markwon.view.MarkwonView
|
||||
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_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:textAppearance="@android:style/TextAppearance.Small"
|
||||
android:visibility="gone" />
|
||||
|
||||
<RelativeLayout
|
||||
|
@@ -29,7 +29,8 @@
|
||||
android:id="@+id/banner_image_view_view_subreddit_detail_activity"
|
||||
android:layout_width="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:layout_height="180dp" />
|
||||
android:layout_height="180dp"
|
||||
android:contentDescription="@string/content_description_banner_imageview" />
|
||||
|
||||
<com.felipecsl.gifimageview.library.GifImageView
|
||||
android:id="@+id/icon_gif_image_view_view_subreddit_detail_activity"
|
||||
@@ -58,6 +59,7 @@
|
||||
android:id="@+id/subreddit_name_text_view_view_subreddit_detail_activity"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:textSize="18sp"
|
||||
android:textColor="@color/colorAccent"
|
||||
@@ -70,17 +72,6 @@
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_gravity="center_horizontal"/>
|
||||
|
||||
<!--<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="48dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp">
|
||||
|
||||
|
||||
|
||||
</RelativeLayout>-->
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -91,6 +82,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@android:color/black"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_toStartOf="@id/online_subscriber_count_text_view_view_subreddit_detail_activity"
|
||||
android:layout_marginBottom="16dp"/>
|
||||
|
||||
<TextView
|
||||
@@ -98,7 +91,6 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_toStartOf="@id/subscriber_count_text_view_view_subreddit_detail_activity"
|
||||
android:textColor="@android:color/black" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
@@ -40,15 +40,14 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<org.sufficientlysecure.htmltextview.HtmlTextView
|
||||
android:id="@+id/comment_html_text_view_item_post_comment"
|
||||
<ru.noties.markwon.view.MarkwonView
|
||||
android:id="@+id/comment_markdown_view_item_post_comment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="32dp"
|
||||
android:layout_marginEnd="32dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:textAppearance="@android:style/TextAppearance.Small"/>
|
||||
android:layout_marginBottom="8dp"/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/relative_layout_item_post_comment"
|
||||
|
@@ -125,4 +125,6 @@
|
||||
<string name="subscribe_failed">Subscribe Failed</string>
|
||||
<string name="unsubscribed">Unsubscribed</string>"
|
||||
<string name="unsubscribe_failed">Unsubscribe Failed</string>
|
||||
|
||||
<string name="content_description_banner_imageview">Subreddit Banner Image</string>
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user