Methods Summary |
---|
public android.widget.Button | getButton()
return mButton;
|
public android.widget.LinearLayout | getGoneGroup()
return mGoneGroup;
|
public android.widget.LinearLayout | getLayout()
return mLayout;
|
public boolean | isUnhandledKeyEvent()
return mUnhandledKeyEvent;
|
protected void | onCreate(android.os.Bundle icicle)
super.onCreate(icicle);
mLayout = new LinearLayout(this);
mLayout.setOrientation(LinearLayout.HORIZONTAL);
mLayout.setLayoutParams(new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT));
mGoneGroup = new LinearLayout(this);
mGoneGroup.setOrientation(LinearLayout.HORIZONTAL);
mGoneGroup.setLayoutParams(new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT));
mButton = new Button(this);
mButton.setLayoutParams(new LinearLayout.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
mGoneGroup.addView(mButton);
setContentView(mLayout);
mGoneGroup.setVisibility(View.GONE);
mButton.requestFocus();
|
public boolean | onKeyUp(int keyCode, android.view.KeyEvent event)
mUnhandledKeyEvent = true;
return true;
|