From ae95ef1b74cb49413f41ee7f333eed88a77902dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 11 Oct 2013 18:59:40 +0200 Subject: [PATCH] Spacings after html lists are fixed. Better paddings. --- res/layout/appinfo.xml | 11 +++++++++-- src/org/fdroid/fdroid/AppDetails.java | 21 +++++++++++++++------ 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/res/layout/appinfo.xml b/res/layout/appinfo.xml index 57a695b3e..09c52745b 100644 --- a/res/layout/appinfo.xml +++ b/res/layout/appinfo.xml @@ -2,6 +2,11 @@ @@ -47,10 +53,11 @@ android:id="@+id/antifeatures" android:layout_width="fill_parent" android:layout_height="wrap_content" + android:layout_marginTop="6sp" android:singleLine="true" android:textSize="14sp" - android:textStyle="bold" - android:text="@string/antifeatures_list" /> + android:textStyle="bold" + android:text="@string/antifeatures_list" /> permissions = permsList.iterator(); StringBuilder sb = new StringBuilder(); @@ -525,6 +531,7 @@ public class AppDetails extends ListActivity { "Can't find permission '" + permissionName + "'"); } } + sb.setLength(sb.length() - 1); tv.setText(sb.toString()); } tv = (TextView) infoView.findViewById(R.id.permissions); @@ -540,9 +547,11 @@ public class AppDetails extends ListActivity { StringBuilder sb = new StringBuilder(); for (String af : app.antiFeatures) sb.append("
  • "+titleAntiFeature(af)+": "+descAntiFeature(af)+"
  • "); - tv.setText(Html.fromHtml(sb.toString(), null, new HtmlTagHandler())); + Spanned afs = Html.fromHtml(sb.toString(), null, new HtmlTagHandler()); + tv.setText(afs.subSequence(0, afs.length() - 2)); } else { infoView.findViewById(R.id.antifeatures).setVisibility(View.GONE); + infoView.findViewById(R.id.antifeatures_list).setVisibility(View.GONE); } }