I am trying to find out how to use drawable xml () to create a right angled triangle like below (but fill with color without the black line):
I try to think from the angle of halving a rectangle from diagonal line, but still...can't find how…
I have a shape which I need to change the colour of using the below code:
@Override
public View getView(int position, View convertView, ViewGroup parent) {
// Get the data item for this position
LockListDataModel locks =…
I have a button on an image. I would like to have this button with a solid background color and transparent text (to display the back image). Is it possible to make it have only transparent text?
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,…
In a project I have to show profile image and other images in a different shape. I don't know how to create a shape like it, and how to show an image in it. I have to put this type of shape in list view also. Please suggest me.
Thanks in advance.
I'm trying to display Text in RectShape which uses ShapeDrawable to display in Canvas.
I'm able to display RectShape in this code, but looking for how to display the String on that!
public class CustomDrawableView extends View {
private…
I created an Oval Shape and set the sizes 56px for each height and width. but i had an Oval Shape not a circle! when i set the sizes to 78px for each i get an exact circle! Anyone noticed or faced this issue?
Solutions please!
clear_test.xml this…
I'm trying to mimic something from the iPhone version of my app. I have a square image and I want to show it in a circle with a white border around it. like this
Is there a way I can do this?
Here is what i want:
I have a GridLayout inside of a ConstraintLayout, to which I add multiple rows and columns of custom ImageButtons (BoardCells) dynamically.
The ImageButtons display circles using a shape XML file (code below).
I want the…