Skip to main content
1 vote
1 answer
48 views

I want to have a small button that has a three dots icon. I made the icon drawable : <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas....
Elikill58's user avatar
  • 5,045
0 votes
1 answer
41 views

I'm using this code: <Button android:id="@+id/play_pause_button" android:layout_width="match_parent" android:...
TechyBenji's user avatar
0 votes
0 answers
24 views

I am attempting to create a Custom Drawable, but it is causing a Java.Lang.RuntimeException and Error inflating class android.widget.GridLayout when I try to use it. Here is the code: using Android....
Nathan Sokalski's user avatar
1 vote
0 answers
473 views

Similar to the M3 cornerFamily feature, how to achieve it via XML drawables? Current code <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas....
Bitwise DEVS's user avatar
  • 3,851
-1 votes
1 answer
1k views

Is it possible to make a button (or any other element like image view or layout) with border shaped with cut corners like below: Preferably using xml-drawables with cut size taken from @dimen Edit: ...
kamren's user avatar
  • 37
0 votes
1 answer
201 views

I downloaded external images to the android studio into the drawable folder of res but when I select the ImageView to add the same image on the screen, the image is not located there. In the drawable ...
xcapecoder's user avatar
0 votes
1 answer
569 views

I'm trying to create a background for a splash screen from 2 different colors one on top of the other, each exactly half of the screen, like so: I have tried the following but it does not work for ...
Raz Leshem's user avatar
1 vote
0 answers
82 views

I have a drawable (just a red circle) <item android:state_pressed="false"> <shape android:shape="oval"> <size android:height="12dp" /> ...
Edvin Keskin's user avatar
1 vote
0 answers
51 views

**I need a background like this ** 4 items need to be divided evenly and fill the whole screen. when I set width for the items, they cannot match the screen width.
Qinxin Zhang's user avatar
1 vote
0 answers
422 views

My current implementation is to create a ImageView sibling element. If I use any of the aspect ratio-preserving scaleType other than centerCrop, the image only covers the ViewPager2 partially, which ...
Joven Pua's user avatar
0 votes
1 answer
346 views

I am new to android and I wish to achieve a tooltip with border. Tooltip pointing to left. i.e: like below with text of choice. please help me with this, stuck with this for quite sometime now. I was ...
someonetonobody's user avatar
1 vote
1 answer
231 views

I am trying to use a FAB with Bottom NavigationView in my app. I have designed drawable xml resources for that FAB to give the FAB gradient color and an icon along with a drop shadow of custom color. ...
Kamran Khan's user avatar
0 votes
1 answer
146 views

I've made a function to change the colors of drawables in android. The problem is that it works only 60-70% of the times. I call it on the onCreate method of each activity of my app. (The color is ...
javaOutlaw's user avatar
0 votes
1 answer
517 views

I have a text view and and I want its background to be a image and also its corners rounded. I have tried that by creating a drawable file but the background image gets spilled out. <LinearLayout ...
Lohith's user avatar
  • 1
0 votes
1 answer
219 views

I have encoutered problem where my layer-list drawable is not rendered fully from time to time. In my activity's onCreate I have programatically created few TextViews, in onResume I am calling web ...
PiotrW's user avatar
  • 120

15 30 50 per page
1
2 3 4 5
19