gregkorossy / Android-Support-Preference-V7-Fix

Android androidx.preference support library has some issues, this lib tries to fix them.
https://discord.gg/87NVsSK
Apache License 2.0
497 stars 46 forks source link

Feedback preference-v7 BUG #113

Closed tcqq closed 6 years ago

tcqq commented 6 years ago

if use "ColorPickerPreference", preview interface cannot be displayed

image

image

gregkorossy commented 6 years ago

It's pretty much possible because this lib uses certain classes not available at design-time and the built-in designer does not know about these classes that are required (and available) at run-time, hence it cannot display the preview.

tcqq commented 6 years ago

How can make it previewable?

gregkorossy commented 6 years ago

Run it on a device / emulator. You can also replace the custom preferences (e.g. ColorPickerPreference) in your XML with a standard one, like EditTextPreference and preview it like that. I'd recommend the former though because replacing and re-replacing preferences can be overwhelming and prone to bugs.

tcqq commented 6 years ago

Well, if can preview in the android studio preview interface is the best