Home | History | Annotate | Download | only in util

Lines Matching refs:button

24 import android.widget.Button;
34 * Create a view with a button at the top and bottom, with filler in between.
56 final Button topButton = new Button(context);
69 final Button bottomButton = new Button(context);
119 final Button button = new Button(context);
120 button.setText("left");
121 ll.addView(button, lp);
127 final Button button = new Button(context);
128 button.setText("center");
129 ll.addView(button, lp);
135 final Button button = new Button(context);
136 button.setText("right");
137 ll.addView(button, lp);
147 * Create a button ready to be a list item.
151 * @param text The text of the button
152 * @param desiredHeight The desired height of the button
155 public static View button(int position, Context context, String text, int desiredHeight) {
156 TextView result = new Button(context);
164 result.setTag("button");
169 * Convert an existing button view to display the data at a new position.
171 * @param convertView Non-null Button created by {@link #button}
172 * @param text The text of the button
177 if (((String) convertView.getTag()).equals("button")) {
178 ((Button) convertView).setText(text);
232 * @param text The text of the button
233 * @param desiredHeight The desired height of the button
272 * Convert an existing button view to display the data at a new position.
275 * @param text The text of the button