有没有办法将搜索栏添加到我的实际首选项屏幕?
我一直看到有关添加您自己的搜索栏首选项的教程,但它不在我实际的 prefs.xml 中。有什么方法可以在我的主偏好设置屏幕中添加一个,或者我必须将其分开。
I keep seeing the tutorial on adding your own seekbar preference, but its not in my actual prefs.xml. Is there any way to have one in my main prefs screen or will I have to separate it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Google 似乎有 2 个滑块首选项 -
,但我不是确定它们何时可用。
您可以使用自定义内联 SeekBarPreference由我编写(请参阅底部的 2 个滑块):
我的代码非常简单 -
SeekBarPreference.java:
和 preference_seekbar.xml:
There seem to be 2 slider preferences by Google -
but I am not sure when they will be available.
You could use a custom inline SeekBarPreference by me (see the 2 sliders at the bottom):
My code is quite simple -
SeekBarPreference.java:
And preference_seekbar.xml: