SeekBarPreference implementation
I am having a problem implementing SeekBarPreference in a class.
https://developer.android.com/reference/android/support/v7/preference/SeekBarPreference.html
As you can see this SeekBarPreference is available in 25.1.0 and I have implemented it in xml and the UI looks fine. I need to keep the value of this search button in the default setting. This is where I got the problem, there is no import option for android.support.v7.preference.SeekBarPreference. Is it not being used now?
I updated my app to 26.0.1 and tried to manually add imports but it is not installed. Any suggestions?
source to share
you need to include the preference-v7 library in your dependencies
compile 'com.android.support:preference-v7:26.0.0'
and then you should be able to import the class with
import android.support.v7.preference.SeekBarPreference;
if your compiling with sdk version 26, the backing library version should be 26.0.0, at the moment this is the latest version , 26.0.1 doesn't seem to exist
source to share