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
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?
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 .So i need to have horizontal scroll view.anyway below is my list view without scrollview.
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.
anyway i have 7 colums and 18 rows exacly.Also i have header column.can i use gridview to archive this.I mean if i use gridview can i archive scrollview also.because ithere are 7 colums and 18 rows it doesn't show all data in one screnn.
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?