Welcome to Android Application Development Tutorials..!!!

From Today, i am going to write the tutorials which will help for the beginners to understand the basic functionality of ANDROID DEVELOPMENT.

Here you will learn basic fundamentals of Android APP. you will learn how to design the app , create simple program from which you can create basic User interface and learn to handle the user input.

Before you start this tutorial and get busy in learning..You need to set up the development environment.

For that you need to complete this basic steps.

Basic Steps of Android Layout  :

1. You need to download the “Android SDK

2. For the development purpose if you are going to use “Eclipse IDE” then you need to istall the ADT Plugin for eclipse.

3. To use the SDK Manager, you need to download the latest SDK tools and Platforms.

Once you finish the above steps you are good to start the developing an app.

Introduction of Android Layout  :

In This tutorial, we will learn the basics of  “Layout”.

Topics covered in this tutorial :
  •  “What is Layout”
  • “basic Types of layout”,
  • “hierarchy of the layouts” and many more.

In this tutorial i have tried to include all the basic information related to “Layouts“.

What is Android Layout ?

The hierarchy of the layouts are coming in the form like,

Objects ->View -> ViewGroups (Layouts)

Object  In Java class hierarchy it is the root class. All non-primitive types (For example : arrays , etc) inherit from this class either directly or indirectly .

View represents the basic building block for user interface components.

A View occupies a rectangular area on the screen and is responsible for drawing and event handling. View is the base class for widgets, which are used to create interactive UI components (buttons, text fields, etc.).

A Viewgroup is a special view that can contain other views (called children) or other “ViewGroups“. The viewgroup is the base class for layouts and view containers.

In short we can say that :

Layouts is a way to represent your widgets on the screen of your device.

Types of Android Layout:

Layouts are of the different types.

No

Layouts

1

LinearLayout :

Aligns all children in a single direction, Horizontal or Vertical.

2

RelativeLayout :

Aligns children in relation to each other or to the parent

3

FrameLayout :

FrameLayout is designed to block out an area on the screen to display a single item. Generally, FrameLayout should be used to hold a single child view.Add multiple children to a FrameLayout and control their position within the FrameLayout. The size of the FrameLayout is the size of its largest child (plus padding)

4

TableLayout :

TableLayout is a view that groups views into rows and columns.

5

AbsoluteLayout :

Allows the user to provide exact location of its children.

There are two other types of ViewGroups available.

  • ListView
  • GridView

Thats it for this post. If you have any query please feel free to comment.

Here is the list of our upcoming tutorials…