<com.daimajia.androidviewhover.BlurLayout
android:id="@+id/blur_layout"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1">
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
/>
</com.daimajia.androidviewhover.BlurLayout>
Caused by: java.lang.NullPointerException
at com.daimajia.androidviewhover.tools.Blur.apply(Blur.java:19)
at com.daimajia.androidviewhover.tools.Blur.apply(Blur.java:15)
at com.daimajia.androidviewhover.BlurLayout.addBlurImage(BlurLayout.java:178)
at com.daimajia.androidviewhover.BlurLayout.hover(BlurLayout.java:119)
at com.daimajia.androidviewhover.BlurLayout.showHover(BlurLayout.java:105)
at com.daimajia.androidviewhover.BlurLayout.toggleHover(BlurLayout.java:164)
at me.drakeet.testhover.ui.MainActivity.onCreate(MainActivity.java:85)
at android.app.Activity.performCreate(Activity.java:5242)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2151)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2236)
at android.app.ActivityThread.access$800(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5034)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
So ask: under BlurLayout in the layout file has one and only ImageView? I put a FrameLayout, and want the buttons to control Hover‘s toggle, but it seems not, could help? Thank you very much!