import android.app.*; import android.widget.*; import android.view.*; import android.view.KeyEvent; import android.view.inputmethod.*; import android.text.*; static LinearLayout aNorthAndCenter(View n, View c) { LinearLayout ll = new LinearLayout(androidActivity ()); ll.setOrientation(ll.VERTICAL); c.setLayoutParams(new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT, 1.0f)); ll.addView(n); ll.addView(c); ret ll; }