Android SeekBarPreference

后端 未结 3 942
独厮守ぢ
独厮守ぢ 2020-12-06 18:49

I\'m currently trying to implement SeekBarPreference class using http://android-journey.blogspot.com/2010/01/for-almost-any-application-we-need-to.html tutorial with Relativ

3条回答
  •  [愿得一人]
    2020-12-06 19:30

    Regarding the inability to move the slider, this is because its width is set to 80 (see params2) which is too narrow to allow sliding. After setting a reasonable width for it, e.g. 400, and the associated text view and a few mods to get it to compile with my SDK version it worked for me. One advantage this version has over many others is that the layout is done in the code instead of XML which allows an app to easily instantiate multiple sliders.

提交回复
热议问题