Creating View from XML layout

We can create a view from the XML layout file. the way to do this is using,

LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = inflater.inflater(R.layout.main, true);


Popular posts from this blog

AlarmManager and Notification in Android

Open Gallery and get the selected image in appplication

Swipe Action and ViewFlipper in Android