[APP][2.1+] Roundr - Rounded screen corners

Search This thread

Mohammad_Adib

Senior Member
Sep 8, 2011
1,294
3,292
Bellevue, WA
Will you be adding a hex changer to corners?

s2rootbox......

Colors? Nah - keeping it simple is the best. And I've never seen a screen without at least a slim black bezel around it. Not even the white Samsung Galaxy S3/4 and Notes have a white bezel - there is a black outline around it.

Anyway, here's a cool picture!

mqCVIpp.png
 
Last edited:

spupuz

Senior Member
Feb 2, 2008
1,847
267
46
Milan
Colors? Nah - keeping it simple is the best. And I've never seen a screen without at least a slim black bezel around it. Not even the white Samsung Galaxy S3/4 and Notes have a white bezel - there is a black outline around it.

Anyway, here's a cool picture!

mqCVIpp.png
it's so cool could you decrease memory usage and maybe use something that permit the service to stay up but not having notification?
 

Mohammad_Adib

Senior Member
Sep 8, 2011
1,294
3,292
Bellevue, WA
it's so cool could you decrease memory usage and maybe use something that permit the service to stay up but not having notification?

Lol without notification? No. Impossible. Obviously you haven't clicked the notification option in settings lol. And also no. Floating apps use memory especially since the corners are anti aliased. My devices have 1800mb of ram so not an issue for me or most of the people that have the app. Its a free app dude, cmon.

Nice app :)
Would be great if you could implement it on the lockscreen as well

Not allowed by android.

Sent from my Nexus 10 using xda premium
 
  • Like
Reactions: xcly

spupuz

Senior Member
Feb 2, 2008
1,847
267
46
Milan
Lol without notification? No. Impossible. Obviously you haven't clicked the notification option in settings lol. And also no. Floating apps use memory especially since the corners are anti aliased. My devices have 1800mb of ram so not an issue for me or most of the people that have the app. Its a free app dude, cmon.



Not allowed by android.

Sent from my Nexus 10 using xda premium
OK for the Mandatory Notification, but what about memory?
i know it's a free app it was just a nice to have anyway, the is well done and the round effect it's so cool!!! :)
 

Mohammad_Adib

Senior Member
Sep 8, 2011
1,294
3,292
Bellevue, WA
OK for the Mandatory Notification, but what about memory?
i know it's a free app it was just a nice to have anyway, the is well done and the round effect it's so cool!!! :)

I wish I could do something about the memory problem. I'll try to explain as simply as I can:

The 4 floating overlays have an ImageView with a 512x512 pixel image of a corner that it resizes to fit inside the window. The 512x512 image is saved in RAM probably 4 times, resizing which probably takes even more RAM, and then the notification icon takes some RAM, on top of which the floating windows take some RAM as well. 14mb is really low for a floating app, usually they can go up to 20 to 30mb.

But in a world where most modern phones have 2GB of RAM, 14mb is only about 0.68% of the usable RAM. That's not even 1%
 
Last edited:
  • Like
Reactions: Prowler

spupuz

Senior Member
Feb 2, 2008
1,847
267
46
Milan
I wish I could do something about the memory problem. I'll try to explain as simply as I can:

The 4 floating overlays have an ImageView with a 512x512 pixel image of a corner that it resizes to fit inside the window. The 512x512 image is saved in RAM probably 4 times, resizing which probably takes even more RAM, and then the notification icon takes some RAM, on top of which the floating windows take some RAM as well. 14mb is really low for a floating app, usually they can go up to 20 to 30mb.

But in a world where most modern phones have 2GB of RAM, 14mb is only about 0.68% of the usable RAM. That's not even 1%
okdon't worry :) i'll change my OLD OLD gnex :p
 

spoidar

Senior Member
Aug 13, 2010
153
59
I wish I could do something about the memory problem. I'll try to explain as simply as I can:

The 4 floating overlays have an ImageView with a 512x512 pixel image of a corner that it resizes to fit inside the window. The 512x512 image is saved in RAM probably 4 times, resizing which probably takes even more RAM

What about using a Path via Shape/ShapeDrawable?

http://developer.android.com/reference/android/graphics/Path.html

Should use way less memory than bitmaps.

As a bonus, that would give you an easy path to colour selection (stroke/fill) if you were inclined to implement that for people with custom themes.
 
Last edited:
  • Like
Reactions: B1nny

hansip87

Senior Member
Jan 14, 2011
2,916
2,242
Jakarta
Thanks for this app! :) btw, i'm not sure but is it true that the Status bar doesn't get rounded too? Seems a little weird to see a blacked round just under the statusbar, would like to have the full screen rounding experience. :) no matter, i'd just kill the top left and right at the moment :) thanks
 

Mohammad_Adib

Senior Member
Sep 8, 2011
1,294
3,292
Bellevue, WA
What about using a Path via Shape/ShapeDrawable?

http://developer.android.com/reference/android/graphics/Path.html

Should use way less memory than bitmaps.

As a bonus, that would give you an easy path to colour selection (stroke/fill) if you were inclined to implement that for people with custom themes.

Thanks so much!!! I'm always picking the laziest way to develop an app and this is how i should've done it. Great resource thanks for sharing! Love this stuff.

Sent from my Nexus 10 using xda premium
 
  • Like
Reactions: B1nny

n3ocort3x

Senior Member
May 10, 2012
5,859
10,822
Vienna
Thanks for this masterpiece:good: And thx for open source ! thats the way to go !

I dont know if its possible but it would be awesome if the app would have the possibility to excludes the homescreen (its only a idea)
via a checkbox or something like that. or make it transparent on homescreen.
I provide a screenshot so maybe its easier to understand what i mean...

Look at the left bottom of the corner near the back button :) Dont get it wrong its no critic or a request, just an idea. the guys with
navbar instead of hw buttons (like me on n4) would thank u :)

screenclzbw.jpg
 
Last edited:

Dovidhalevi

Senior Member
Jun 26, 2012
2,728
1,172
Really cool!

If it were run as a service, would that be better? No need for notification icon? Hit lock screen as well?

Minimum dp radius will differ from device to device. Lower, smaller screen devices may show nothing below 20, for example.
 

Mohammad_Adib

Senior Member
Sep 8, 2011
1,294
3,292
Bellevue, WA
Really cool!

If it were run as a service, would that be better? No need for notification icon? Hit lock screen as well?

Minimum dp radius will differ from device to device. Lower, smaller screen devices may show nothing below 20, for example.

Yeah why is that? 480x800 screens show nothing below 14 and suddenly pop up after 14... Weird!

Also, it is a foreground service and to keep it alive i need a notification.

Sent from my Nexus 10 using xda premium
 

Top Liked Posts

  • There are no posts matching your filters.
  • 372
    Introducing Roundr, an application that rounds the corners of your screen!
    4b2su.png

    Download Roundr

    Roundr Extensions

    Source Code

    Brought to you by the developer of Sidebar and Floating Stickies
    61
    Introducing Roundr Extensions.



    Roundr Extensions works with Roundr pre-installed and provides 10 new corner styles. More features are coming in the future!


    Changelog:
    Update v1.0.1
    - Fixed boot receiver bug

    Update v1.0.5
    - Added more options in settings

    Update v1.5.1
    - Added extra settings

    Update v1.5.5
    - Small bug fix
    - Changed default radius to 10dp
    - Perfection

    Update v1.6.1
    - Anti-Aliasing
    - Fixed start on boot
    - Added low priority notification
    - Apache license on source code

    Update v1.7.1
    - YouTube fullscreen bug fixed
    - Support added for expanded desktop
    - New icon!
    - Settings animation removed\\

    Update v1.8.1
    - Battery & RAM optimized far more
    - Anti-Aliasing improved by many orders of magnitude
    - Cleaner looking notification

    Update v1.9.9
    - Lock screen support
    - Touch underneath corners
    - Final optimizations
    - Update radius as changing

    Update v2.0.0
    - Added option to not overlap the notifications

    Major Breakthrough v2.5.0
    - Fixed bug with fullscreen YouTube and fullscreen video players
    - Battery usage minimized greatly

    Update v3.0.0
    - Updated the Settings UI with standard Android settings

    Update v4.0.3
    - Renamed to Roundr
    - Added developer info in settings
    - Option to remove notification using root

    Update 5.0.1
    - App updated to support Roundr Extensions
    - Roundr Extensions allows for 10 new corners
    - Added peel dark corner style for extensions

    Update 5.0.2
    - Added support for blacklisting apps. Now you can specify which apps get rounded corners!

    -----------------------

    Reviews, News, and Coverage


    XDA Front Page
    Droid Life
    Android Police
    AndroidAndMe
    Redmond Pie
    Reddit
    Droid Forums


    Top 3 on AppBrain

    BHamlPV.png


    Top 5 on Trending Google Play Apps

    AkllFM6.png
    19
    Anti aliasing corners

    Hi, my name is Alexis, I'm the author of the exact same application than yours, written 1 year ago. It is named Rounded Corners and can be found on Google Play (I can't put the link here, I'm still a newbie on this forum).

    Anyway, I'm now sure that my application won't have the celebrity of yours so here is my contribution, I hope you'll like it.
    Here is the code I'm using to dynamically create the anti-aliased corner in my application.

    Code:
    	final static Bitmap createRoundCornersBitmap(int radius, int color, float hardness, boolean antialias)
    	{
    		int width = radius * 2;
    
    		int[] pixels = new int[width * width];
    
    		float halfSize = radius;
    		double oneMinusHardnessFactor = 1 - hardness;
    		{
    			int index = 0;
    			int pixel = 0;
    			for (int i = 0; i < width; i++)
    			{
    				for (int j = 0; j < width; j++)
    				{
    					float hDistance = ((float) i) - halfSize + 0.5f;
    					float vDistance = ((float) j) - halfSize + 0.5f;
    					double distance = Math.sqrt ( (hDistance * hDistance) + ((vDistance * vDistance)) );
    
    					pixel = color;
    					if (distance < halfSize)
    					{
    						double factor = distance / halfSize;
    						// double opacityFactor = 1.0f;
    						double opacityFactor = 0.0f;
    						if (factor > hardness)
    						{
    							factor = factor - hardness;
    							factor = (factor / oneMinusHardnessFactor) * Math.PI / 2;
    							// opacityFactor = 1 - Math.sin ( factor );
    							opacityFactor = Math.sin ( factor );
    						}
    						if (antialias)
    						{
    							pixel &= 0x00FFFFFF;
    							pixel |= ((int) (opacityFactor * 255)) << 24;
    						}
    						else
    						{
    							pixel &= 0x00FFFFFF;
    							// pixel |= 0x00000000;
    						}
    					}
    					else
    					{
    						// pixel &= 0x00FFFFFF;
    						// pixel &= 0xFF000000;
    					}
    
    					pixels[index] = pixel;
    					index++;
    				}
    			}
    		}
    
    		Bitmap bitmap = Bitmap.createBitmap ( pixels, width, width, Config.ARGB_8888 );
    		return bitmap;
    	}

    You will get a better result than stretching or using multiple images made with Photoshop.
    You can also easily handle colors and transparency with that.

    The parameters I'm using are : Bitmap bitmap = createRoundCornersBitmap ( radius, color, 0.99f, true );


    I would be happy if you use this code, please let me know.

    Cheers.
    12
    Update v1.7.1

    - YouTube fullscreen bug fixed
    - Support added for expanded desktop
    - New icon!
    - Settings animation removed

    Hopefully battery is not affected. Everyone should receive the update in a few hours. Cheers!

    Get the update now before it even hits the Play Store!
    Here's the apk: https://www.dropbox.com/s/wofwirh50sdx9ve/RoundR.apk

    EDIT:
    Update v1.7.2

    I am going to back to the old style of icon. I really like it because it keeps the same style as my other apps. It's the same template as Sidebar.

    mp5Xp5e.png
    12
    Update v1.0.5

    Settings allow for toggling each corner.

    zG8Xc7R.png