Saturday, April 26, 2014

Creating Option Menus

In this post we will see how to create option menu for the android application. It is the common user Interface that is used almost in all application. The menu is displayed whenever the Menu button is pressed. Generally the Menu contain options that are relevant to current Activity. For Example for a browser it may contain - " New window, Bookmark, refresh, forward, backward etc. "

Friday, April 25, 2014

Implementation of Toggle Button and CheckBox

In this post we will discuss some basic implementation of Toggle Button and CheckBox.

Both (i.e Toggle Button and CheckBox) allow the user to change a setting between two states.

Toggle Button are subclasses of compound Button and perform action in similar manner.

Here we have created a Android project which contains Both(i.e Toggle Button and CheckBox).

Tuesday, April 15, 2014

Understanding Layout

Understanding Layout Manager

 Android offers a collection of view classes which act as containers for views. These container classes are called layout and each implement specific strategy to manage the size and position of its children. The different types of Layout that are used are

Monday, April 14, 2014

The RadioButton Control

RadioButton

The easiest and common method of taking user input in android is RadioButton. “android.widget.RadioButton class is used to render radio button and these RadioButton are generally grouped "android.widget.RadioGroup". Whenever one RadioButton is selected by the user the other RadioButton is automatically disabled.

Sunday, April 13, 2014

Button OnClickListner in Android

 In this post I will show the basic function of a Button, whenever a button is pressed a text message will be displayed.

Step1-  First Create a Android Project and name it as Button.

Step2 - Go to res folder and then to layout and in .xml file copy the code given below