如何构建像默认短信线程视图一样的视图?
短信线程视图是这样的:
==here is the icon of 'someone'==
someone: xxxxxx
me: xxx
someone: xxxxxx
me: xxx
===here is an editbox== =button=
好的,我希望上面丑陋的示例可以让您更清楚我的问题。正如我所想,该视图不是 ListView,也不是 TextView。看来TextView不支持滚动功能。当我单击列表项时,ListView 将突出显示该列表项。
我对GUI编程不是很熟悉,所以我希望有人能给我一些帮助。谢谢。
The SMS thread view is like this:
==here is the icon of 'someone'==
someone: xxxxxx
me: xxx
someone: xxxxxx
me: xxx
===here is an editbox== =button=
Ok, i hope with the ugly sample above can make my question more clear to you. As i suppose, the view is not a ListView, either a TextView. It seems the TextView does not support scroll function. And ListView will hightlight the list item when i click it.
I'm not very familiar with GUI programming, so i hope someone can give me some advance. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您不需要单击每一行,那么您仍然可以将 ListView 与
android:clickable="false"
一起使用,这样它就不会突出显示该项目。另外,如果您选择使用 TextView,则可以将其包装在 ScrollView 中,以使其可滚动。
If you don't need to click on each line, then you can still use ListView with
android:clickable="false"
and so it wan't highlight the item.Also, if you choose to use a TextView, you can wrap it in a ScrollView, to make it scrollable.