Git Product home page Git Product logo

Comments (10)

daimajia avatar daimajia commented on July 18, 2024

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.

from androidviewhover.

drakeet avatar drakeet commented on July 18, 2024

I have changed the "0dp" to "wrap_content", but it still crashes.
And, the error message is the same.

from androidviewhover.

daimajia avatar daimajia commented on July 18, 2024

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.

from androidviewhover.

drakeet avatar drakeet commented on July 18, 2024

"200dp" still crashes, and the error message is the same.

from androidviewhover.

daimajia avatar daimajia commented on July 18, 2024

Ok, I think I know the reason.
Could you tell me the Android version you are testing?

from androidviewhover.

drakeet avatar drakeet commented on July 18, 2024

compileSdkVersion 20
buildToolsVersion "20"

minSdkVersion 14

And my Android Studio's version is Beta 0.8.6.

from androidviewhover.

drakeet avatar drakeet commented on July 18, 2024

I think I might need to remind you that: my code at me.drakeet.testhover.ui.MainActivity.onCreate(MainActivity.java:85) is mSampleLayout.toggleHover();

from androidviewhover.

daimajia avatar daimajia commented on July 18, 2024

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'

from androidviewhover.

drakeet avatar drakeet commented on July 18, 2024

Great!!! It has successfully run, and it was perfect, exactly what I wanted. Thanks again!

from androidviewhover.

daimajia avatar daimajia commented on July 18, 2024

Oh, great.
Thanks for your feedback!

from androidviewhover.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.