1
You can set this value to default in your build.Radle:
defaultConfig{
vectorDrawables.useSupportLibrary = true
}
and also puts appcompact in the dependencies:
dependencies {
compile 'com.android.support:appcompat-v7:26.1.0'
}
1
0
You can set this value to default in your build.Radle:
defaultConfig{
vectorDrawables.useSupportLibrary = true
}
and also puts appcompact in the dependencies:
dependencies {
compile 'com.android.support:appcompat-v7:26.1.0'
}
Browser other questions tagged android android-studio kotlin
You are not signed in. Login or sign up in order to post.
<ImageView
 android:id="@+id/imageAll"
 android:layout_width="0dp"
 android:layout_height="35dp"
 android:layout_gravity="center_vertical"
 android:layout_weight="1"
 android:src="@drawable/ic_all_unselected"
 android:tint="@color/menuItemUnselected"/>
I was able to solve this way. Will q later give error again this way I did? This is good practice?– rayanasouza
The way you did it is correct. You are setting the xml in drawable and then putting it as source in an imageview and setting the color. There’s nothing wrong with that and it’ll probably work smoothly! ;)
– Antonio S. Junior
Thanks for your help :D
– rayanasouza