Skip to main content
1 vote
1 answer
92 views

<!-- res/drawable/border.xml --> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android:width="7dp" android:color=&...
Niranjan Rai's user avatar
2 votes
1 answer
100 views

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....
Hussein Yaqoobi's user avatar
0 votes
0 answers
125 views

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 ...
Mackovich's user avatar
  • 3,669
0 votes
0 answers
26 views

In an activity layout file: <com.google.android.material.appbar.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content&...
Hong's user avatar
  • 18.7k
0 votes
0 answers
27 views

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 ...
Jin's user avatar
  • 65
1 vote
1 answer
482 views

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 ...
user924's user avatar
  • 13.1k
1 vote
0 answers
84 views

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 ...
LHK's user avatar
  • 11
0 votes
1 answer
44 views

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&...
Style-7's user avatar
  • 1,408
1 vote
1 answer
69 views

I need to add a BitmapDescriptor to my Polyline in Jetpack Compose google maps: val arrowBitmapDescriptor: BitmapDescriptor by remember { mutableStateOf(BitmapDescriptorFactory.fromResource(R.drawable....
NullPointerException's user avatar
0 votes
1 answer
72 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,067
0 votes
1 answer
89 views

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 ...
Day Manizo's user avatar
0 votes
1 answer
120 views

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, ...
NullPointerException's user avatar
2 votes
1 answer
98 views

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 (...
zeus's user avatar
  • 13.4k
0 votes
1 answer
93 views

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 ...
Viewed's user avatar
  • 1,463
0 votes
1 answer
66 views

In the Markwon library, I want to add a plugin that will show an image from the application resources if write ![alt text](drawable://icon_name) in markdown format. The code below works. But tintColor ...
Viewed's user avatar
  • 1,463

15 30 50 per page
1
2 3 4 5
200