Home | History | Annotate | Download | only in widget

Lines Matching defs:View

19 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
20 import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
42 import android.view.View;
43 import android.view.ViewGroup;
44 import android.view.accessibility.AccessibilityEvent;
47 import androidx.core.view.AccessibilityDelegateCompat;
48 import androidx.core.view.ViewCompat;
71 * calls to the RecyclerView. There was a bug where the focused view was lost when the soft
106 View.MeasureSpec.makeMeasureSpec(width, View.MeasureSpec.EXACTLY);
108 View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.AT_MOST);
112 View.MeasureSpec.makeMeasureSpec(height - 1, View.MeasureSpec.AT_MOST);
114 View.MeasureSpec.makeMeasureSpec(height / 2, View.MeasureSpec.AT_MOST);
118 View toFocus = findLastFullyVisibleChild(recyclerView);
143 // requestRectangleOnScreen (inside bringPointIntoView) for the focused view with a rect
146 assertThat("Child view at adapter pos " + focusIndex + " should be fully visible.",
169 assertTrue("Child view at adapter pos " + focusIndex + " should be fully visible.",
197 assertTrue("Child view at adapter pos " + focusIndex + " should be fully visible.",
252 View newFocused = mRecyclerView.getChildAt(focusIndex);
270 focusSearch(mRecyclerView.getFocusedChild(), View.FOCUS_UP, true);
282 assertTrue("Child view at adapter pos " + visibleIndex + " should be fully visible.",
337 View newFocused = mRecyclerView.getChildAt(focusIndex);
355 focusSearch(mRecyclerView.getFocusedChild(), View.FOCUS_DOWN, true);
367 assertTrue("Child view at adapter pos " + visibleIndex + " should be fully visible.",
423 View newFocused = mRecyclerView.getChildAt(focusIndex);
441 focusSearch(mRecyclerView.getFocusedChild(), View.FOCUS_LEFT, true);
453 assertTrue("Child view at adapter pos " + visibleIndex + " should be fully visible.",
508 View newFocused = mRecyclerView.getChildAt(focusIndex);
526 focusSearch(mRecyclerView.getFocusedChild(), View.FOCUS_RIGHT, true);
538 assertTrue("Child view at adapter pos " + visibleIndex + " should be fully visible.",
599 View newFocused = mRecyclerView.getChildAt(focusIndex);
606 final View nextView = focusSearch(mRecyclerView.getFocusedChild(), View.FOCUS_DOWN, true);
615 nextView.setOnFocusChangeListener(new View.OnFocusChangeListener(){
617 public void onFocusChange(View v, boolean hasFocus) {
624 View focusedChild = focusSearch(v, View.FOCUS_DOWN, true);
632 assertFalse("Child view at adapter pos " + (visibleChildCount - 1)
754 View child = mLayoutManager.getChildAt(i);
775 assertTrue("view holder should be in moved list",
780 View child = mLayoutManager.getChildAt(i);
795 mRecyclerView.getChildCount() <= childCount + 3 /*1 for removed view, 2 for its size*/);
897 // scroll to the view being pushed out, it should get same view from cache as the item
920 final View firstItemView = mRecyclerView
970 assertTrue("view should have the focus", vh.itemView.hasFocus());
971 // add a bunch of items right before that view, make sure it keeps its position
980 assertSame("same view holder should be kept for unchanged child", vh, postVH);
1034 assertTrue("view should gain the focus", vh.itemView.hasFocus());
1042 assertTrue("View should become fully visible", startMargin >= 0 && endMargin >= 0);
1062 assertTrue("test sanity, view should not be fully visible", startMargin < 0
1080 // add a bunch of items right before that view, make sure it keeps its position
1083 assertTrue("view should preserve the focus", vh.itemView.hasFocus());
1087 assertSame("same view holder should be kept for unchanged child", vh, postVH);
1088 View focused = postVH.itemView;