android-vectordrawable

Create Vector Drawable with Drop Shadow to Overlay an Image

 ̄綄美尐妖づ 提交于 2021-02-18 17:52:42
问题 I would like to achieve a layout that looks like the "desired" image as part of the initial app state that informs the user of some basic actions. Right now I'm getting the "actual" image. I need to have a background image of any drawable/image that has an overlay that is slanted from lower-left to upper-right and of any color. This also has to be scalable in terms of the same shape over any number of devices, phones or tablets and support back to SDK 16. So far I've been going off the idea

Resources$NotFoundException: Drawable com.example.test:drawable/back_button with resource ID #0x7f080073

▼魔方 西西 提交于 2021-02-11 15:20:49
问题 I recently added vector drawables (anydpi) to my android studio project in addition to png images (mdpi, hdpi, xhdpi, and xxhdpi)--android studio does this by default now. I immediately started getting this error: 2019-02-10 23:10:25.870 2722-2722/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.test, PID: 2722 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test/com.example.test.SettingsActivity}: android.content.res.Resources$NotFoundException:

long SVG Asset file error : R is not a valid verb. Failure occurred at position 2 of path: STRING_TOO_LARGE

£可爱£侵袭症+ 提交于 2021-02-09 09:37:20
问题 I'm having some problems with Android Studio at the moment because I recently started using "Vector Assets". I've done absolutely everything necessary to display them correctly in my application (using the app:srcCompat="" in the xml, android {defaultConfig {vectorDrawables.useSupportLibrary true}} in the build.gradle, and AppCompatDelegate.setCompatVectorFromResourcesEnabled(true); in the onCreate() method before setContentView() ). The svg files I imported into Android Studio do not have

long SVG Asset file error : R is not a valid verb. Failure occurred at position 2 of path: STRING_TOO_LARGE

耗尽温柔 提交于 2021-02-09 09:36:57
问题 I'm having some problems with Android Studio at the moment because I recently started using "Vector Assets". I've done absolutely everything necessary to display them correctly in my application (using the app:srcCompat="" in the xml, android {defaultConfig {vectorDrawables.useSupportLibrary true}} in the build.gradle, and AppCompatDelegate.setCompatVectorFromResourcesEnabled(true); in the onCreate() method before setContentView() ). The svg files I imported into Android Studio do not have

Vector drawable distorted

余生颓废 提交于 2021-02-09 04:06:11
问题 I have many imageviews that use a vector drawable as it's source. For most of them it's material icons but when I imported a more complicated vector it shows up distorted on Lollipop devices but just fine on Jellybean devices. This is supposed to say SYSTEMS but clearly has problems. Layout: <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/splash_logo" app:srcCompat="@drawable/logo_small" tools:ignore="MissingPrefix" android:layout

Vector drawable distorted

一曲冷凌霜 提交于 2021-02-09 04:03:27
问题 I have many imageviews that use a vector drawable as it's source. For most of them it's material icons but when I imported a more complicated vector it shows up distorted on Lollipop devices but just fine on Jellybean devices. This is supposed to say SYSTEMS but clearly has problems. Layout: <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/splash_logo" app:srcCompat="@drawable/logo_small" tools:ignore="MissingPrefix" android:layout

Vector drawable distorted

吃可爱长大的小学妹 提交于 2021-02-09 04:01:49
问题 I have many imageviews that use a vector drawable as it's source. For most of them it's material icons but when I imported a more complicated vector it shows up distorted on Lollipop devices but just fine on Jellybean devices. This is supposed to say SYSTEMS but clearly has problems. Layout: <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/splash_logo" app:srcCompat="@drawable/logo_small" tools:ignore="MissingPrefix" android:layout

Vector drawable distorted

纵然是瞬间 提交于 2021-02-09 04:00:56
问题 I have many imageviews that use a vector drawable as it's source. For most of them it's material icons but when I imported a more complicated vector it shows up distorted on Lollipop devices but just fine on Jellybean devices. This is supposed to say SYSTEMS but clearly has problems. Layout: <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/splash_logo" app:srcCompat="@drawable/logo_small" tools:ignore="MissingPrefix" android:layout

Vector drawable distorted

假如想象 提交于 2021-02-09 04:00:02
问题 I have many imageviews that use a vector drawable as it's source. For most of them it's material icons but when I imported a more complicated vector it shows up distorted on Lollipop devices but just fine on Jellybean devices. This is supposed to say SYSTEMS but clearly has problems. Layout: <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/splash_logo" app:srcCompat="@drawable/logo_small" tools:ignore="MissingPrefix" android:layout

Animated Vector Drawable Animation does not work

≯℡__Kan透↙ 提交于 2021-01-29 04:42:40
问题 I can't figure out why my Animated Vector is not working. I can see the first path but the second path that I want to animate as an addition to the first path is not showing. This is how my code looks like: <?xml version="1.0" encoding="utf-8"?> <animated-vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt"> <aapt:attr name="android:drawable"> <vector android:height="24dp" android:width="24dp" android:viewportHeight="24.0" android