Sei sulla pagina 1di 23

MOBILE COMPUTING

BY: KEVIN S. VILLANUEVA


DEVELOPMENT ENVIRONMENT
THE TEXT EDITOR

• Most files get displayed in the text editor. The text editor also known as code
editor, with extra features such as color coding and code checking.

THE DESIGN EDITOR

• The design editor allows you to drag GUI components onto your layout, and
arrange them how you want.
FILL_PARENT
MATCH_PARENT
WRAP_CONTENT

• fill_parent and match_parent are the same, used when we want the height or
width of a view to be as big as its parent view, fill_parent being deprecated.
• wrap_content is used when we want the view to occupy only as much space as
required by it.
THE ANDROID EMULATOR

• allows you to run your app in an Android virtual device (AVD). The AVD
behaves just like a physical Android device. You can set up numerous AVDs,
each emulating a different type of device.
• typically enables the host system to run software or use peripheral devices
designed for the guest system.
THE APK FILE

• An APK file is an Android application package. It’s basically a JAR or ZIP file
for Android applications.
• APK stands for Android Package Kit (also Android Application Package) and
is the file format that Android uses to distribute and install apps. It contains all
the elements that an app needs to install correctly on your device.
VIEWS & LAYOUTS
ConstraintLayout

• is a ViewGroup which allows you to position and size widgets in a flexible


way.
1. Fixed: You specify a specific dimension in the text box below or by resizing
the view in the editor.
2. Wrap Content: The view expands only as much as needed to fit its contents.
3. Match Constraints: The view expands as much as possible to meet the
constraints on each side
RelativeLayout

• is a view group that displays child views in relative positions. The position of
each view can be specified as relative to sibling elements (such as to the left-
of or below another view) or in positions relative to the parent RelativeLayout
area (such as aligned to the bottom, left or center).
• a Layout where the positions of the children can be described in relation to
each other or to the parent.
LinearLayout

• a layout that arranges other views either horizontally in a single column or


vertically in a single row.
• is a view group that aligns all children in a single direction, vertically or
horizontally. You can specify the layout direction with the android:orientation
attribute.
WebView

• a view that displays web pages.


ScrollView

• a view group that allows the view hierarchy placed within it to be scrolled.
Scroll view may have only one direct child placed within it. To add multiple
views within the scroll view, make the direct child you add a view group, for
example LinearLayout, and place additional views within that LinearLayout.
ListView

• is a view group that displays a list of scrollable items. The list items are
automatically inserted to the list using an Adapter that pulls content from a
source such as an array or database query and converts each item result into
a view that's placed into the list.
• displays a vertically-scrollable collection of views, where each view is
positioned immediatelybelow the previous view in the list.
ExpandableListView

• A view that shows items in a vertically scrolling two-level list. This differs from
the ListView by allowing two levels: groups which can individually be
expanded to show its children. The items come from the
ExpandableListAdapter associated with this view.
GridView

• is a ViewGroup that displays items in a two-dimensional, scrollable grid. The


grid items are automatically inserted to the layout using a ListAdapter.
WIDGETS
Buttons TextView EditText Spinner

• consists of text • A user interface • A user interface • provide a quick


or an icon (or element that element for way to select one
both text and an displays text to entering and value from a set.
icon) that the user. modifying text. • view that displays
communicates one child at a
what action time and lets the
occurs when the user pick among
user touches it. them.
MULTIPLE ACTIVITIES AND INTENTS

• Intents - allow you to interact with components from the same applications as
well as with components contributed by other applications.
THANK YOU 

Potrebbero piacerti anche