Hi,
I'd like to create an application for tablets using 2 panels. The left one as a menu and the second one as a content presenter. In fact the behavior I expect is similar to the one in Gmail app. (http://www.demonsys.com/wp-content/uploads/2012/05/Gmail-Android-App.jpghttp://www.demonsys.com/wp-content/uploads/2012/05/Gmail-Android-App.jpg)
I'm currently using 2 fragments. One is basically a ListView with room names plus some buttons. The other one (the content) includes some information about the selected room.
The room I select in the left panel should stay highlighted - like in the Gmail app. I was trying for many hours to achieve this effect using selectors, but failed.
Moreover I found 2 different opinions about this approach..
1) http://developer.android.com/resources/articles/touch-mode.html
"Do not try to keep the focus or selection in touch mode"
2) Android Design - Multi-pane Layouts
"In general, use the pane on the right to present more information about the item you selected in the left pane. Make sure to keep the item in the left pane selected in order to establish the relationship between the panels."
Can you tell me how to achieve such an effect like in the Gmail app?
Bye
I'd like to create an application for tablets using 2 panels. The left one as a menu and the second one as a content presenter. In fact the behavior I expect is similar to the one in Gmail app. (http://www.demonsys.com/wp-content/uploads/2012/05/Gmail-Android-App.jpghttp://www.demonsys.com/wp-content/uploads/2012/05/Gmail-Android-App.jpg)
I'm currently using 2 fragments. One is basically a ListView with room names plus some buttons. The other one (the content) includes some information about the selected room.
The room I select in the left panel should stay highlighted - like in the Gmail app. I was trying for many hours to achieve this effect using selectors, but failed.
Moreover I found 2 different opinions about this approach..
1) http://developer.android.com/resources/articles/touch-mode.html
"Do not try to keep the focus or selection in touch mode"
2) Android Design - Multi-pane Layouts
"In general, use the pane on the right to present more information about the item you selected in the left pane. Make sure to keep the item in the left pane selected in order to establish the relationship between the panels."
Can you tell me how to achieve such an effect like in the Gmail app?
Bye