Home
last modified time | relevance | path

Searched refs:itemSpacing (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/widget/
DGallery.java708 int itemSpacing = mSpacing; in fillToGalleryLeftRtl() local
720 curRightEdge = prevIterationView.getLeft() - itemSpacing; in fillToGalleryLeftRtl()
733 curRightEdge = prevIterationView.getLeft() - itemSpacing; in fillToGalleryLeftRtl()
739 int itemSpacing = mSpacing; in fillToGalleryLeftLtr() local
749 curRightEdge = prevIterationView.getLeft() - itemSpacing; in fillToGalleryLeftLtr()
765 curRightEdge = prevIterationView.getLeft() - itemSpacing; in fillToGalleryLeftLtr()
779 int itemSpacing = mSpacing; in fillToGalleryRightRtl() local
789 curLeftEdge = prevIterationView.getRight() + itemSpacing; in fillToGalleryRightRtl()
804 curLeftEdge = prevIterationView.getRight() + itemSpacing; in fillToGalleryRightRtl()
810 int itemSpacing = mSpacing; in fillToGalleryRightLtr() local
[all …]
/frameworks/support/car/src/main/java/androidx/car/widget/
DPagedListView.java307 int itemSpacing = a.getDimensionPixelSize(R.styleable.PagedListView_itemSpacing, 0); in init() local
308 if (itemSpacing > 0) { in init()
309 mRecyclerView.addItemDecoration(new ItemSpacingDecoration(itemSpacing)); in init()
705 public void setItemSpacing(int itemSpacing) { in setItemSpacing() argument
715 if (itemSpacing == 0 && existing != null) { in setItemSpacing()
718 mRecyclerView.addItemDecoration(new ItemSpacingDecoration(itemSpacing)); in setItemSpacing()
720 existing.setItemSpacing(itemSpacing); in setItemSpacing()
1281 private ItemSpacingDecoration(int itemSpacing) { in ItemSpacingDecoration() argument
1282 mItemSpacing = itemSpacing; in ItemSpacingDecoration()
1303 public void setItemSpacing(int itemSpacing) { in setItemSpacing() argument
[all …]
/frameworks/support/car/src/androidTest/java/androidx/car/widget/
DPagedListViewTest.java267 final int itemSpacing = 10; in setItemSpacing() local
269 mPagedListView.setItemSpacing(itemSpacing); in setItemSpacing()
277 assertThat(views[i + 1].getTop() - views[i].getBottom(), is(equalTo(itemSpacing))); in setItemSpacing()