sameera liyanage wrote:1)I neded to add a list view with horizontal scrollview.here is the example i used.it's working fine.anyway if i add two linearlayouts it gives error
From the API:
A HorizontalScrollView is a FrameLayout, meaning you should place one child in it containing the entire contents to scroll; this child may itself be a layout manager with a complex hierarchy of objects.
sameera liyanage wrote:2)can we use list view inside HorizontalScrollView?
Yes. Make sure the two (scroll and list) scroll in different directions, otherwise it gets confusing as to which is moving. Also, to see the horizontal scroll view, you will need to make the elements in the list view wider than the screen.
My guess is you want something else. Can you explain exactly what you want to do?
sameera liyanage wrote:I need to show data with colums and rows.there are several columns and several rows.So my screen is not enough for to show all this data
You need columns and you need rows? Sounds like you need a GridView.
sameera liyanage wrote:1)yes Steve i checked.Anyway can we limit the number of columns and rows in gridview.I mean can we define how many columns and rows to show ?
The documentation and the guide both give you the answer to that question.
sameera liyanage wrote:2)anyway i use table layout as below.now i can scroll both sides.but i use textViews.can i use listView for below?
The API for ListView is here: http://developer.android.com/reference/android/widget/ListView.html
The first sentence in the description gives you the answer.