Questions tagged [android-vectordrawable]
A VectorDrawable is a vector graphic defined in an XML file as a set of points, lines, and curves along with its associated color information.
android-vectordrawable
710
questions
0
votes
1
answer
26
views
SVG pixelized edges in Android Jetpack Compose
I converted the logo from SVG to XML in Android Studio. One change I had to make was replacing 'Fill' with '#pattern' with 'FillColor' because #pattern is not supported in Android. I don't think that ...
0
votes
1
answer
72
views
How to see / view the Android vector drawable XML?
How can I visually see a picture from an Android vector drawable XML?
I disassembled the Apk-file, and now I want to replace the icons, but how can I visually see them in the code. Is there a program ...
1
vote
1
answer
31
views
How can I make AnimatedImageVector animate a single path a time with jetpack compse?
I am using SVG file that contains 33 paths and every path is a circle
drawable.xml:
<group
android:name="circle1"
android:pivotX="242"
android:pivotY="242"
...
2
votes
0
answers
253
views
Jetpack Compose displaying Adaptive Icon Painter Resources: Only VectorDrawables and rasterized asset types are supported ex. PNG, JPG, WEBP
I'm trying to display launcher icon of the app:
Image(
modifier = Modifier.size(24.dp),
painter = adaptiveIconPainterResource(id = R.mipmap.ic_launcher_round),
contentDescription = ...
1
vote
0
answers
21
views
How to use MaterialTheme.colorScheme.primary inside a vector?
I have this vector:
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="100dp"
android:height="100dp"
android:viewportWidth=&...
0
votes
0
answers
57
views
Cut out part of a vector drawable path
I have this xml vector drawable:
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:...
0
votes
0
answers
23
views
How to make the canvas not square?
I have a vector image in my android app:
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="800dp"
android:height="800dp"
...
0
votes
1
answer
41
views
what tint value for vector asset should be set?
When adding an icon using right click on res folder -> new -> Vector Asset in android studio, color value(this is equivalent to android:tint in xml file once it is added to drawable) set to #...
0
votes
0
answers
34
views
How to fill color in the inside transparent portion of vector drawable without filling color in the outside rectangualar bounds of it?
In the above vector drawable, I can modify the tint of the solid portions of the drawable using say green color and apply it using PorterDuff.Mode.SRC_ATOP. But I can't seem to apply a color inside ...
0
votes
1
answer
23
views
how to create a vector drawable for a document in a circle in Android
how can I draw a vector drawable of a document in a circle which looks like this please or something similar
Thanks
R
0
votes
1
answer
594
views
Jetpack Compose App crashed when updated from previous version
My app crashes when updated from previous version with Exception:
java.lang.IllegalArgumentException: Only VectorDrawables and rasterized asset types are supported ex. PNG, JPG
It runs fine when new ...
3
votes
0
answers
54
views
Issue with Gradient Drawable on Android 6 Marshmallow while using Splash Screen API
I recently migrated my existing splash screen activity to the Splash Screen API, which offers backward compatibility up to API 21. I'm utilizing a vector drawable for the splash screen icon, and it's ...
0
votes
0
answers
46
views
Is there a way to organize my drawables in android studio?
Since I can't have directories in my res/drawable directory, how can I organize my drawable folders like buttons, icons, images, bg_images, etc.
How to have an organized folders for the drawable. I ...
0
votes
2
answers
67
views
How to make EditText and Button have this colored border?
How can make EditText with this border and Button with this border. I could not find do this with drawable. I use ImageView with this. But I can not use ImageView for EditText. How can do this?
0
votes
1
answer
36
views
Android complicated schematic view
I need to make an interactive research fragment for my game and got an SVG file exported from Figma with all the rects, circles, texts, etc. It must be scaleable (zoomeable via touch input), draggable ...