Android – native seekbarpreference provided in material design

After reading the settings section of material design here, I see the following screenshot:

The three proposed preferences are the search bar, but I can't find any information about it, even in the support library

What did I miss here, or did Google just create a custom preference that hasn't been provided yet?

resolvent:

Developer docs explain how to achieve custom views in Settings.

TL; DR

>You need to create a custom layout file, in which ImageView, textview and seekbar are included in LinearLayout. > then you write a class that extends preference to implement seekbar.onseekbarchangelistener, and override all necessary methods to listen for changes in seekbar. > in the preference XML file, add the custom class as a tag, and you will see a similar UI

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>