Home | History | Annotate | Download | only in view

Lines Matching defs:CLICKABLE

886      * apps that do this just because more things (clickable things) are now auto-focusable
892 * Prior to O, auto-focusable didn't exist and views marked as clickable weren't implicitly
893 * made focusable by default. As a result, apps could (incorrectly) change the clickable
894 * setting of views off the UI thread. Now that clickable can effect the focusable state,
895 * changing the clickable attribute off the UI thread will cause an exception (since changing
898 * clickable from outside the UI thread.
1429 * <p>Indicates this view can be clicked. When clickable, a View reacts
1433 static final int CLICKABLE = 0x00004000;
1545 * Indicates this view can be long clicked. When long clickable, a View
1563 * Indicates this view can be context clicked. When context clickable, a View reacts to a
5132 viewFlagValues |= CLICKABLE;
5133 viewFlagMasks |= CLICKABLE;
5759 out.append((mViewFlags&CLICKABLE) != 0 ? 'C' : '.');
6397 * clickable, it becomes clickable.
6421 * long clickable, it becomes long clickable.
6436 * context clickable, it becomes context clickable.
6450 * being built. If this view is not long clickable, it becomes long clickable.
10454 * @return true if the view is clickable, false otherwise
10461 return (mViewFlags & CLICKABLE) == CLICKABLE;
10466 * is clickable it will change its state to "pressed" on every click.
10467 * Subclasses should set the view clickable to visually react to
10470 * @param clickable true to make the view clickable, false otherwise
10475 public void setClickable(boolean clickable) {
10476 setFlags(clickable ? CLICKABLE : 0, CLICKABLE);
10482 * @return true if the view is long clickable, false otherwise
10493 * clickable it reacts to the user holding down the button for a longer
10497 * @param longClickable true to make the view long clickable, false otherwise
10508 * @return true if the view is context clickable, false otherwise
10581 * {@link #setPressed(boolean)} is explicitly called, only clickable views can enter
11284 if (((viewFlags & CLICKABLE) == CLICKABLE || (viewFlags & LONG_CLICKABLE) == LONG_CLICKABLE
13142 * is released, if the view is enabled and clickable.
13159 // Long clickable items don't necessarily have to be clickable.
13160 final boolean clickable = (mViewFlags & CLICKABLE) == CLICKABLE
13162 if (clickable || (mViewFlags & TOOLTIP) == TOOLTIP) {
13167 if (clickable) {
13209 if ((mViewFlags & CLICKABLE) == CLICKABLE && isPressed()) {
13451 * is enabled and is clickable. The default implementation also sends hover
13530 return (viewFlags & CLICKABLE) == CLICKABLE
13724 final boolean clickable = ((viewFlags & CLICKABLE) == CLICKABLE
13733 // A disabled view that is clickable still consumes the touch
13735 return clickable;
13743 if (clickable || (viewFlags & TOOLTIP) == TOOLTIP) {
13750 if (!clickable) {
13816 if (!clickable) {
13846 if (clickable) {
13858 if (clickable) {
14024 && (changed & (FOCUSABLE_MASK | CLICKABLE)) != 0) {
14025 // Heuristic only takes into account whether view is clickable.
14027 if ((mViewFlags & CLICKABLE) != 0) {
14226 || (changed & CLICKABLE) != 0 || (changed & LONG_CLICKABLE) != 0
27385 stream.addProperty("misc:clickable", isClickable());