Customize RadListView?

2 posts, 0 answers
  1. Boya
    Boya avatar
    3 posts
    Member since:
    Mar 2015

    Posted 12 Mar 2015 Link to this post

    This is probably a really newbie question. I'm trying to figure out how to customize the divider between list items?  The default doesn't have any dividers.  Also any general help on how to customize the list view is really helpful.  I've read that there is predefined styles and templates, where can I find it?

  2. Todor
    Todor avatar
    774 posts

    Posted 13 Mar 2015 Link to this post

    Hi Boya,

    Thank you for your interest in RadListView for Android.

    RadListView extends Android's RecyclerView so it has the same way of customizing the items - namely through its adapter. 

    One way to add dividers is to add an additional View to your item's layout in order to simulate a divider. Another way is to use the ItemDecorations which are described here.

    Just as the adapter used by RecyclerView - RecyclerView.Adapter, the adapter used by RadListView - ListViewAdapter gives you full control over the way your items look through its onCreateViewHolder and onBindViewHolder methods. There are many examples online about how to define your own item layouts with RecyclerView.Adapter and the same can be used with ListViewAdapter. Additionally, ListViewAdapter provides its own implementations of these methods which provide the predefined styles and templates.

    Additional information about RadListView and its features is available on its online documentation.

    I hope this information helps.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft banner
Back to Top