Questions tagged [android-blur-effect]

16 questions
9
votes
2 answers

How to make an activity background transparent and blur the background

When I launch my app, it launches an Activity which should have transparent header and whatever is the currently shown in background should be blurred. I am able to get the transparency. But I am not able to figure out how to blur the background.…
7
votes
1 answer

Blurring content layered behind a card using Jetpack Compose on Android

I am trying to achieve the blur effect like highlighted in this post: I'm using Jetpack Compose: @Composable fun MainApp() { val linearGradientBrush = Brush.linearGradient( colors = listOf( Color(0xFF5995EE), …
1
vote
3 answers

How to change the radius blur of image view

I add this dependence in build.gradle to blur my imageView : dependencies { implementation 'com.jackandphantom.android:blurimage:1.2.0' } And the following code in my MainActivity.java : bgImage = (ImageView)…
Lina
  • 553
  • 10
  • 34
1
vote
2 answers

Blur and Unblur images in collapsing Toolbar

In my CountryImageInfo.java I have a collapsing toolbar with an image inside. This is what it looks like: I want to know how to blur the image as it collapses and how to unblur has it comes down again. Similar to the notification bar of iOS, I…
1
vote
5 answers

how to blur image in android and set it to relative layout

I want to blur image like this and I need to set it to the RelativeLayout and it should create blur image like this image given below : I used blurry library from github and it does all my work using this code but I can set it to Imageview only not…
Pedo
  • 194
  • 1
  • 2
  • 14
1
vote
1 answer

Getting error while calling the method

I am trying to make an app where when ever the app is open it will show a different image in the background but when I tried to call the method. I am getting error.I am making blur image for api lower than 16 this is what I used public class…
SAVVY
  • 55
  • 1
  • 10
1
vote
1 answer

How to pick blur color from palette API in android

I am displaying layout background image every image getting from server and it is working fine. I need to layout background image to blur. I wrote a class for the same. My question is: How to pick blur color from palette API? Bluer.java public…
chanti
  • 601
  • 2
  • 8
  • 17
0
votes
0 answers

BlurMaskFilter blur radius question on canvas with scale transformation

I have two views: View1 and View2. View1 draws a point with BlurMaskFilter on a canvas with a scale amount 3F. View2 first draws that point on a bitmap at 1x scale, and then the bitmap is drawn on the canvas, with 3x scale. Now I expect the two…
bczhc
  • 21
  • 1
  • 3
0
votes
1 answer

How can we create a transparent Fragment Layout with Recycler view inside the Layout

I have two fragment for my current application, In FragmentA I have a search view in Toolbar and on clicking on the search view , I have to show another fragment,FragmentB on top of fragmentA using my framelayout,with transparent view so that the…
I'm Coder
  • 125
  • 2
  • 13
0
votes
1 answer

ffmpeg scale filter takes too long

I am using below command to scale and blur a video but it is very slow. Can anyone please help if i can improve the speed somehow. "ffmpeg -i $inputPath -lavfi…
0
votes
0 answers

Adding a blur effect at runtime

I try to move my image one position to another with animation.Here is a my code int[] locationTo = new int[2]; secondView.getLocationOnScreen(locationTo); int x1 = locationTo[0]; int y1 = locationTo[1]; logo.post(() -> { …
BekaKK
  • 2,173
  • 6
  • 42
  • 80
0
votes
2 answers

Drop shadow blur effect on a FrameLayout / Layout in Android

I'm trying to make a drop shadow blur effect WITH COLOR on a rectangular layout view. I've tried to use this code but to no avail. int glowRadius = 14; int glowColor = Color.parseColor("#acc5fe"); Paint paint = new Paint(); …
0
votes
1 answer

Android: Renderscript error - Cannot update allocation from bitmap, sizes mismatch

I'm trying to load a photo from the web and perform a blur on it, outputting the blurred image as a separate bitmap. My code looks like this: URL url = new URL(myUrl); mNormalImage =…
0
votes
0 answers

How to set a blurry image Library without Onclick listener

I am trying to set a blur image library from https://github.com/wasabeef/Blurry But I am it is not working without onclick listener here is my java code protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
SAVVY
  • 55
  • 1
  • 10
0
votes
2 answers

How to set imageview.getDrawable in android

I am trying to make an image blur but I am getting a null point Exception error on running the app I came to know that it may happen by setting the backgroung instead of src so I changed it to src but then also getting the same error here is my…
1
2