Custom


 

  1. Using Space
  2. Using Include
  3. Using Merge

 

1. Using Space
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

ScreenShot:

view_space

Download SourceCode

 

2. Using Include
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open res -> layout -> Create new xml file, login.xml and add following code :

Step 4 : Open src -> package -> MainActivity.java and add following code :

Step 5 : Open AndroidManifest.xml and add following code :

ScreenShot:

view_include

Download SourceCode

 

3. Using Merge
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open res -> layout -> Create new xml file, login.xml and add following code :

Step 4 : Open res -> layout -> Create new xml file, textview_merge.xml and add following code :

Step 5 : Open src -> package -> MainActivity.java and add following code :

Step 6 : Open AndroidManifest.xml and add following code :

ScreenShot:

view_merge

Download SourceCode