All Questions
Tagged with android-vectordrawable android-resources
18
questions
0
votes
1
answer
608
views
Resources$NotFoundException: Resource ID
I am trying to figure this issue but I don't understand why my Vector/png drawable is missing when I put them all in respective directory/folder.
Here is the below logs.
Fatal Exception: android.view....
10
votes
0
answers
2k
views
Android Resources$NotFoundException: Unable to find resource ID
I got a report from Firebase of an Activity failing to inflate because it couldn't find one of my resources. I'm really confused about why it couldn't be found, because I believe all the files are in ...
4
votes
4
answers
2k
views
Exception android.content.res.Resources$NotFoundException: File res/color/selector_tab_blue_white.xml from drawable resource ID #0x7f0601d8
I am using tabLayout as
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabLayoutSubscriptionDays"
style="@style/CustomTabLayoutTextSizeSix"
...
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
1
answer
586
views
How to suppress Gradle from automatically converting vectorDrawable to PNG?
I'm targeting my (first) App to API23 and above (minSDKVersion is 23), using almost exclusively vector drawables (imported from SVGs). After build, checking the APK analyzer, all vectorDrawables have ...
0
votes
1
answer
162
views
Resource Not Found Exception on Android devices under 24
I'm getting the exception when the app is trying to render a drawable with fillType (only supported in API 24+), however in the description of the warning it states that the attribute will just be ...
5
votes
2
answers
2k
views
Empty Vector Drawable causes a ResourceNotFound Exception in runtime
I cannot use an empty vector drawable as place holder:
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:viewportWidth="...
2
votes
0
answers
329
views
How to change the values in drawable files?
I am developing an android App. I am using a drawable xml file to draw an arc.
My Problem
I want to change a particular attribute's value in the drawable xml file programmatically.
I want to change ...
1
vote
1
answer
223
views
How to handle large number of vector drawables in Android
I am building an Android app in which I have many vector drawble in XML format (around 10000 files). Currently, I put them in the resource folder and it takes very long time to build the app.
Is there ...
40
votes
7
answers
14k
views
Binary XML file line #1: invalid drawable tag vector
I have an app that runs perfectly on most devices. However, I'm getting a FATAL exception whenever I try to run my application on devices with API < 21.
Here is the log:
java.lang....
6
votes
3
answers
2k
views
Resources$NotFoundException for XML vector drawable on API 19
I'm trying to load an XML vector drawable with the following code:
int px = Application.get().getResources()
.getDimensionPixelSize(R.dimen.bikeshare_small_marker_size);
Bitmap ...
1
vote
2
answers
4k
views
Drawable abc_vector_test resource not found exception for Kitkat and below
This is my stacktrace when I am running my app on Kitkat or below versions
FATAL EXCEPTION: main
Process: com.threesixteen.app, ...
16
votes
1
answer
9k
views
Tint VectorDrawable inside Drawable Resource xml
i've had a drawable resource for a selectable Button/ImageView like this:
<selector>
<item android:state_selected="true">
<layer-list>
<item>
<shape ...
2
votes
2
answers
791
views
Android: Tint one of three icons
I need 3 icons: ContextCompat.getDrawable(this, R.drawable.my_vector_drawable).
First – without tint, second – with tint, third – without tint too,
Ok.
ImageView img1 = (ImageView) ...
2
votes
1
answer
909
views
Android Invalid drawable tag vector on drawableStart
Here's my button:
<com.rey.material.widget.Button
android:id="@+id/joinOccasionBTN"
style="@style/Material.Drawable.Ripple.Wave.Light"
android:layout_width="wrap_content"
android:layout_height="...