SeekBar Holo Theme using Support Library

白昼怎懂夜的黑 提交于 2019-12-06 02:42:19

I can't seem to find whether this is how Google wants my SeekBar to look like or am I doing something wrong:

Nope, you're not doing anything wrong. It's working as intended. If you want consistency with your UI elements across different Android versions, you need to use ActionBarSherlock and optionally HoloEverywhere.

Another option is the Android Holo Colors Generator. You can pick and choose which widgets you want as well as a color and it will generate the ICS themed assets and styles for you. You can then add them to your project as needed.

The point of the support library is to give your app a consistent Android feel across all devices. In other words, the same slider would be used across all Android apps that are running on a specific version of Android. So, what you are seeing is what you would expect. The spinner is consistent for the Android version, not for your app.

To make the same slider for all versions of Android, you need to create your own custom component. Here's a good article. It seems difficult at first, but once you get it working, you'll realize it's not so bad.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!