Fix layout

This commit is contained in:
tom79 2019-08-23 17:47:54 +02:00
parent b0e0eb1838
commit e15badc7c3
6 changed files with 6 additions and 4 deletions

View File

@ -794,9 +794,9 @@ public class Status implements Parcelable{
SpannableString spannableStringT;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
spannableStringT = new SpannableString(Html.fromHtml(spannableString.toString().replaceAll("^<p>","").replaceAll("<p>","<br/><br/>").replaceAll("</p>","").replaceAll("<br />","<br/>").replaceAll("[\\s]{2}","&nbsp;&nbsp;"), Html.FROM_HTML_MODE_LEGACY));
spannableStringT = new SpannableString(Html.fromHtml(spannableString.toString().replaceAll("[\\s]{2}","&nbsp;&nbsp;"), Html.FROM_HTML_MODE_LEGACY));
else
spannableStringT = new SpannableString(Html.fromHtml(spannableString.toString().replaceAll("^<p>","").replaceAll("<p>","<br/><br/>").replaceAll("</p>","").replaceAll("<br />","<br/>").replaceAll("[\\s]{2}","&nbsp;&nbsp;")));
spannableStringT = new SpannableString(Html.fromHtml(spannableString.toString().replaceAll("[\\s]{2}","&nbsp;&nbsp;")));
replaceQuoteSpans(context, spannableStringT);
URLSpan[] spans = spannableStringT.getSpans(0, spannableStringT.length(), URLSpan.class);

View File

@ -336,9 +336,9 @@
<app.fedilab.android.helper.CustomTextView
android:id="@+id/status_content"
android:layout_marginBottom="-20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:textIsSelectable="true" />
<Button

View File

@ -248,6 +248,7 @@
<app.fedilab.android.helper.CustomTextView
android:id="@+id/status_content"
android:textIsSelectable="true"
android:layout_marginBottom="-20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Button

View File

@ -244,6 +244,7 @@
<app.fedilab.android.helper.CustomTextView
android:id="@+id/status_content"
android:textIsSelectable="true"
android:layout_marginBottom="-20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Button

View File

@ -177,6 +177,7 @@
<app.fedilab.android.helper.CustomTextView
android:id="@+id/status_content"
android:textIsSelectable="true"
android:layout_marginBottom="-20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Button

View File

@ -95,7 +95,6 @@
android:layout_height="wrap_content" />
<TextView
android:id="@+id/status_content"
android:layout_marginTop="10dp"
android:autoLink="web"
android:layout_width="match_parent"
android:layout_height="wrap_content" />