public S hasFocusable() { isNotNull(); assertThat(actual.hasFocusable()) // .overridingErrorMessage("Expected to have focusable but was not") // .isTrue(); return myself; }
mTouchMode = TOUCH_MODE_TAP; final View child = getChildAt(mMotionPosition - mFirstPosition); if (child != null && !child.hasFocusable()) { mLayoutMode = LAYOUT_NORMAL;
final int motionPosition = mMotionPosition; final View child = getChildAt(motionPosition - mFirstPosition); if (child != null && !child.hasFocusable()) { if (mTouchMode != TOUCH_MODE_DOWN) { child.setPressed(false);
attributes.add(new ViewAttribute<>("HasFocusable", view.hasFocusable())); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { attributes.add(new ViewAttribute<>("HasTransientState", view.hasTransientState()));
if (header != null && !header.hasFocusable()) { if (mTouchMode != TOUCH_MODE_DOWN) { header.setPressed(false);
@Override public void run() { if (mTouchMode == TOUCH_MODE_DOWN) { mTouchMode = TOUCH_MODE_TAP; final View header = getHeaderAt(mMotionHeaderPosition); if (header != null && !header.hasFocusable()) { if (!mDataChanged) { header.setPressed(true); setPressed(true); refreshDrawableState(); final int longPressTimeout = ViewConfiguration.getLongPressTimeout(); final boolean longClickable = isLongClickable(); if (longClickable) { if (mPendingCheckForLongPress == null) { mPendingCheckForLongPress = new CheckForHeaderLongPress(); } mPendingCheckForLongPress.rememberWindowAttachCount(); postDelayed(mPendingCheckForLongPress, longPressTimeout); } else { mTouchMode = TOUCH_MODE_DONE_WAITING; } } else { mTouchMode = TOUCH_MODE_DONE_WAITING; } } } } }
public S hasFocusable() { isNotNull(); assertThat(actual.hasFocusable()) // .overridingErrorMessage("Expected to have focusable but was not") // .isTrue(); return myself; }
data.put("Tags:", String.valueOf(reflector.getKeyedTags())); data.put("HasFocus", v.hasFocus()); data.put("HasFocusable", v.hasFocusable()); data.put("IsOpaque", v.isOpaque()); data.put("IsPressed", v.isPressed());
@Override public void run() { if (mTouchMode == TOUCH_MODE_DOWN) { final View child = getChildAt(mMotionPosition - mFirstPosition); if (child != null && !child.hasFocusable()) { if (!mDataChanged) { //setPressed(true); child.setPressed(true); layoutChildren(); final int longPressTimeout = ViewConfiguration.getLongPressTimeout(); final boolean longClickable = isLongClickable(); if (longClickable) { if (mPendingCheckForLongPress == null) { mPendingCheckForLongPress = new CheckForLongPress(); } postDelayed(mPendingCheckForLongPress, longPressTimeout); } else { mTouchMode = TOUCH_MODE_TAP; } } else { mTouchMode = TOUCH_MODE_DONE_WAITING; } } } }
final boolean inList = x > mListPadding.left && x < getWidth() - mListPadding.right; if ( child != null && !child.hasFocusable() && inList ) { if ( mTouchMode != TOUCH_MODE_DOWN ) { child.setPressed( false );
mTouchMode = TOUCH_MODE_TAP; final View child = getChildAt( mMotionPosition - mFirstPosition ); if ( child != null && !child.hasFocusable() ) { mLayoutMode = LAYOUT_NORMAL;
if ( v.hasFocusable() ) return; v.setPressed( true );