Code example for LinearLayout.LayoutParams

0
	TabContentFactory tabContentFactory = new TabContentFactory() {
 
	    @Override 
	    public View createTabContent(String tag) {
		LinearLayout ll = new LinearLayout(PluginActivity.this);
		ll.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
		View v;
		if (tag.equals(tabIndexes[0])) {
		    v = createDescriptionView();
		} else if (tag.equals(tabIndexes[1])) {
		    v = createActionsView();
		} else { 
		    v = createSettingsView();
		} 
		ll.addView(v);
		return ll;
	    } 
	}; 
 
	TabSpec tspec1 = tabs.newTabSpec(tabIndexes[0]);
	tspec1.setIndicator(lang.translationForKey(DESCRIPTION));