Customize which icons are visible in the reviewer action bar
Originally reported on Google Code with ID 2257
> Please explain your idea here.
Have buttons whose actions is configured by the user.
Currently this is available for gestures,
but gestures are not available when using the whiteboard.
One Use case that needs this:
Draw CJK characters with cards that do not fit the screen, as it is the case with cards
that include enough info.
Whiteboard needs to be switched on and off frequently to scroll the cards; for instance
to look at a stroke order diagram or or to look at kanji composites. The button present
in 2.2 has been removed in 2.3 and this has made reviews extremely painful.
see discussion in
https://groups.google.com/forum/#!topic/anki-android/kCVim4Oq1bk
> Is this feature available on similar apps
Available for Ankidroid's gestures though the actions currently do not include switching
the whiteboard on and off.
One way to implement this would be dedicated bar, with 4-5 buttons.
It's important that the buttons be always visible and actionable as any additional
click when multiplied by hundreds of reviews becomes a problem
Reported by enrico200165 on 2014-08-28 05:21:38
Thanks for the idea... Unfortunately this doesn't really work well with the Android
design guidelines. On most Android smartphones you can only have 2-3 items total in
the action bar, and we're supposed to let Android take care of when to show them.
We could easily allow the whiteboard show/hide button to be visible in the action bar,
but it would only actually be shown if you use a tablet, or review in landscape. Would
that be acceptable?
Reported by perceptualchaos2 on 2014-08-28 06:45:30
- Status changed:
WaitingForFeedback
The action bar could be made configurable to let the user chose the prioritization --
an idea I mentioned before.
And guidelines are just guidelines, not laws -- plus guidelines on the action bar don't
say you cannot have an additional toolbar somewhere on your UI.
These hidden buttons are annoying when, like marked, they have meaningful visual feedback,
undo is just so nice to have right there to not interrupt flow, and well yeah, whiteboard
is a big obstacle -- glad my cards don't scroll!!
Reported by chajadan on 2014-08-28 10:16:26
I've made some changes to the whiteboard icon and behavior, which should slightly ease
your pain when toggling the visibility of the whiteboard. The number of taps required
to turn the whiteboard off and then on again has reduced from 4 to 3, at the expense
of increasing the number of taps to clear the whiteboard from 1 to 2.
https://github.com/ankidroid/Anki-Android/pull/467
You should be able to try it out in alpha 13 coming out soon
Reported by perceptualchaos2 on 2014-09-02 16:10:41
I've changed it again in alpha 14 to separate clear and show/hide back out again, and
to *show both buttons if your screen is wide enough*. If you're lucky, you'll be able
to toggle the whiteboard visibility with a single tap now.
If your phone is too small, then unfortunately it will rollback to the old 2.2 behavior.
Reported by perceptualchaos2 on 2014-09-03 03:46:29
If we are going to make the actions customizable, the way to do it would be to have
a checkable list of actions, which when checked forces the icon to show in the action
bar. The position, order, and whether non-forced icons show should continue to be set
automatically by Android based on the width of the screen.
As of 2.3alpha15, clear whiteboard, show whiteboard, and undo are all set to force.
The whiteboard icons are of course hidden when the whiteboard is disabled, which is
a deck specific setting now.
Reported by perceptualchaos2 on 2014-09-03 08:25:47
- Status changed:
Accepted - Labels added: Priority-Medium
- Labels removed: Priority-Undecided
Or even better, we could have a spinner for each action, which lets the user choose
between the 3 choices for showAsAction: ("Always", "If Room", "Never")
Reported by perceptualchaos2 on 2014-09-03 08:38:10
I like that last option. It's always nice to remove bloat, even bloat
buttons.
Reported by chajadan on 2014-09-03 08:54:14
Reported by perceptualchaos2 on 2015-04-30 02:25:42
- Labels added: Priority-High
- Labels removed: Priority-Medium
For the benefit of anyone planning to work on this:
The way I envisage the feature working is we have a list of all the available actions, and users can choose between (separately for each action):
Always show / Show when room / Never show / Disabled
Where Disabled means that it's hidden even from the overflow menu. This last option would allow us to add "Add note" to this menu without cluttering it up for the majority of users that don't need it.
This is a great feature. Personally I don't like gestures so much but I bury and suspend a lot of notes. Is anyone working on this because I could definitely work on this.
You should be able to remove any button as well as deck name and time left. This would not be according to the design guidelines I think, but if the default settings follow those guidelines I don't see any problem. These are settings for advanced users.
Actions to choose from? I think all of them: Bury and suspend note/card Add card Edit Replay Etc...
But also to toggle specific tags. This could allow a user to easily one-click tag his collection while reviewing.
Optimally you would have an action bar just like in the reviewer to preview instantly when you are customizing these buttons.
Which icons could we use for all these actions?
I don't think anyone is working on it, and I would be very happy to get a pull request!
How about maybe start off by including all of the actions in the reviewer menu xml file, allowing each of them to be set in the four states I mentioned earlier in this thread. We can then discuss adding extra actions and hiding other stuff in a separate PR.
Ok so I have begun to look into this and there is this problem where items in a submenu (Hide / Delete) won't support showAsAction="". They are stuck in the menu. Neither can I find I way to see what items are placed in the actionbar and what are placed in the menu, because that could have been usefull for a work around.
Anyway, for me it is acceptable if the items in Hide / Delete only support the other three options. Though we could of course write our own way of dealing with which icons should be in the actionbar versus in the menu, but I don't think it is worth it.
Also, I noticed that the actionbar/overflow is not updated when rotating the device.
Maybe implementing the submenu as an action provider would work...? I'm sure we can figure something out, just send a PR (even if incomplete) and we can discuss specifics. On 17/01/2016 8:34 am, "arooooon" [email protected] wrote:
Ok so I have begun to look into this and there is this problem where items in a submenu (Hide / Delete) won't support showAsAction="ifRoom". They are stuck in the menu. Neither can I find I way to see what items are placed in the actionbar and what are placed in the menu, because that could have been usefull for a work around.
Anyway, for me it is acceptable if the items in Hide / Delete only support the other three options. Though we could of course write our own way of dealing with which icons should be in the actionbar versus in the menu, but I don't think it is worth it.
Also, I noticed that the actionbar/overflow is not updated when rotating the device.
— Reply to this email directly or view it on GitHub https://github.com/ankidroid/Anki-Android/issues/3154#issuecomment-172272557 .