Android 如何使ListView中的内容为下划线。求高手指点

阿斯兰 2010-12-31 04:28:35
如题,请给位高手大侠们,给指点下
...全文
478 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Android_wy 2010-12-31
  • 打赏
  • 举报
回复
重写一个布局文件.layout.session_presentation_item 把它换了

在自己写的xml里设置下划线
Theodore_Lin 2010-12-31
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 bhy_6655 的回复:]

我就这样写的:
Java code

SimpleAdapter adapter_presentation = new SimpleAdapter(this, data,
R.layout.session_presentation_item, new String[] { "Presentation_Text" },
new i……
[/Quote]
重写的话,要自定义一个类,继承BaseAdapter
阿斯兰 2010-12-31
  • 打赏
  • 举报
回复
我就这样写的:

SimpleAdapter adapter_presentation = new SimpleAdapter(this, data,
R.layout.session_presentation_item, new String[] { "Presentation_Text" },
new int[] { R.id.TextViewSessionPresentation });
list_view_presentation.setAdapter(adapter_presentation);


重写?咋重写哦。。。不就是new一个SimpleAdapter么?
f8376904110 2010-12-31
  • 打赏
  • 举报
回复
重写adpter,然后 自己定布局,想要什么 要的就是什么 样的

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧