Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android UI question. Implementation guidance

I'm working on implementing a UI for an Android application, and I wanted to ask if there is already something in the native widgets to accomplish most of what I'm trying to do.

The application that I'm working on performs 15 different tasks that can be divided into 3 different groups. (5 tasks per group) I have 18 icon images (3 for the groups and 15 for the individual tasks) and I want to be able to panel these icons (starting with the groups) like this:

enter image description here

I want the next icon visible below and above (if further down than the first icon) and swipe to go to the next icon

enter image description here

Once an icon is clicked, the panels slide to the side, exposing the next layer (the specific 5 tasks for the selected group) with the selected group still visible on the side:

enter image description here

From there, the user can tell at a glance what group they are in, what the current, next and previous selectable tasks are, and that by swiping right, they can get back to the group selection.

What types of widgets would I need to look into in order to accomplish something like this? Are there already pre-built lists to do these activities?

Thanks for any guidance!

like image 213
joe_coolish Avatar asked May 24 '11 14:05

joe_coolish


1 Answers

You can get close with a LinearLayout of ImageView widgets and a ScrollView (vertical) or HorizontalScrollView. However, it will not give you the desired "centered image with bits of the previous/next images" effect -- it will be wherever the user positions it.

You can get close with a Gallery. However, it will not give you the vertical orientation, and it will always give you a fixed set of full options to the sides, not the partial images that you seek.

If it's gotta be the way you describe it, you'll have to roll it yourself. Gestures and animations should give you the desired effect.

like image 153
CommonsWare Avatar answered Oct 15 '22 21:10

CommonsWare