skydoves / ExpandableLayout

🦚 An expandable layout that shows a two-level layout with an indicator.
Apache License 2.0
825 stars 54 forks source link

Error inflating class on Android 4.x #13

Closed thereisonlywe closed 4 years ago

thereisonlywe commented 4 years ago

Describe the Bug: When inflating the layout containing expandablelayout, the app crashes. Unfortunately not much is reported to the logcat. Only "Error inflating class com.skydoves.expandablelayout"

Expected Behavior: It should work as it does on Android 7 and 10; I tested on.

This is where it crashes LayoutInflater.from(MainActivity.this).inflate(R.layout.activity_main_settings, null, false);

Below is how I use this library inside my layout <com.skydoves.expandablelayout.ExpandableLayout android:id="@+id/ABC" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" app:expandable_duration="150" app:expandable_isExpanded="false" app:expandable_parentLayout="@layout/abc_parent" app:expandable_secondLayout="@layout/abc_child" app:expandable_showSpinner="true" app:expandable_spinner="@drawable/ic_arrow_down" app:expandable_spinner_color="@color/violetDark" app:expandable_spinner_animate="true" app:expandable_spinner_margin="0dp" app:expandable_spinner_size="36dp"/>

skydoves commented 4 years ago

Hi, @thereisonlywe! It is released a new version 1.0.6! Please check to work well using the new release. Thank you for your issue :)

skydoves commented 4 years ago

Fix confirmed.

hoseinimohamad commented 3 years ago

Fix confirmed. The problem remains!