Skip to main content

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
0 votes
1 answer
28 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 ...
33 votes
4 answers
23k views

Tools for creating AnimatedVectorDrawable

I really like the AnimatedVectorDrawable capabilities added to Android. Any nice tools to create such animations? E.g. Any tools to create animations like described here: EDIT: So far I have found ...
13 votes
5 answers
21k views

Jetpack Compose: Custom VectorAsset Icon object similar to built-in `Icons.Default`

It looks like the only way to go about loading custom icons from Android Vector Resources in the res folder is to do it within a @Composable function using the vectorResource(R.drawable.myVectorName) ...
1 vote
1 answer
2k views

Android - how to set tint on vector drawables with two or more colors

I love vector drawables and the fact that I can change it's tint in every layout with simple tint attribute, like this: <ImageView android:id="@+id/image_payment_cash" ...
2 votes
2 answers
1k views

Theme attributes not working correctly with VectorDrawable

I work on application which supports multi themes, dark and light, with min sdk version 21. I found out that it's possible to use theme attribute (e.g. ?attr/logo_color) inside VectorDrawable. So ...
0 votes
1 answer
75 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 ...
46 votes
11 answers
24k views

How I fix NOTHING TO SHOW in my vector asset in android studio

I want to add a new vector asset. I am trying to add a clipArt but it only shows in the dialog box "Nothing to show". No icon is showing and I want to add an icon. I don't know to fix this. ...
1 vote
1 answer
32 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" ...
18 votes
5 answers
22k views

Vector Drawable in the circle

is there an easy way to generate Vector Drawable that is a circle with the icon inside from the existing vector drawable? Example:
2 votes
0 answers
260 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 = ...
6 votes
3 answers
6k views

How to use Animated vector drawable in Compose

I created my vector drawable animation and I want to use in in Compose. I found in official documentation that I need to call animatedVectorResource. But whole AnimatedImageVector has been removed ...
2 votes
4 answers
606 views

Rotate ImageVector in Compose

I'm storing a material icon in a data class like so: import androidx.compose.ui.graphics.vector.ImageVector data class Item( val icon: ImageVector ) val item = Item(Icons.Filled.Send) The item ...
3 votes
1 answer
412 views

AppNotIdleException due to AnimatedVectorDrawableCompat

I have the following animated vector drawable: <?xml version="1.0" encoding="utf-8"?> <animated-vector xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@...
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=&...
1 vote
1 answer
81 views

Use SVG in ImageView directly

Here is the code of SVG, I already create a file in drawable, but it does not appear when added in src of ImageView. <svg width="60" height="60" viewBox="0 0 60 60" ...

15 30 50 per page
1
2 3 4 5
48