This class represents the basic building block for user interface components. A View occupies a rectangular area on the screen and is responsible for drawing and event handling. View is the base class for widgets, which are used to create interactive UI components (buttons, text fields, etc.). The ViewGroup subclass is the base class for layouts, which are invisible containers that hold other Views (or other ViewGroups) and define their layout properties.
class android.view.View
.class Landroid/view/View;
继承
inherit java.lang.Object
.super Ljava/lang/Object;
继承
inherit android.graphics.drawable.Drawable.Callback
.super Landroid/graphics/drawable/Drawable$Callback;
继承
inherit android.view.KeyEvent.Callback
.super Landroid/view/KeyEvent$Callback;
继承
inherit android.view.accessibility.AccessibilityEventSource
.super Landroid/view/accessibility$AccessibilityEventSource;
Live region mode specifying that accessibility services should interrupt ongoing speech to immediately announce changes to this view.
public static final int ACCESSIBILITY_LIVE_REGION_ASSERTIVE
sget v0, Landroid/view/View;->ACCESSIBILITY_LIVE_REGION_ASSERTIVE:I
Live region mode specifying that accessibility services should not automatically announce changes to this view.
public static final int ACCESSIBILITY_LIVE_REGION_NONE
sget v0, Landroid/view/View;->ACCESSIBILITY_LIVE_REGION_NONE:I
Live region mode specifying that accessibility services should announce changes to this view.
public static final int ACCESSIBILITY_LIVE_REGION_POLITE
sget v0, Landroid/view/View;->ACCESSIBILITY_LIVE_REGION_POLITE:I
Flag requesting you to add views that are marked as not important for autofill (see setImportantForAutofill(int)) to a ViewStructure.
public static final int AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS
sget v0, Landroid/view/View;->AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS:I
Hint indicating that this view can be autofilled with a credit card expiration date.
public static final String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE:Ljava/lang/String;
Hint indicating that this view can be autofilled with a credit card expiration day.
public static final String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY:Ljava/lang/String;
Hint indicating that this view can be autofilled with a credit card expiration month.
public static final String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH:Ljava/lang/String;
Hint indicating that this view can be autofilled with a credit card expiration year.
public static final String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR:Ljava/lang/String;
Hint indicating that this view can be autofilled with a credit card number.
public static final String AUTOFILL_HINT_CREDIT_CARD_NUMBER
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_CREDIT_CARD_NUMBER:Ljava/lang/String;
Hint indicating that this view can be autofilled with a credit card security code.
public static final String AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE:Ljava/lang/String;
Hint indicating that this view can be autofilled with an email address.
public static final String AUTOFILL_HINT_EMAIL_ADDRESS
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_EMAIL_ADDRESS:Ljava/lang/String;
Hint indicating that this view can be autofilled with a user's real name.
public static final String AUTOFILL_HINT_NAME
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_NAME:Ljava/lang/String;
Hint indicating that this view can be autofilled with a password.
public static final String AUTOFILL_HINT_PASSWORD
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_PASSWORD:Ljava/lang/String;
Hint indicating that this view can be autofilled with a phone number.
public static final String AUTOFILL_HINT_PHONE
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_PHONE:Ljava/lang/String;
Hint indicating that this view can be autofilled with a postal address.
public static final String AUTOFILL_HINT_POSTAL_ADDRESS
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_POSTAL_ADDRESS:Ljava/lang/String;
Hint indicating that this view can be autofilled with a postal code.
public static final String AUTOFILL_HINT_POSTAL_CODE
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_POSTAL_CODE:Ljava/lang/String;
Hint indicating that this view can be autofilled with a username.
public static final String AUTOFILL_HINT_USERNAME
sget-object v0, Landroid/view/View;->AUTOFILL_HINT_USERNAME:Ljava/lang/String;
Autofill type for a field that contains a date, which is represented by a long representing the number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT (see Date.getTime().
public static final int AUTOFILL_TYPE_DATE
sget v0, Landroid/view/View;->AUTOFILL_TYPE_DATE:I
Autofill type for a selection list field, which is filled by an int representing the element index inside the list (starting at 0).
public static final int AUTOFILL_TYPE_LIST
sget v0, Landroid/view/View;->AUTOFILL_TYPE_LIST:I
Autofill type for views that cannot be autofilled.
public static final int AUTOFILL_TYPE_NONE
sget v0, Landroid/view/View;->AUTOFILL_TYPE_NONE:I
Autofill type for a text field, which is filled by a CharSequence.
public static final int AUTOFILL_TYPE_TEXT
sget v0, Landroid/view/View;->AUTOFILL_TYPE_TEXT:I
Autofill type for a togglable field, which is filled by a boolean.
public static final int AUTOFILL_TYPE_TOGGLE
sget v0, Landroid/view/View;->AUTOFILL_TYPE_TOGGLE:I
Flag indicating that a drag can cross window boundaries.
public static final int DRAG_FLAG_GLOBAL
sget v0, Landroid/view/View;->DRAG_FLAG_GLOBAL:I
When this flag is used with DRAG_FLAG_GLOBAL_URI_READ and/or DRAG_FLAG_GLOBAL_URI_WRITE, the URI permission grant can be persisted across device reboots until explicitly revoked with Context.revokeUriPermission(Uri, int) Context.revokeUriPermission}.
public static final int DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION
sget v0, Landroid/view/View;->DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION:I
When this flag is used with DRAG_FLAG_GLOBAL_URI_READ and/or DRAG_FLAG_GLOBAL_URI_WRITE, the URI permission grant applies to any URI that is a prefix match against the original granted URI.
public static final int DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION
sget v0, Landroid/view/View;->DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION:I
When this flag is used with DRAG_FLAG_GLOBAL, the drag recipient will be able to request read access to the content URI(s) contained in the ClipData object.
public static final int DRAG_FLAG_GLOBAL_URI_READ
sget v0, Landroid/view/View;->DRAG_FLAG_GLOBAL_URI_READ:I
When this flag is used with DRAG_FLAG_GLOBAL, the drag recipient will be able to request write access to the content URI(s) contained in the ClipData object.
public static final int DRAG_FLAG_GLOBAL_URI_WRITE
sget v0, Landroid/view/View;->DRAG_FLAG_GLOBAL_URI_WRITE:I
Flag indicating that the drag shadow will be opaque.
public static final int DRAG_FLAG_OPAQUE
sget v0, Landroid/view/View;->DRAG_FLAG_OPAQUE:I
This constant was deprecated in API level 28. The view drawing cache was largely made obsolete with the introduction of hardware-accelerated rendering in API 11. With hardware-acceleration, intermediate cache layers are largely unnecessary and can easily result in a net loss in performance due to the cost of creating and updating the layer. In the rare cases where caching layers are useful, such as for alpha animations, setLayerType(int, android.graphics.Paint) handles this with hardware rendering. For software-rend
评论1
最新资源