Organizing process
There are additional substances
which you practice to form a decent Android application. Separately from coding
for the application, you pay attention of many other means like static
satisfied that you’re code habits, such as bitmaps, shades, layout explanations,
user border series, animatronics advice, and more. These means are every time
preserved alone in many files below res/ directory of the plan. This lesson
will clarify to you how you can establish your application properties, require
alternate means and contact them in your applications. Establish Resources You
should place every form of resource in a particular space of your plan's
res/manual.
The manual covers all the means
in several sub-directories. Here we have an image resource, two layout resources,
and a thread resource file.
Directory Resource Type XML files
that describe assets lives. They are protected in anim file and retrieved from
the R.anim class Color/ XML files that explain a public list of colors. They
are kept in color and opened from the R.color class.
Drawable files like .png, .jpg,
.gif or XML files that are compiled into bitmaps, formal slopes, shapes, and
liveliness drawables. They are kept in res/ drawable and opened from the
R.drawable class.
Layout/ XML files that explain a user border
layout. They are kept in res/layout/ and opened from the Layout class.
Menu/ XML files that describe
application menus, such as an Options Menu, Context Menu, or Sub Menu. They are
saved in the menu and accessed from the R.menu class.
Random XML files that contain simple values, such as
strings, integers, and colors. You can save various configuration files here
which will be used at run time.
Alternative Resources
Your application should deliver alternative resources to support definite device patterns.
At runtime, Android spots the present device pattern and many the suitable
resources for your application.
Accessing Resources
Through your application the improvement you will want to contact clear resources moreover in your code, or
in your layout XML files.
Accessing Resources in Code
When you’re Android application is collected,
an R class gets produced, which covers resource IDs for all the resources
accessible in your res/ directory. You can use the R class to contact that resource
using sub-directory and resource name or directly resource ID.
If anyone wants to learn android
development/android organizing, join Alhuda Shorthand and I.T institute,
Multan. For further information contact us 0300-8829545 or 03114029545 or visit
our website. www.alhudashorthand.com