Android缩进布局,android – 在TextView中缩进项目符号列表

我感到惊讶的是,似乎没有人遇到这个问题。我的意思是,项目符号列表在关于对话框,常见问题解答等中不太常见,并且项目符号不必包含太多的文本来跨越多个行并遇到此问题。

无论如何,我现在要这样解决:

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="

  1. item 1\n
  2. item 2\n

超过一行的子弹中的第二,第三等行将不会像第一行那样得到相同的缩写,这是相当难看的。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值