Java tutorial
//package com.java2s; import android.content.Context; import android.widget.LinearLayout; public class Main { public static LinearLayout setBaseLinearLayout(Context context) { LinearLayout root_layout = new LinearLayout(context); root_layout.setOrientation(LinearLayout.VERTICAL); return root_layout; } }