Searched refs:mItemLengths (Results 1 – 3 of 3) sorted by relevance
104 int[] mItemLengths; field in GridActivity146 mItemLengths = intent.getIntArrayExtra(EXTRA_ITEMS); in onCreate()184 if (mItemLengths == null) { in onCreate()186 mItemLengths = new int[mNumItems]; in onCreate()187 for (int i = 0; i < mItemLengths.length; i++) { in onCreate()189 mItemLengths[i] = mStaggered ? (int)(Math.random() * 180) + 180 : 240; in onCreate()191 mItemLengths[i] = mStaggered ? (int)(Math.random() * 120) + 120 : 160; in onCreate()195 mNumItems = mItemLengths.length; in onCreate()263 int value = mItemLengths[index1]; in swap()264 mItemLengths[index1] = mItemLengths[index2]; in swap()[all …]
366 for (int i = 0; i < mActivity.mItemLengths.length; i++) { in verifyBoundCount()367 b.append(mActivity.mItemLengths[i]).append(","); in verifyBoundCount()805 mActivity.mItemLengths[0] = mActivity.mItemLengths[0] * 3; in testLayoutWhenAViewIsInvalidated()825 mActivity.mItemLengths[0] = mActivity.mItemLengths[0] / 3; in testLayoutWhenAViewIsInvalidated()5530 newItems[i] = mActivity.mItemLengths[0]; in testUpdateAndSelect3()5644 final int newItemValue = mActivity.mItemLengths[0];5706 final int newItemValue = mActivity.mItemLengths[0] + 1;
122 private int[] mItemLengths; field in HorizontalGridTestActivity.MyAdapter125 mItemLengths = new int[NUM_ITEMS]; in MyAdapter()126 for (int i = 0; i < mItemLengths.length; i++) { in MyAdapter()127 mItemLengths[i] = STAGGERED ? (int)(Math.random() * 180) + 180 : 240; in MyAdapter()149 holder.itemView.setLayoutParams(new ViewGroup.MarginLayoutParams(mItemLengths[position], in onBindViewHolder()155 return mItemLengths.length; in getItemCount()