Home | History | Annotate | Download | only in focus

Lines Matching refs:button

22 import android.widget.Button;
36 private Button mTopWide;
37 private Button mMidSkinny1Left;
38 private Button mBottomWide;
40 private Button mMidSkinny2Right;
47 public Button getTopWide() {
51 public Button getMidSkinny1Left() {
55 public Button getMidSkinny2Right() {
59 public Button getBottomWide() {
88 private static class MyButton extends Button {
101 private Button makeWide(String label) {
102 Button button = new MyButton(this);
103 button.setText(label);
104 button.setLayoutParams(new LinearLayout.LayoutParams(
107 return button;
111 * Add a skinny button that takes up just less than half of the screen
113 * @param root The layout to add the button to.
114 * @param label The label of the button.
115 * @param atRight Which side to put the button on.
116 * @return The newly created button.
118 private Button addSkinny(LinearLayout root, String label, boolean atRight) {
119 Button button = new MyButton(this);
120 button.setText(label);
121 button.setLayoutParams(new LinearLayout.LayoutParams(
141 ll.addView(button);
144 ll.addView(button);
148 return button;