Android 菜单项描述
我了解 Java,但我对 Android 很陌生。我有一个问题,也许很简单,但我过去两天在网上搜索过,但一无所获。 我什至不知道它是如何称呼的,这就是为什么我有一个图像链接 照片 及其示例路径菜单->设置->位置(例如,但在设置中几乎所有项目都是相同的) TextView 或 Chechbox 项目有文本和描述(图片中的文本较大,描述较小)。答案可能非常简单,因为几乎所有项目都是相同的。 以及在处理新的 itent 后描述如何变化,它们有一个 android:id 或在代码中标识它们的东西? 谢谢您的宝贵时间!
I know Java, but I am new to Android. I have a question, maybe it is simple but I have searched the web for the past 2 days and I`ve got nothing.
I don't even know how it's called, that's why I have a link to an image photo and an example path to it menu->settings->location (for example but in settings almost all items are the same)
The TextView or the Chechbox items have a text and a description (the text is bigger and the description is smaller in the picture) .The answer is probably pretty simple because almost all items are the same.
and how descriptions change after the new itent has been procesed they have an android:id or something to id them in the code?
thank you for your time!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能想阅读我认为正在显示的自定义 ListView 项目和适配器,Android 系列: 自定义 ListView 项目和适配器
you might want to read Custom ListView items and adapters that's what i think is being displayed, Android Series: Custom ListView items and adapters
屏幕截图上有一个
ListView
。突出显示的项目是自定义 ListView 项目。突出显示的项目不仅仅是单个视图。看起来有 3 个视图:一个垂直的LinearLayout
包含 2 个TextView
,一个用于标题,一个用于描述。On the screenshot there is a
ListView
. The item highlighted is a custom ListView item. The highlighted item is not just a single view. It looks like there are 3 views: a verticalLinearLayout
containing 2TextView
, one for title and one for description.