Please help me translate to programmatically progressDrawable. I need three kinds of colors to: MainDashboardFragment.kt fragment_main_dashboard ...
Please help me translate to programmatically progressDrawable. I need three kinds of colors to: MainDashboardFragment.kt fragment_main_dashboard ...
When set the android:bottom="5dp" in the .xml,it works。But now, need to change the bottom value at runtime. With the debug , xml files was parsed to ...
My app uses GradientDrawable. I have to get colors from GradientDrawable and set it as a background. Is there any alternative way to get this color ...
From android docs, the GradientDrawable.setCornerRadii (float[] radii) method: Specifies radii for each of the 4 corners. For each corner, the ar ...
I've programmatically set a GradientDrawable background up like so, and am trying to test for it's color. The main issue seems to be getting the color ...
Why are the gradients looking different in Android Studio preview and in an actual Android device? Here are the screenshots: In Android Studio In m ...
I have in an activity some inputs required to make a drawable shape. This is a little example of it: But when I want to implement it into a spinner ...
I have a function that creates a gradient across the background of my MainActivity. The gradient is created programmatically as a GradientDrawable. Ce ...
Sorry if I sound too noob. Is there any way to convert a GradientDrawable like into a Bitmap format. I am trying to set the GradientDrawable as the ...
I know the default DatePicker already has a bottom line, but I'm trying to add a bottom line to the DatePicker in the custom renderer code (for some p ...
I have edit Text whose backgroud is as below : I need to change this color when there is validation error and set it to red. On addTextChangedLis ...
I am creating a custom Button and I am using the Drawable.setTintList to have colors for default,pressed and disabled states. I want to actually add a ...
I've made a custom spinner and I'm trying to change background of a layout in a custom view programmatically. I tried a lot to change layout backgroun ...
Theres no compilation error, it just crashes when I test drive it ...
I have created a button with a Gradient Drawable. If you look at this button, it has those Extra Grey lines as pointed out by my red arrows. Those ...
I have 3 buttons, which needs to have white background and radius of 20 My GradientDrawable function i use call the function and set the backgrou ...
I have a ShapeDrawable . I want to set the CornerRadius (TopLeftRadius & BottomLeftRadius) programmatically. Below is my xml ...
I'm trying to set a gradient to my toolbar but it seems like setSize and setGradientCenter do not work. I need to create it dynamically because the c ...
I'm creating a list with a RecyclerView. Every list item is a post from a user (Right now hard coded). The background for every post is loaded from a ...
I have programmatically added Text View and Button. Code Here in above code i have a Text View and Button added programatically. The text of Tex ...