Module 2
Module 2
PROGRAMMING
Module – 2
Android Application Basics
Anatomy of Android Application
• Context
• Activity
• Fragment
• Intent
• Service
Anatomy of Android Application
• Boolean values are appropriately tagged with the tag and represent a
name/value pair
• Integer values are appropriately tagged with the tag and represent a
name/ value pair
• To use the integer resource, you must load it using the Resources
class
Working with Colors
• Android applications can store RGB color values, which can then be
applied to other screen elements
• RGB color values always start with the hash symbol (#). The alpha
value can be given for transparency control. The following color
formats are supported
• #ARGB (for example, #8F00 is 12-bit color, red with alpha 50%)
• Working with Dimensions
• Drawable Resources
• Working with Images
• Working with Color State Lists
• Working with Animation
Working with layouts
• Much as Web designers use HTML, user interface designers can use XML
to define Android application screen elements and layout
• Layout files might include many user interface con trols and define the
layout for an entire screen or describe custom controls used in other
layouts