I'd like to achieve drawing a diagram just like the image attached but I'm having trouble drawing the red vertical rectangle on the right along with putting other objects on top. The biggest concern is the to do with numerous different screen sizes…
Is there a way to subtract or "cut out" a shape from another shape in xml? I'd like to create a white square with a transparent circular hole in the center... mainly because I don't want to do a bitmap manipulation to make a circular image :).
Yes,…
I have a png drawable for the buttons. But it image drawable has gradient and it looks bad when applying 9patch (gradient & 9patch non compatible). I want to do this with a shapes. But I can't drawing with android shapes because it's hard to me to…
I am facing problems drawing arrows between two or more rectangle objects. I have a Array list storing several rectangles.
For instance, the user have two rectangles on the canvas.
Upon clicking the draw arrow button, the user would be able to…
I am adding a custom marker to the android map view. here is the image I am using for it.It looks like as more markers are placed say about 100 the entire app is getting slow. Here is the image I am using for that.
Instead of using this image, I am…
I'm trying to figure out how to create this background in xml,
couldn't find anything that helped me.
Ignore the circle image of the kid and the text of course, I am talking about the background itself, is there a way to create something like that…
I need to create image for my camera app. I create a circle inside another circle
it look fine when I see it on android studio but when run it on real device it was not same as it is. Here is image of both first one from real device and second from…
In my Android app, I'm trying to set a simple ring shape as background drawable for my Buttons. But as much as I try, the XML preview ignores the background drawable unless the API level is set to 20 (Android L)
What's going on? I'm sure people used…
I am working on app which has a titlebar with chronometer on the left and a textview centered in a RelativeLayout.
RelativeLayout take height of textview and fill screen width