MartinS
MartinS

Reputation: 6234

Android 2D scrolling Listview?

I would like to create a ListView widget which allowed scrolling horizontally within a row. I've seen a similar thing in the UK Sky+ app on the grid channel view.

The list will represent hours in the day (vertical) divided into 5 mins timeslots (Horizontal)

Scroll
^
|
| 08:00 | 08:05 | 08:10 | 08:15 | .... -> Scroll
| 09:00 | 09:05 | 09:10 | 09:15 | .... -> Scroll
|
v
Scroll

Each "cell" should be able to have a background colour to identify if the time is available (greyed out type functionality for unavailable).

Each "cell" should be able to accept a touch event and change cell colour on touch. Only one cell (time) can be selected.

I could place a large tableview in a scrollView I suppose, but not ideal. It's not quite a gallery either as it won't contain images and I want the contents to be structured, not auto wrapped etc.

Thanks for any pointers

Martin.

Upvotes: 1

Views: 883

Answers (1)

Midhu
Midhu

Reputation: 1697

You can create a Horizontal list view, which have all the functionalities of a normal ListView widget.

This Link Will Help You

I tried the implementation and it worked fine for me.

Upvotes: 1

Related Questions