Skip to content

Having a tough time finding a simple way to create a gradient line under the items in a RecyclerView I created one. Modified from recyclerview-playground by devunwired.

Notifications You must be signed in to change notification settings

TJCC/RecyclerView-Gradient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

RecyclerView-Gradient

Having a tough time finding a simple way to create a gradient line under the items in a RecyclerView I created one. Modified from recyclerview-playground by devunwired.

Useage:

mRecyclerView.addItemDecoration(new DividerDecoration(getActivity(),
                DividerDecoration.DividerType.GRADIENT,
                getResources().getColor(R.color.navigation_list_divider_color));

Note: a lot can be improved this is just a simple implementation sufficient for my needs. There are many changes that could be done to make it more robust and flexible.

I hope it might be helpful to someone.

About

Having a tough time finding a simple way to create a gradient line under the items in a RecyclerView I created one. Modified from recyclerview-playground by devunwired.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages