<div dir="ltr">On 26 July 2013 17:15, Manuel Quiñones <span dir="ltr"><<a href="mailto:manuq@laptop.org" target="_blank">manuq@laptop.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Andrew pointed me to the Android ActionBar:<br>
<br>
- <a href="http://developer.android.com/guide/topics/ui/actionbar.html" target="_blank">http://developer.android.com/guide/topics/ui/actionbar.html</a><br>
- <a href="http://developer.android.com/design/patterns/actionbar.html" target="_blank">http://developer.android.com/design/patterns/actionbar.html</a><br>
<br>
It is pretty standard on Android apps, and gives consistency between<br>
them.  For Sugar activities running on Android, we should aim to keep<br>
that consistency.  And according to their documentation, it is one of<br>
the most important design elements that developers can implement.<br>
<br>
The good news is that the ActionBar really is very similar to our<br>
Activity Toolbar:<br>
<br>
- has the app icon on the left<br>
- tends to have icon-only buttons<br>
- has a drop-down menu<br>
<br>
Next to the App Icon, the bar can have a View Control, to switch<br>
views.  Sugar activities don't usually have different views, so we can<br>
ignore this difference.<br>
<br>
The drop-down menu is for the buttons that overflow, and for less<br>
often used buttons.  We have the first in GTK, not the second.<br>
<br>
Android also have split action bars, which is very interesting for a<br>
solution to the design issue we were bumping with in GTK: toolbars<br>
whose elements don't fit in portrait mode.<br>
<br>
So the question is: what kind of consistency will we favor?<br>
<br>
- consistency between sugar activities and other android apps?<br>
- consistency between sugar activities in any platform?<br>
- or can we find something in between?<br>
<br>
To make sugar activities more like other Android apps, we could<br>
programmatically replace the HTML toolbar with an Android ActionBar.<br>
But then we'll lose Sugar palettes and the Sugar theme.  Or we'll have<br>
to implement the Sugar theme on Android.<br>
<br>
After all this considerations I conclude that we should make the HTML<br>
toolbar imitate the ActionBar in style and behaviour.<br></blockquote><div><br></div><div>You mean we should do that cross-platform or just when running on Android? <br></div></div></div></div>