Activity Background transparency and blur - android

I am trying to achieve a transparent background with a blurry effect on it. I managed to made the activity transparent but no luck with the blur. Could you help me to figure this out? I attached an image with contains what I would like to achieve(that blurry background below settings app).Thank you.Example

You can use Blurry library to achieve blur effect. It works perfect, but has minor bugs with activity state recreation (please check out issues)

Related

Gradient background scaled after resizing ViewGroup

In my app, I have ConstraitLayout with a gradient background. In a runtime, this ConstraitLayout can be resized. The problem I faced is that gradient drawable "isn't scaled". I will show an image to explain it better:
In the green circles, You can see that the color before and after resizing at the and of ConstraitLayout is different. Is this possible to force an app to set a gradient in the full range of colors?
The only way I have found to do it is to set ConstraitLayout background every time its changes. I think it is not the best way to do it, especially in my case when ConstraitLayout size was changing in on onTouch event, so my App has to change it so many times. But I didn't see any problems while using this solution.

Activity with blur image

I have main activity with background image and with some buttons,editext and textviews.
Now when I launch this activity I should have the background image with blur effect and all the controls visible.
I have done this way but result with no effect
getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
As it is already deprectaed. Can anyone suggest me the best way to do this?
You can try these implementations for one that suits you the most:
Fast Bitmap Blur For Android SDK
Advanced blurring techniques
Blur effect for Android design

9patch with custom background image

I've been working on this problem for 2 days now. What I'm trying to achieve is to make a bitmap fill the complete non-transparent background of a 9patch drawable (a speech bubble in this case).
Instead of this
I want something like this
(Yes, bad photoshopping, but serves its purpose.)
Is that even possible? I cannot provide any code, as I don't have any that would make my problem more clear. Sorry about that.
Regards,
D.

Create a foggy effect on screen

Is it possible to create a fog effect on the screen of an android phone. iFoggy was able to get this effect (see picture) for an iPhone.
Is it possible to achieve the same for an android app. I just want the foggy effect and don't want anything to happen when the user touches the screen.
I'm guessing this might be achieved using Bitmap but I've never used that before so any tips would be helpful.
you can have a look at this question here to have Blur Effect for your screen
Make a transparent activity. Refer this answer. click
And set the background for the layout of this activity, a transparent PNG file. Here is the PNG file.
click

background image transparency taking snapshot of layout android

I am having a View and i have placed a background image.Taking the snapshot works fine in this case.
But i setAlpha to make background image semi transparent then snapshot becomes blackish in color depending on how much I am making it Transparent.
How to programmatically take a screenshot in Android?
having seen this link but doesn't help much with this case.
Any help?
if you put an alpha color the screen shot will get a non-color (black) mix on it, always.
If you want a screen shot, and keep your alpha, you'll probably have to remove the alpha, wait it to render on the screen, get the screen shot, and then change it back to alpha.
I know cause I've used this before in an application.

Categories

Resources