Activity.setcontentview, View.setcontentview?
I noticed that the Activity class has a setContentView method where an xml resource file can be loaded. I wanted to do the same thing with a class that inherits ultimately from Vie
Solution 1:
I think that LayoutInflator is what you are looking for http://developer.android.com/reference/android/view/LayoutInflater.html And here is a code sample:
View view = (View)inflater.inflate(R.layout.abc, null);
view_group.add(view);
Post a Comment for "Activity.setcontentview, View.setcontentview?"