Closed tcqq closed 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.
How can make it previewable?
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.
Well, if can preview in the android studio preview interface is the best
if use "ColorPickerPreference", preview interface cannot be displayed