I'm trying to add a hexagonal custom frame to an ImageView.
Approach I tried :
Created a hexagon shape in drawable folder.
drawable/ic_hexagon.xml file
How to create a custom shape for a Button? Can I set different colors to button background colors for many conditions.Any help will be appreciated.Thanks.
I am working with a custom UI element highlights.So I need to draw a half ellipse like shape over a particular view on runtime.
For example:
I have to draw a yellow color half ellipse over a white ellipse.
Help will be appreciated.
edited part of the question I want to draw a trapezium shape to apply for a Linear-layout. so far I've done following. But I want to only to appear the trapezium. other parts must be not visible. thank you.
i dont want the othe parts except…
I need to create circular shape with gaps.
I'm creating a Progress Bar which will represent clock. 12 gaps each assigned to hours.
this is exactly the thing I want to achieve. (Outer ring on Death Star)
here is my code so far:
in…
I am setting the background of a TextViewin android as a pie diagram. I have used a LayerDrawable of ArcShape(s) to do so and set it as the background. Here is the code for that:
final ShapeDrawable arcGreen = new ShapeDrawable(new ArcShape(-90,…
I want create one shape such as below image, but I want create this with XML codes (in drawable) and I do not want create this with 9.patch images!
How can I create this shape with xml code?
I want create shape such as this image :
But i do not want use 9 pach png image, i want create this shape in drawable folder.
How can i create this?
Any help could be appreciated! Thanks
I have been reading other posts where the solution is apparently given. However, the solution doesn't work for me. I would have commented in that post, but I cannot do it with my reputation.
The issue is described here. Basicly I want to use two…
I have created circle shape drawables that contain png icons. As per the Android Material guidelines the diameter of the circle is 40dp and the icon is 24dp. Initially I did not set any values for left, right, top and bottom as I assumed the…