I have an app has volume preference, I will use it to control notification volume. Below my layout code:
<VolumePreference
android:name="Volume Preference"
android:summary="Notification Volume"
android:title="Notification Volume"
android:key="notifVolPref"/>
But I don't know, How to implement that on class?