import android.app.*; import android.widget.*; import android.view.*; import android.view.KeyEvent; import android.view.inputmethod.*; import android.text.*; static LinearLayout aHorizontalLinearLayout(View... views) { LinearLayout ll = new LinearLayout(androidActivity()); ll.setOrientation(ll.HORIZONTAL); for (View v : views) if (v != null) ll.addView(v); ret ll; }