Wednesday, 10 January 2018

Error inflating class com.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch

  No comments
<com.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch   
  android:id="@+id/location_switch"  
  android:layout_width="0dp"  
  android:layout_height="wrap_content"
  app:ball_press_color="@android:color/white" 
  app:base_press_color="@color/ballReleaseColor"   
  app:base_release_color="@color/baseReleaseColor"   
  app:icon_press="@drawable/ic_location_on"    
  app:icon_release="@drawable/ic_location_off" />

The problem is, by using a vector drawable as an input to app:icon_press and app:icon_release, whereas the library does not support vector drawable.

No comments :

Post a Comment

Loading...