android design portion

by Prakash 2014-02-15 12:05:09

In android we store the design in res/layout folder in the XML formtat. For example if the activity name is MainActivity.java then the design xml name will be main.xml.

After that we load that UI in our activity class on the onCreate function.


public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
587
like
0
dislike
0
mail
flag

You must LOGIN to add comments