我感到惊讶的是,似乎没有人遇到这个问题。我的意思是,项目符号列表在关于对话框,常见问题解答等中不太常见,并且项目符号不必包含太多的文本来跨越多个行并遇到此问题。
无论如何,我现在要这样解决:
android:id="@+id/ScrollViewTipsLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
android:id="@+id/TipsLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:id="@+id/TableLayout01"
android:layout_width="wrap_content"
>
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="@+string/tv_picking_content_ingress"
android:layout_span="2"
android:singleLine="false"
android:layout_weight="1"
/>
android:layout_height="wrap_content"
android:text="•"
android:singleLine="false"
/>
android:layout_height="wrap_content"
android:text="@+string/tv_picking_content_first"
android:layout_width="0dp"
android:layout_weight="1"
android:gravity="left"
android:singleLine="false"
/>
android:layout_height="wrap_content"
android:text="•"
android:singleLine="false"
/>
android:layout_height="wrap_content"
android:text="@+string/tv_picking_content_second"
android:layout_width="0dp"
android:layout_weight="1"
android:gravity="left"
android:singleLine="false"
/>
我使用它来呈现一个子弹列表中的静态文本,所以我不用在代码中动态地创建子弹文本。如果有人有任何建议,如何更好地完成同样的事情,请告诉我。
Btw,如果在上面的第二个链接中提出了解决方案:
android:text="
- item 1\n
- item 2\n
超过一行的子弹中的第二,第三等行将不会像第一行那样得到相同的缩写,这是相当难看的。