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); } }