Closed drakeet closed 10 years ago
Because you set BlurLayout
0dp height, it can get blur image from a 0 dp height view.
You have to set BlurLayout
height larger than 0dp height.
I have changed the "0dp" to "wrap_content", but it still crashes. And, the error message is the same.
The FrameLayout
is 0dp, although you set BlurLayout
wrap_content
, it still 0dp.
You can set a exact value, for example 200dp, have a try.
"200dp" still crashes, and the error message is the same.
Ok, I think I know the reason. Could you tell me the Android version you are testing?
compileSdkVersion 20 buildToolsVersion "20"
minSdkVersion 14
And my Android Studio's version is Beta 0.8.6.
I think I might need to remind you that: my code at me.drakeet.testhover.ui.MainActivity.onCreate(MainActivity.java:85)
is mSampleLayout.toggleHover();
Hey. I published a SNAPSHOT version several minutes ago, you can have a try if it works now.
step1:
allprojects {
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
}
step2:
compile 'com.daimajia.androidviewhover:library:1.0.2-SNAPSHOT@aar'
Great!!! It has successfully run, and it was perfect, exactly what I wanted. Thanks again!
Oh, great. Thanks for your feedback!
My xml in this part is roughly like this:
And I want to through the menu key to
showHover ()
, the results originally expected is this: I press the Menu key, then Hover out, covering my entire FrameLayout. The result is not, and the error (key information) as follows: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!