Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why doesn't it work #93

Open
robinhoo2010 opened this issue May 24, 2019 · 2 comments
Open

Why doesn't it work #93

robinhoo2010 opened this issue May 24, 2019 · 2 comments

Comments

@robinhoo2010
Copy link

HI,Why doesn't it work, the code is
Blurry.with(this)
.radius(10)
.sampling(8)
.async()
.capture(findViewById(R.id.iv_logo))
.into(findViewById(R.id.iv_logo));

@zeeshan-mehdi
Copy link

renderscriptTargetApi 28
renderscriptSupportModeEnabled true

add these two lines to your app level build.gradle file like this
android{
defaultConfig {
applicationId "com.dating.needtodate"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0"

    renderscriptTargetApi 28
    renderscriptSupportModeEnabled true

    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

}

make sure that target sdk version and renderscriptTargetApi version are same

hope it work :)

@superdiazzz
Copy link

@zeeshan-mehdi
i still have the issue, still showing white space

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){
            Blurry.with(this)
                .radius(25)
                .sampling(4)
                .color(Color.argb(66, 255, 255, 0))
                .capture(findViewById(R.id.image_header))
                .getAsync {
                    findViewById<ImageView>(R.id.image_header).setImageDrawable(BitmapDrawable(resources, it))
                }
        }

and i already put the addition script on app build.gradle like this

defaultConfig {
        applicationId "com.skillbaru.apps"
        minSdkVersion 19
        targetSdkVersion 29
        versionCode 10
        versionName "1.0.9"
        multiDexEnabled true

        renderscriptTargetApi 29
        renderscriptSupportModeEnabled true

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants