在旋转器android中换行文本
我有很长的文本,我想将其中一些(但不是全部)项目放入旋转器中。尝试使用此处的答案,但无法得到它去工作。我在 res/layout 目录中创建并保存了 multiline_spinner_dropdown_item.xml,但在 Eclipse 中仍然收到错误“multiline_spinner_dropdown_item 无法解析”。
I have long text that I want to put in a few, but not all, items in a spinner. Tried using the answer here but was not able to get it to work. I created and saved multiline_spinner_dropdown_item.xml in res/layout directory but still get an error "multiline_spinner_dropdown_item cannot be resolved" in Eclipse.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Spinner 适配器中使用此文本视图来代替您在 Spinner 的 .setAdapter 方法中使用的 Android 默认文本视图。请参阅下面的 R.layout.spinner_textview textview 是我在上面发布的文本视图。
Use this textview in your spinner adapter in place of the android default textview you are using in .setAdapter method of the Spinner. see below R.layout.spinner_textview textview is this textview i have posted above.