// 居中
mDecoration = new VerticalItemDecoration.Builder().showStart(true).showEnd(true).paddingLeft(50).paddingRight(20).color(Color.BLUE).size(10).build();
// 水平
mDecoration = new HorizontalItemDecoration.Builder().showStart(false).showEnd(true).paddingBottom(50).paddingTop(20).color(Color.RED).size(10).build();
mRecyclerView.addItemDecoration(mDecoration);
-
Notifications
You must be signed in to change notification settings - Fork 0
License
yuanwenbing/ItemDecoration
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published