HomeSort by relevance Sort by last modified time
    Searched refs:mFirstPosition (Results 1 - 17 of 17) sorted by null

  /development/samples/Support7Demos/src/com/example/android/supportv7/widget/
RecyclerViewActivity.java 95 private int mFirstPosition;
121 for (int i = 0; mFirstPosition + i < count && top < parentBottom; i++, top = bottom) {
122 View v = recycler.getViewForPosition(mFirstPosition + i);
158 if (mFirstPosition > 0 && scrolled > dy) {
159 mFirstPosition--;
160 View v = recycler.getViewForPosition(mFirstPosition);
179 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) {
180 View v = recycler.getViewForPosition(mFirstPosition + getChildCount());
210 while (mFirstPosition > 0 && newViewsHeight < mScrollDistance) {
211 mFirstPosition--
    [all...]
AnimatedRecyclerView.java 185 private int mFirstPosition;
218 for (int i = 0; mFirstPosition + i < count && top < parentBottom; i++, top = bottom) {
219 View v = recycler.getViewForPosition(mFirstPosition + i);
255 if (position < mFirstPosition) {
256 newTop = view.getHeight() * (position - mFirstPosition);
295 if (mFirstPosition > 0 && scrolled > dy) {
296 mFirstPosition--;
297 View v = recycler.getViewForPosition(mFirstPosition);
315 if (scrolled < dy && state.getItemCount() > mFirstPosition + getChildCount()) {
316 View v = recycler.getViewForPosition(mFirstPosition + getChildCount())
    [all...]
  /frameworks/base/core/java/android/widget/
Gallery.java 180 * If true, mFirstPosition is the position of the rightmost child, and
423 View extremeChild = getChildAt(extremeItemPosition - mFirstPosition);
487 int firstPosition = mFirstPosition;
528 mFirstPosition += count;
606 int newPos = mFirstPosition + newSelectedChildIndex;
665 * mFirstPosition will be decreased as we add views to the left later
668 mFirstPosition = mSelectedPosition;
712 curPosition = mFirstPosition + numChildren;
716 mFirstPosition = curPosition = mItemCount - 1;
741 curPosition = mFirstPosition - 1
    [all...]
ListView.java 218 if (mFirstPosition != 0) {
232 if (mFirstPosition + childCount < mItemCount) {
552 return (mFirstPosition > 0) || (getChildAt(0).getTop() > listTop);
561 final int lastVisiblePosition = mFirstPosition + childCount - 1;
662 fillDown(mFirstPosition + count, startOffset);
671 fillUp(mFirstPosition - 1, startOffset);
707 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1);
740 mFirstPosition = pos + 1;
741 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1)
    [all...]
GridView.java 258 int position = mFirstPosition + count;
271 int position = mFirstPosition;
314 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1);
409 mFirstPosition = pos;
415 mFirstPosition = Math.max(0, pos + 1);
418 setVisibleRangeHint(mFirstPosition, mFirstPosition + getChildCount() - 1);
423 * Fills the list from top to bottom, starting with mFirstPosition
431 mFirstPosition = Math.min(mFirstPosition, mSelectedPosition)
    [all...]
AbsSpinner.java 259 final int position = mFirstPosition;
274 boolean shouldAnimate = animate && mFirstPosition <= position &&
275 position <= mFirstPosition + getChildCount() - 1;
309 return getChildAt(mSelectedPosition - mFirstPosition);
359 return mFirstPosition + i;
AdapterView.java 66 int mFirstPosition = 0;
614 return mFirstPosition + i;
629 return mFirstPosition;
639 return mFirstPosition + getChildCount() - 1;
    [all...]
AbsListView.java     [all...]
ExpandableListView.java 391 for (int i = 0, childFlPos = mFirstPosition - headerViewsCount; i < childCount;
524 int flatListPosition = childIndex + mFirstPosition;
    [all...]
Spinner.java 562 mFirstPosition = mSelectedPosition;
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
AdapterViewCompat.java 70 int mFirstPosition = 0;
621 return mFirstPosition + i;
636 return mFirstPosition;
646 return mFirstPosition + getChildCount() - 1;
    [all...]
AbsSpinnerCompat.java 237 final int position = mFirstPosition;
252 boolean shouldAnimate = animate && mFirstPosition <= position &&
253 position <= mFirstPosition + getChildCount() - 1;
287 return getChildAt(mSelectedPosition - mFirstPosition);
337 return mFirstPosition + i;
SpinnerCompat.java 484 mFirstPosition = mSelectedPosition;
    [all...]
  /packages/apps/Gallery2/src/com/android/photos/views/
GalleryThumbnailView.java 66 private int mFirstPosition;
187 fillRight(mFirstPosition + getChildCount(), 0);
188 fillLeft(mFirstPosition - 1, 0);
399 overhang = fillLeft(mFirstPosition - 1, allowOverhang);
402 overhang = fillRight(mFirstPosition + getChildCount(), allowOverhang);
435 * is always the view corresponding to position mFirstPosition + i.
473 mFirstPosition++;
528 mFirstPosition = pos + 1;
671 mFirstPosition = 0;
  /frameworks/ex/widget/java/com/android/ex/widget/
StaggeredGridView.java 67 * - mFirstPosition is the adapter position of the View returned by getChildAt(0).
68 * - Any child index can be translated to an adapter position by adding mFirstPosition.
69 * - Any adapter position can be translated to a child index by subtracting mFirstPosition.
70 * - Views for items in the range [mFirstPosition, mFirstPosition + getChildCount()) are
115 private int mFirstPosition;
275 return mFirstPosition;
398 overhang = fillUp(mFirstPosition - 1, allowOverhang);
401 overhang = fillDown(mFirstPosition + getChildCount(), allowOverhang) + mItemMargin;
432 if (mFirstPosition != 0 || getChildCount() != mItemCount)
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
StaggeredGridView.java 91 * - mFirstPosition is the adapter position of the View returned by getChildAt(0).
92 * - Any child index can be translated to an adapter position by adding mFirstPosition.
93 * - Any adapter position can be translated to a child index by subtracting mFirstPosition.
94 * - Views for items in the range [mFirstPosition, mFirstPosition + getChildCount()) are
188 private int mFirstPosition;
477 * guards against jagged edges and just layout views on the screen starting from mFirstPosition
830 return mAdapter.isDraggable(mFirstPosition + i);
    [all...]
  /prebuilts/sdk/current/support/v7/appcompat/libs/
android-support-v7-appcompat.jar 

Completed in 1049 milliseconds