Skip to content

A tool to help the RecyclerView's item add horizontal and vertical space.

License

Notifications You must be signed in to change notification settings

uncn/Decoration

Repository files navigation

Decoration

A tool to help the RecyclerView's item add horizontal and vertical space.

ScreenShot

Gradle

dependencies {
    implementation 'com.github.ShortStickBoy:Decoration:V1.0.0'
}

Use

recyclerView.addItemDecoration(new LineDecoration(spacing));
recyclerView.addItemDecoration(new LineDecoration(hSpacing, vSpacing));
recyclerView.addItemDecoration(new GridDecoration(spanCount, spacing, includeEdge));
recyclerView.addItemDecoration(new GridDecoration(spanCount, hSpacing, vSpacing, includeEdge));

License

Copyright [2018] sunzn

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

A tool to help the RecyclerView's item add horizontal and vertical space.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages