Set horizontal align style on RadLegendView

Thread is closed for posting
2 posts, 0 answers
  1. nico
    nico avatar
    2 posts
    Member since:
    Oct 2014

    Posted 03 Nov 2014 Link to this post


    I would like to know how I can show a RadLegendView in a horizontal align mode, by default it's in vertical align.

    In a second time, I would like to put one LegendTitle on the right and a second one on the left of the screen, because I use only two VerticalAxis, one on the right and one on the left, is it possible ?

    My code:

    for(....) {
       LineSeries lineSeries = new LineSeries();

    RadLegendView legendView = new RadLegendView(this);

    LinearLayout linearLayout = new LinearLayout(this);


    ViewGroup rootView = (ViewGroup)findViewById(;

  2. Victor
    Victor avatar
    1358 posts

    Posted 06 Nov 2014 Link to this post

    Hello Nico,

    Thanks for writing.
    In the current version the legend is based on the Android ListView. Unfortunately the list does not provide many customization options. We can expose the list view adapter but this still won't allow horizontal or other more specific layouts. We will revise the internals of the legend and provide a more flexible API in a future release.

    Fortunately the legend is extremely simple at the moment and you can implement it manually fairly quickly. Just create a list view and pass it an adapter that translates from a chart series to a list view item. Then you can use the chart series collection itself.

    Please write again if you have more questions.


    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.

Back to Top