Examples of using Drawable in English and their translations into Indonesian
{-}
-
Colloquial
-
Ecclesiastic
-
Computer
-
Ecclesiastic
Because Drawable is an interface.
Working with assets folder or drawable folder.
A reference to a drawable resource for an icon that represents the permission.
Icon_ca resource(which is saved in res/drawable/).
For example, the resources in drawable/ are the default drawable resources.
When you want to animate a bitmap graphic such as an icon or illustration,you should use the drawable animation APIs.
Canvas consists of a drawable region defined in HTML code with height and width attributes.
In this case, you probably want notnight to be your default resources, so you should exclude that qualifier so your drawable resources are in either drawable/ or drawable-night/.
The system scales drawable resources to the appropriate size, based on the current screen density, if necessary.
To demonstrate how Android selects an alternative resource,assume the following drawable directories each contain different versions of the same images.
For example, if you have a bitmap drawable that's 48x48 pixels for medium-density screen(the size for a launcher icon), all the different sizes should be.
Usually, you should use the size and orientation qualifiers to provide alternative layout resources anduse the density qualifiers to provide alternative bitmap drawable resources.
For example, if you want to use the same drawable files for Spain and France, you cannot have a directory named drawable-rES-rFR/.
Depending on the other alternative resources available, a resource directory with thehdpi qualifier(such as drawable-hdpi/) might be the best match,so the system uses the drawable resource from this directory.
Even without default drawable resources, Android can find the best match among the alternative screen densities and scale the bitmaps as necessary.
Usually, these animations are defined statically with a drawable resource, but you can also define the animation behavior at runtime.
Tip: If you have some drawable resources that the system should never scale(perhaps because you perform some adjustments to the image yourself at runtime), you should place them in a directory with the nodpiconfiguration qualifier.
For example, if the device has a high-density screen and the application requests a drawable resource, the system looks for a drawable resource directory that best matches the device configuration.
In figure 2, the text view and bitmap drawable have dimensions specified in pixels(px units), so the views are physically larger on a low density screen and smaller on a high density screen.
Xml(in an alternative resource directory, such as res/drawable-en-rCA/),it is compiled into a resource that you can reference as R. drawable.
Although the system scales your layout and drawable resources based on the current screen configuration, you may want to make adjustments to the UI on different screen sizes and provide bitmap drawables that are optimized for different densities.
For example, look in your project's res/ directory for old drawable files, layout files, and values files that you are no longer using and delete them.
Almost every application should have alternative drawable resources for different screen densities, because almost every application has a launcher icon and that icon should look good on all screen densities.
If you use XML files to define shapes, colors, or other drawable resources, you should put one copy in the default drawable directory(drawable/).
For instance, you should include alternative drawable resources for different screen densities and alternative string resources for different languages.