Module 3
Module 3
<AbsoluteLayout
android:layout_width=”fill_parent” android:layout_height=”fill_parent”
2.Absolute xmlns:android=”http://schemas.android.com/apk/res/android” >
<Button
Layout android:layout_width=”188dp” android:layout_height=”wrap_content”
android:text=”Button” android:layout_x=”126px”
android:layout_y=”361px” />
</AbsoluteLayout>>
TableLayout is a ViewGroup subclass, used to display the
child View elements in rows and columns.
The TableLayout groups views into rows and columns.
<TableLayout
xmlns:android=”http://schemas.android.com/apk/res/android”
android:layout_height=”fill_parent” android:layout_width=”fill_parent”
3.Table Layout >
<TableRow>
<EditTextandroid:id=”@+id/txtUserName” android:width=”200dp”/>
</TableRow>
RelativeLayout enforces to display elements in relations to
each other.
You can specify that, for instance, one UI element can be
said to be placed on the left of another element, or on the
bottom of another etc.
4.RelativeLayout Each UI element can also be positioned according to the
layout’s borders (e.g. aligned to the right)
RelativeLayout is a ViewGroup subclass, used to specify
the position of child View elements relative to each other
like (A to the right of B) or relative to the parent
4.RelativeLayout
The FrameLayout is a placeholder on screen that you can
use to display a single view.
5.Frame Layout FrameLayout is a ViewGroup subclass, used to specify the
position of View elements it contains on the top of each
other to display only a single View inside the FrameLayout.
6.Android List ListView is a ViewGroup, used to display scrollable lists of
Layout items in a single column.
List View is a ViewGroup, used to display scrollable lists of
items in a single GridView of rows and columns.
It was introduced in Android 4.0,
7.Android Grid the Grid Layout used a rectangular grid of infinitely thin
Layout lines to layout Views in a series of rows and columns.
The Grid Layout is incredibly flexible
and can be used to greatly simplify layouts and
reduce or eliminate the complex nesting.
View Description
layout_width Specifies the width of the View or ViewGroup
Methods Description
startAnimation() This method will start the animation.
This method will clear the animation
clearAnimation() running on a specific view.
Property Animation is one of the robust frameworks
which allows animation almost everything.
This is one of the powerful and flexible animations
which was introduced in Android 3.0.
1.Property
Property animation can be used to add any
Animation animation in the
CheckBox,
RadioButtons, and
widgets other than any view.
View Animation can be used to add animation to a
specific view to perform tweened animation on views.
Tweened animation calculates animation information
such as size, rotation, start point, and endpoint.