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"/>
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"/>