2,999 questions
1
vote
1
answer
92
views
How to remove border of whole recyclerview which was added using xml?
<!-- res/drawable/border.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="7dp"
android:color=&...
2
votes
1
answer
100
views
How does VectorDrawable scaling affect rendering performance?
I’m trying to understand how VectorDrawable rendering works in Android in terms of performance.
Suppose I have a vector resource defined like this:
<vector
xmlns:android="http://schemas....
0
votes
0
answers
125
views
Understanding Android Launcher Icons in 2025
I am working on a project where the min SDK is set to 21 for as long as Jetpack Compose supports it.
With SDK 21 having introduced native support for SVG, it is my understanding that my project needs ...
0
votes
0
answers
26
views
Why resizing AdaptiveIconDrawable for MaterialToolbar's logo not working?
In an activity layout file:
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content&...
0
votes
0
answers
27
views
Create shadow shape XML Android
I want to create an drawable resource file to set background for view like the image bellow. It has the blur and corner (radius 12dp) at background, the detail information is also at the picture ...
1
vote
1
answer
482
views
Fatal Exception: android.content.res.Resources$NotFoundException Resource ID #0x7f07009b
I have uploaded a new version of the app with a newly added welcome screen that contains an image. I included the image in multiple sizes (default, mdpi, hdpi, xhdpi, xxhdpi, though I didn't add ...
1
vote
0
answers
84
views
Custom Button Background Not Applying in Android Studio (Material Theme Override?)
I'm trying to apply a custom background to a button in my Android app, but no matter what I do, the button still appears pink instead of using my custom drawable.
Here's my button XML:
<Button
...
0
votes
1
answer
44
views
How to change color for android:drawableStart?
I have a simple button with a drawable on the left:
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/color_primary&...
1
vote
1
answer
69
views
How to apply ColorFilter to a BitmapDescriptor/Drawable?
I need to add a BitmapDescriptor to my Polyline in Jetpack Compose google maps:
val arrowBitmapDescriptor: BitmapDescriptor by remember { mutableStateOf(BitmapDescriptorFactory.fromResource(R.drawable....
0
votes
1
answer
72
views
Drawable icon use square space instead of rectangle
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....
0
votes
1
answer
89
views
Is it possible to create a multi color radial gradient using xml vector drawables?
I've seen how this is done for linear gradients, like this answer: can we make multi color gradient in xml for android background?
Every time I try this for a radial gradient the viewport fails to ...
0
votes
1
answer
120
views
Problem creating a Drawable instance in compose
I need to migrate my old java code that creates a Drawable instance which is a gradient with a starting color in the upper part and a finishing color in the bottom part.
It worked perfectly in java, ...
2
votes
1
answer
98
views
Is it better to store multiple image sizes in drawable directories or just a single large image in assets for Android apps?
I'm developing a native Android app and am considering the best way to manage image resources. Traditionally, we've been advised to store multiple sizes of each image in various drawable folders (...
0
votes
1
answer
93
views
How to center a drawable image within a TextView?
I use the Markwon library to show markdown text with images. When the image is in the same line as the text, it is placed below the text. How to center the image?
Now:
Expect:
I have tried the ...
0
votes
1
answer
66
views
How to get color based on attribute name and current theme?
In the Markwon library, I want to add a plugin that will show an image from the application resources if write  in markdown format.
The code below works. But tintColor ...