Overview
Here, some useful links are given to start programming in Android Applications-.
- Android Programming - Day One
- Android Programming - Day Two
- How To Display A Dialog Windows In Android
- How To Display A Progress Dialog Window In Android
- Intent In Android
- Return Data Using Intent Object In Android Applications
- Passing Data Using An Intent Object In Android Applications
- Fragments In Android Applications
- Adding Fragments Dynamically In Android Application
- Fragment Life Cycle In Android Application
- Interaction Between Two Fragments
- Calling In-Built Functions in Android Application
- Intent Object and Intent Filters in Android Application
- Displaying Notifications in Android Applications
- User Interface in Android Applications
- Orientation, Anchoring, Resizing And Repositioning Of Views In Android Application
Introduction
In this article, you will learn about an activity behavior of the views, when screen orientation changes to either portrait or a landscape. In the article Orientation, Anchoring, Resizing And Repositioning Of Views In Android Application, I talked about the different type of screen orientation. The activity life cycle, I have covered in this article, Android Programming - Day Two . Now, it’s very important to know about the activity’s state, when the device changes an orientation.
Implementation
Create a new project by selecting the File->New->New Project.

Add 2 EditText element in the activity_main.xml file. Change the layout as LinearLayout.
- <LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:orientation="vertical"
- tools:context=".MainActivity">
- <EditText
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:id="@+id/txt1"
- />
- <EditText
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:id="@+id/txt2"
- />
- </LinearLayout>





Roshan GuragainPosted Oct 16, 2016, 6:43 AM
Nice one.its helpful...
kalu singh raoPosted Aug 31, 2016, 8:15 AM
Nice share