java.lang.ClassCastException: com.android.layoutlib.bridge.android.BridgeContext cannot be cast to android.app.Activity
at cn.dreamtobe.kpswitch.handler.KPSwitchRootLayoutHandler.(KPSwitchRootLayoutHandler.java:50)
at cn.dreamtobe.kpswitch.widget.KPSwitchRootLinearLayout.init(KPSwitchRootLinearLayout.java:68)
at cn.dreamtobe.kpswitch.widget.KPSwitchRootLinearLayout.(KPSwitchRootLinearLayout.java:52)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)