Home | History | Annotate | Download | only in widget

Lines Matching defs:Button

27  * Represents a push-button widget. Push-buttons can be
30 * <p>A typical use of a push-button in an activity would be the following:
40 * final Button button = (Button) findViewById(R.id.button_id);
41 * button.setOnClickListener(new View.OnClickListener() {
50 * the button in your activity, you can assign a method to your button in the XML layout,
54 * &lt;Button
60 * <p>Now, when a user clicks the button, the Android system calls the activity's {@code
72 * <h3>Button style</h3>
74 * <p>Every Button is styled using the system's default button background, which is often different
76 * satisfied with the default button style and want to customize it to match the design of your
77 * application, then you can replace the button's background image with a <a
80 * the current state of the button. Once you've defined a state list drawable in XML, you can apply
81 * it to your Button with the {@link android.R.attr#background android:background}
86 * <p>See the <a href="{@docRoot}guide/topics/ui/controls/button.html">Buttons</a>
91 * See {@link android.R.styleable#Button Button Attributes},
97 public class Button extends TextView {
98 public Button(Context context) {
102 public Button(Context context, AttributeSet attrs) {
106 public Button(Context context, AttributeSet attrs, int defStyleAttr) {
110 public Button(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
117 event.setClassName(Button.class.getName());
123 info.setClassName(Button.class.getName());