Closed ParticleCore closed 1 year ago
Hi @ParticleCore, thanks for filing an issue! Unfortunately the Material Android team has little control over Android Studio Preview issues. The Preview Editor has its own layout engine and the Studio team has to make fixes to support themes, styles, symbols, etc.
Would you be able to filing a bug with them following these instructions?
https://developer.android.com/studio/report-bugs
Closing for now but feel free to re-open if this needs attention.
Sadly, it is still problem even in Electric El 2022.1.1 Patch 2. Anyone found solution for this issue?
@Baterka see comment thread in https://github.com/material-components/material-components-android/issues/3007 It looks like you need at least Flamingo for it to work
Thanks @imhappi for info. Is Flamingo Beta 5 stable a little? Or have some major bugs?
EDIT: Sadly, does not work on Flamingo Beta 5.... Same problem.
Description: Setting up a basic xml layout with Tablayout and TabItem children views results in render problem that prevents the layout preview from functioning correctly.
Other users are also reporting the same issue on SO: https://stackoverflow.com/questions/74271897/java-lang-nullpointerexception-at-android-content-res-resources-theme
Below is the full error stack thrown when the IDE attempts to render the layout in the preview panel
Expected behavior: Layout preview should be rendering the views without any issues.
Source code:
Minimal sample app repro: Source code example is sufficient.
Android API version: Not Applicable.
Material Library version: 1.8.0
Device: Android Studio Electric Eel Patch 1