How to make Preferences items with programmatically filled values (like: Version, Model number...)?
Why not use android.preference.Preference directly?
<Preference
android:key="version"
android:title="@string/version" />
No edit dialog, no more attribute, and information only!!
//Set the version string in your code
findPreference("version").setSummary(version);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With