Code example for LinearLayout.LayoutParams

0
		return position;
	} 
 
	public View getView(int position, View convertView, ViewGroup parent) {
		LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		parent.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
 
		TextView textView = (TextView) inflater.inflate(android.R.layout.simple_list_item_1, null);
		textView.setText(flyingModeList.get(position));
 
		return textView;
	} 
 
	@Override 
	public void notifyDataSetChanged() { 
		super.notifyDataSetChanged(); 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE