See svg support doc. Skip to content. Star Branches Tags. Could not load branches. Could not load tags. ImageView; import com. Sharp; import java. IOException; import java. InputStream; import okhttp3. Cache; import okhttp3.
Call; import okhttp3. Callback; import okhttp3. OkHttpClient; import okhttp3. Request; import okhttp3. Below is the code for the MainActivity. This will increase your app size. So, in order to avoid this situation, we can use vector drawables in our app. Vector Drawables are nothing but an XML file where we write the code for our icons and this is the reason why we don't need to put different icons for different mobiles sizes while using vector drawables. But this is not supported in Android 4.
In order to use Vector Drawable in your application, you must add the below line to support vectorDrawables. Add the below code in your app-level build. Step 1: In your android studio project, locate your res directory. Step 2: Then move to drawable folder. Below screen will be shown:. Notify of. Oldest Newest Most Voted. Inline Feedbacks. Tarun Voora. Muhammad Widodo. Reply to Muhammad Widodo. Nice tutorial. Please make one about animating a vector drawable. Reply to mindfreak Mostafa Anter.
Reply to Mostafa Anter. Reply to Rivu. Arvind Kumar. Kiran Benny Joseph. Reply to Arvind Kumar. Reply to Kiran Benny Joseph. Shareef Gooty.
Reply to Shareef Gooty. Trey Rosius. Reply to Trey Rosius. Hardeep Bhardwaj. Hi Rivu, Youy have mentioned that Whenever you are going to use VectorDrawable from java or to use it as background in xml also remember to use AppCompatView instead of normal view.
But you have used normal Imageview and Textview also. What will happen if i use only normal view instead of AppCompatView. Reply to Harish. Carlos Daniel.
0コメント