MultiStepResultHelper: Fix text wrapping
@@ -134,14 +134,16 @@ public class MultiStepResultHelper<Arg> {
if (detail.length == 2) {
TextView tv1 = new TextView(context);
tv1.setText(Html.fromHtml(detail[0]));
+ tv1.setEllipsize(TruncateAt.END);
+ tv1.setSingleLine(false);
tv1.setTypeface(null, Typeface.BOLD);
tv1.setPadding(0, 0, 8, 0);
TextView tv2 = new TextView(context);
tv2.setText(Html.fromHtml(detail[1]));
tv2.setEllipsize(TruncateAt.END);
tv2.setSingleLine(false);
- tr.addView(tv1);
- tr.addView(tv2);
+ tr.addView(tv1, new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 1f));
+ tr.addView(tv2, new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 1f));
} else if (detail.length == 1) {
TextView tv1 = new TextView(context);
tv1.setText(Html.fromHtml(detail[0]));
