Maxr1998 / ModernAndroidPreferences

Android Preferences defined through Kotlin DSL, shown in a RecyclerView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement an `EditTextPreference` counterpart

msfjarvis opened this issue · comments

androidx.preference provides EditTextPreference as a way to accept arbitrary text input from users, which has no parallel in ModernAndroidPreference as of now.

It'd also be great to be able to have an optional validator method that would be called when the user attempts to save the value, and possibly a way to provide inputType flags for the underlying EditText so we can enforce things like numeric input without needing the validator or inconveniencing the user.

Shipped in 1.2.0-alpha1 so probably okay to close now

Yep, closing this now.