Saturday, June 16, 2012

Button in android application


Represents a push-button widget. Push-buttons can be pressed, or clicked, by the user to perform an action.
java.lang.Object
↳android.view.View
  ↳ android.widget.TextView
     ↳ android.widget.Button

Activity :  OnClickListener

Public Constructors
Button(Context context)
Button(Context context, AttributeSet attrs)
Button(Context context, AttributeSet attrs, int defStyle)
Example:

<Button
    
android:layout_height="wrap_content"
    
android:layout_width="wrap_content"
    
android:text="@string/self_destruct"
    
android:onClick="selfDestruct" />
 

No comments:

Post a Comment