Note that there are some explanatory texts on larger screens.

plurals
  1. POcustomizing listview component
    text
    copied!<p>I am trying to build a list view in android that would look like this (ignore the search-bar):</p> <p><a href="http://www.freeimagehosting.net/uploads/6394404c4d.png" rel="nofollow noreferrer" title="Sectioned TableView">output. http://www.freeimagehosting.net/uploads/6394404c4d.png</a></p> <p>iPhone has a similar option called as section index :</p> <p><a href="http://t0.gstatic.com/images?q=tbn:ANd9GcRcssNycAZ6s_vITQaHXwo3A_pDbfGeQImVdPDPiGn5zCMAR4i_" rel="nofollow noreferrer">iphone section index. http://t0.gstatic.com/images?q=tbn:ANd9GcRcssNycAZ6s_vITQaHXwo3A_pDbfGeQImVdPDPiGn5zCMAR4i_</a></p> <p>I am able to get the sections within the list by using : <a href="http://bartinger.at/listview-with-sectionsseparators/" rel="nofollow noreferrer">http://bartinger.at/listview-with-sectionsseparators/</a></p> <p>Now I want to build the index (something that is on the right of the first image) (Index is customized and may contain more than just one alphabet)</p> <p>I don't want to do it the following way :</p> <p>create an activity that has one listview on left and another textview(or may be anything) on the right then track the right element and update the list. eg : <a href="http://hello-android.blogspot.com/2010/11/sideindex-for-android.html" rel="nofollow noreferrer">http://hello-android.blogspot.com/2010/11/sideindex-for-android.html</a></p> <p>I want to customize the listview of android itself so that the list view would include such an index at the right . something like this. A class that <code>extends ListActivity</code> and the class some or how contains the side-bar. (I'll manage the coding for the side-bar to work). So whenever another class extends <code>MyCustomListActivity</code> it will have the list as well as sidebar.</p> <p>My question is how do I include the side bar in my custom class that is extending the ListActivity ? Or is there a better approach to doing this ?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload