Adding an Icon
GeoQuiz is up and running, but the UI would be spiffier if the NEXT button also displayed a right-pointing arrow icon.
Since Android 5.0 (Lollipop, API level 21), the Android platform has provided support for vector graphics using the VectorDrawable class. Whenever possible, we recommend that you use vector drawables to display vector graphics in your apps. Vector drawables are scalable without any loss of visual quality, so they always look crisp and free of image artifacts. And they are more space efficient than traditional bitmap images, resulting in a smaller final application.
Add a vector drawable to the project for the right-pointing arrow icon. First, select File → New → Vector Asset from the menu bar to ...
Get Android Programming: The Big Nerd Ranch Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.