Open geoff-powell opened 1 year ago
Same problem. Also happens in version 1.8.0.
Bunch of render problems with this simple XML code:
<com.google.android.material.tabs.TabLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tab 1" />
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tab 2" />
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tab 3" />
</com.google.android.material.tabs.TabLayout>
Style ResourceReference{namespace=apk/res-auto, type=attr, name=textAppearanceTitleSmall} is not of type STYLE (instead attr)
java.lang.NullPointerException: Cannot invoke "android.content.res.BridgeTypedArray.setTheme(android.content.res.Resources$Theme)" because "ta" is null
Yes the version problem ; try switch to implementation "com.google.android.material:material:1.7.0"
This is still an issue with build 1.11.0
Description: When updating to 1.9.0 of material, we noticed an error when taking Paparazzi snapshot tests using a TabLayout. There was a change from 1.7.0 -> 1.9.0 where
defaultTabTextAppearance
was used.Stacktrace
Expected behavior: Correctly load styles from attributes using something like this
Source code: The code snippet which is causing this issue
Minimal sample app repro: TBD
Android API version: 32 (via Paparazzi)
Material Library version: 1.9.0
Device: (Run via junit tests with Paparazzi)