![]() ![]() GIF and BMP formats are supported, but discouraged. Android supports image files in several formats: WebP (preferred), PNG (preferred), and JPG (acceptable). For example, this code retrieves the birthdaycake.png image as a Drawable: Resources res = getResources() ĭrawable drawable = res.getDrawable(R.drawable.birthdaycake) Īn image file is a generic bitmap file. To represent a drawable in your app, use the Drawable class or one of its subclasses.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |