Skip to content

SodaLabs/styled-views-android

Repository files navigation

Styled Views

A collections of styled views.

Styled RecyclerView

The RecyclerView supports addItemDecoration method since 22.1.0 and many people use this method to programmatically add a line divider. As a group of visual developers, we prefer WYSIWYG.

Here are the requirements for using WYSIWYG:

  1. Assign the list item layout for previewing in the AndroidStudio. It is simple, just use the attribute tools:listitem. If you’re not familiar with the attribute, check out the document here.
  2. Assign the divider drawable in XML.
  3. Set the divider mode such as beginning, middle, and end in XML.

Therefore we create a custom RecyclerView which derives from support library RecyclerView and supports the special attributes, app:rvDividerDrawable and app:rvDividerMode.

Check out the document for the integration and usage.

Styled Switch View

A capsule styled switch view with customized label, border, background and thumbnail.

Check out the document for the integration and usage.

Styled Slider View

A collection of styled slider view.

Check out the document for the integration and usage.