The app I’m developing is using ActionShercklockBar,
On the main activity (SherlockActivity) I have a bar with a search field,
A ListView (which is to have two entries per row)
and a spinner
the problem is that as I’m starting with android, all the tutorials I’ve found require that my activity extends from ListActivity
but mine is extending SherlockActivity so I’m a bit confused as to how I can implement the two lines entry
Could anyone point me to a resource on the web or provide some input on this?
Any help is appreciated
You don’t have to extend from ListActivity to use a ListView. Just place a ListView in your layout and then set it’s ListAdapter in your activity’s onCreate method. Here’s an example that shows this style of ListView: http://windrealm.org/tutorials/android/android-listview.php
For the 2 line entry per row, you’ll want to customize your List, so that you set the layout of each item displayed. Check out the OrderAdapter and the getView method implementation in this example: http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/