How can we create multiple activity dynamically in single activity Please provide me a code ....
text> itemprop = "text"> <2> Make linear layout side-by-side, orientation in horizontal form (enter id on layout), a dynamically a list in the code Create and add views to those 2 listviews in your layout
Like,
List View lv1 = new ListView (); ListView lv2 = New ListView (); // Get the context of your layout LinearLayout lL1 = (LinearLayout) findViewById (R.id.layoutId1); LinearLayout lL2 = (LinearLayout) findViewById (R.id.layoutId2); // Attach the ListView object to LinearLayouts lL1.addview (lv1); LL2.addview (LV2); You should start this.
Comments
Post a Comment