Android Example ImageView - Circular, Hexagonal, Triangular, Bubble, Star Imageviews (with inline Java code)

Parrots.png
See attached project with inline Java code to create round imageviews. You only need library JavaObject V2.01 to be enabled.
 

Attachments

  • RoundBitmap.zip
    57.1 KB · Views: 2,396
Last edited:

Johan Schoeman

Expert
Licensed User
Longtime User
Yippie!, I did it :)... I had to:
1. Draw a path with a white fill
2. Draw the second path with a slightly lesser dimension..

Thanks a lot @Johan Schoeman...

Took me hours since I'm a bit new to Java o_O
I don't know if that's the standard way though, but I go it to work the way I wanted ;).
View attachment 40281
Well done! Now you have learnt something. There are plenty of ways to skin a cat...
 
Last edited:

bparent

Member
Licensed User
Longtime User
Thanks, this is nice and helpful. The bitmap loaded in the heart shaped imageview comes in rotated 90 degrees counterclockwise. Is there a way to maintain same image orientation from original picture?
 

Kwame Twum

Active Member
Licensed User
Longtime User
on which device are you testing this?
 

JohnC

Expert
Licensed User
Longtime User
Thanks - this worked great!
 

Johan Schoeman

Expert
Licensed User
Longtime User
Top