I am trying to make a shape that looks roughly like
I understand that I need a layer-list with 3 items stacked on top of each other with two of them being offset from their top-left and bottom-right. Here is my code for this
I am using the elevation attribute for my linearlayout, but the shadow is to bright. I need a darker shadow only for the linear layout.
I added android:spotShadowAlpha to my styles.xml. It worked, but not only for the linear layout. Every View has a…
For example to create a button whose button_normal state shows some different style and button_pressed state shows some different style, we create three files:
button_normal.xml
I'm trying to draw this custom shape in the custom view. I must have a stroke and fill for this shape.
Now I made this with 2 shapes, but I haven't stroked of course:
rect.set(0, 0, width, height);
canvas.drawRoundRect(rect, cornerRadius,…
I want to create special view for my app. It is vertical dotted line and two half circles on a top and bottom. Is there any way how to create this as single shape drawable? I made dotted line, but I cant make half circle.
It should looks like…
I'm using cards in a recycleview and would like to highlight some of them.
the first thought i have is a different shadow or border with a bright color, but so far i was not able to find any properties that would adjust it
this is my card…
i am trying to make CardView with elevation but the issue is when i use no-alpha color like "#ffffff" it works fine but when i set some alpha color like #b0ffffffit shows another inner view with elevation
like this
but when i set non-alpha color…