[android-developers] Contextual Action Bar With Landscape Fragments and Selected Item Highlight

2012-11-08 Thread Jim Stewart
In portrait mode I have one Fragment List View (A). When I click on the item it launches a new activity which in turn loads a new fragment (B) to display the selected record. When I 'LongHold' on one item in (A) the CAB launches where I then 'Single Click' on lines to add/subtract lines to the

Re: [android-developers] Contextual Action Bar With Landscape Fragments and Selected Item Highlight

2012-11-08 Thread Mark Murphy
On Thu, Nov 1, 2012 at 8:43 AM, Jim Stewart wrote: > 1. How would you control the CAB based on Long Holds the way Google are > doing it? Don't use CHOICE_MODE_MULTIPLE_MODAL. Start the ActionMode yourself as you see fit. Here is an example: https://github.com/commonsguy/cw-omnibus/tree/master/Ac

Re: [android-developers] Contextual Action Bar With Landscape Fragments and Selected Item Highlight

2012-11-08 Thread Kostya Vasilyev
To answer your question number 2: The highlighting is called "activated background" and is logically different from "checked item, one of possibly several to perform actions on". Marking an item "checked", at least with your MODAL selection mode, will start the action mode, that's just how it wor

Re: [android-developers] Contextual Action Bar With Landscape Fragments and Selected Item Highlight

2012-11-15 Thread Jim Stewart
Dear Mark, Many thanks for your suggestion (and all your other efforts all over the place). I settled on the IOSCHED12 approach used in SessionsFragment. Only one quirky thing remains but i'm in debug mode on that. On Thursday, November 8, 2012 5:43:00 AM UTC-6, Mark Murphy (a Commons Guy)

Re: [android-developers] Contextual Action Bar With Landscape Fragments and Selected Item Highlight

2012-11-15 Thread Jim Stewart
Hi, Thanks for the suggestion. I was aware of difference between checked and 'coloured' and had tried the example you suggested. That same example is in the APIDemos but it in itself has a bug if you rotate at the wrong time, it gets the highlight mixed up. As I said above, I've mostly got