×
Namespaces

Variants
Actions
(Difference between revisions)

Webinar Series 40 UI Design

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot update - Fix ArticleMetaData and links)
hamishwillee (Talk | contribs)
(Hamishwillee - Improved wiki text)
Line 1: Line 1:
{{Abstract|This article is companion for the Series 40 UI design webinars. It contains solutions and proposals for the webinar exercises and discusses open issues which could not be solved during the webinar Q/A session.}}  
+
{{Abstract|This article is companion for the [http://www.developer.nokia.com/Blogs/News/blog/2012/04/24/nokia-developer-webinar-user-centric-design-of-series-40-apps/ Series 40 UI design webinars]. It contains solutions and proposals for the webinar exercises and discusses open issues which could not be solved during the webinar Q/A session.}}  
 
+
  
 
{{ArticleMetaData <!-- v1.2 -->
 
{{ArticleMetaData <!-- v1.2 -->
Line 35: Line 34:
 
=====Proposal:=====
 
=====Proposal:=====
  
{|
+
{|class="wikitable"
 
|-
 
|-
 
| [[File:Webinar Series40 UI Design 02.png|200px]] ||
 
| [[File:Webinar Series40 UI Design 02.png|200px]] ||
:The original layout in Touch & Type is a canvas because of 2 reasons:
+
The original layout in Touch & Type is a canvas because of 2 reasons:
:* Lists do not allow different text formatting in one list item, e.g. title with black font and content with grey front is not possible; in addition a line break isn't possible neither
+
* Lists do not allow different text formatting in one list item, e.g. title with black font and content with grey front is not possible; in addition a line break isn't possible neither
:* Lists do not support the use of a Middle Soft Key (also there is no possibility to add an Action Button #1 to Full Touch lists)
+
* Lists do not support the use of a Middle Soft Key (also there is no possibility to add an Action Button #1 to Full Touch lists)
:The Touch & Type canvas can be transferred into a canvas again. The content layout stays unchanged and Back and Options are replaced automatically with icons. However, the primary function “Add” in the middle soft key (Touch and Type) is replaced with a new icon “plus” (Full Touch).  In Full Touch there is more content “above the fold” than in Touch & Type.
+
The Touch & Type canvas can be transferred into a canvas again. The content layout stays unchanged and Back and Options are replaced automatically with icons. However, the primary function “Add” in the middle soft key (Touch and Type) is replaced with a new icon “plus” (Full Touch).  In Full Touch there is more content “above the fold” than in Touch & Type.
 
|}
 
|}
  
<br />
+
====Create a sign-in view ====
 
+
====Create a sign-in view.====
+
  
 
It should contain:
 
It should contain:
Line 53: Line 50:
 
* Setting for auto-fill password
 
* Setting for auto-fill password
 
* Forgot password & help
 
* Forgot password & help
 
  
 
=====Proposal 1:=====
 
=====Proposal 1:=====
  
{|
+
{| class="wikitable"
 
|-
 
|-
 
| [[File:Webinar Series40 UI Design 03.png|200px]] ||  
 
| [[File:Webinar Series40 UI Design 03.png|200px]] ||  
:The environment is a Form screen. Username and password are filled via TextField and the Setting for auto-fill is done via a pop-up choice group. This proposal places Help and Forgot password under the Options menu. The login is done via the checkmark in Action Button #1
+
The environment is a Form screen. Username and password are filled via TextField and the Setting for auto-fill is done via a pop-up choice group. This proposal places Help and Forgot password under the Options menu. The login is done via the checkmark in Action Button #1
 
|}
 
|}
  
  
=====Proposal 2:=====
+
===== Proposal 2 =====
  
{|
+
{| class="wikitable"
 
|-
 
|-
 
| [[File:Webinar Series40 UI Design 04.png|200px]] ||  
 
| [[File:Webinar Series40 UI Design 04.png|200px]] ||  
:The environment is again a Form screen with 2 TextFields and 1 pop-up choice group. In addition, there is a StringItem formatted as a Button and a StringItem formatted as a hyperlink. There is no action in Action Button #1.  
+
The environment is again a Form screen with 2 TextFields and 1 pop-up choice group. In addition, there is a StringItem formatted as a Button and a StringItem formatted as a hyperlink. There is no action in Action Button #1.  
 
|}
 
|}
  
  
 
+
=====Discussion =====
=====Discussion:=====
+
 
The second proposal has everything available in the view, but it is not likely that it will work flawlessly with Touch & Type devices.  However, since the additional elements in the view (Login button and Help hyperlink) are more prominent, it is expected to reduce interaction bumpers if the design is optimized for Full Touch.
 
The second proposal has everything available in the view, but it is not likely that it will work flawlessly with Touch & Type devices.  However, since the additional elements in the view (Login button and Help hyperlink) are more prominent, it is expected to reduce interaction bumpers if the design is optimized for Full Touch.
  
Line 86: Line 81:
  
  
=====Proposal:=====
+
===== Proposal =====
  
{|
+
{| class="wikitable"
 
|-
 
|-
 
| [[File:Webinar Series40 UI Design 05.png|200px]] ||  
 
| [[File:Webinar Series40 UI Design 05.png|200px]] ||  
: The pop-up choice group in a Form screen offers single selection out of a list. Also the exclusive choice group would have been a good choice. It depends on the environment. Usually collapsing UI elements are preferred if there are many different settings slots in a single view, whereas static UI components are usually preferred in case only few settings slots are available.
+
The pop-up choice group in a Form screen offers single selection out of a list. Also the exclusive choice group would have been a good choice. It depends on the environment. Usually collapsing UI elements are preferred if there are many different settings slots in a single view, whereas static UI components are usually preferred in case only few settings slots are available.
<br />
+
  
: Please note, the LCDUI Tumbler (DateField) is not suitable for this task. It only can pick time and date, but no weekdays or any other values.
+
Please note, the LCDUI Tumbler (DateField) is not suitable for this task. It only can pick time and date, but no weekdays or any other values.
 
|}
 
|}
 
 
  
  
Line 103: Line 95:
  
  
{|
+
{| class="wikitable"
 
|-
 
|-
 
| [[File:Webinar Series40 UI Design 06.png|200px]] ||  
 
| [[File:Webinar Series40 UI Design 06.png|200px]] ||  
: You may find the following layout from a native application. Unfortunately, the single choice item is not available in the LCDUI.
+
You may find the following layout from a native application. Unfortunately, the single choice item is not available in the LCDUI.
 
|}
 
|}
  
Line 112: Line 104:
  
  
=====Proposal:=====
+
===== Proposal =====
{|
+
{| class="wikitable"
 
|-
 
|-
 
| [[File:Webinar Series40 UI Design 07.png|200px]] ||  
 
| [[File:Webinar Series40 UI Design 07.png|200px]] ||  
: The proposal is similar to the previous problem, except that the pop-up choice group contains only 2 items.
+
The proposal is similar to the previous problem, except that the pop-up choice group contains only 2 items.
: Another solution would be a multi selection choice group with only one item. Also an exclusive selection choice group with 2 items is possible to replace a switch. The choice depends in the end again from the environment:
+
 
: * pop-up choice group; best if used in a busy layout
+
Another solution would be a multi selection choice group with only one item. Also an exclusive selection choice group with 2 items is possible to replace a switch. The choice depends in the end again from the environment:
: * multi selection choice group (1 item), if there is a clear on/off metaphor (e.g. radio on/off)
+
* pop-up choice group; best if used in a busy layout
: * exclusive choice group if indicating the correct state is crucial, and on/off is not necessarily the right metaphor (e.g. dim light on/off vs.  dimmed light – full light)
+
* multi selection choice group (1 item), if there is a clear on/off metaphor (e.g. radio on/off)
 +
* exclusive choice group if indicating the correct state is crucial, and on/off is not necessarily the right metaphor (e.g. dim light on/off vs.  dimmed light – full light)
 
|}
 
|}
  
  
 
====Which views can have a button? Are there any limitations?====
 
====Which views can have a button? Are there any limitations?====
 
+
===== Proposal =====
 
+
=====Proposal:=====
+
 
[[File:Webinar Series40 UI Design 08.png|200px]] [[File:Webinar Series40 UI Design 09.png|200px]] [[File:Webinar Series40 UI Design 10.png|200px]] [[File:Webinar Series40 UI Design 11.png|200px]] [[File:Webinar Series40 UI Design 12.png|200px]]
 
[[File:Webinar Series40 UI Design 08.png|200px]] [[File:Webinar Series40 UI Design 09.png|200px]] [[File:Webinar Series40 UI Design 10.png|200px]] [[File:Webinar Series40 UI Design 11.png|200px]] [[File:Webinar Series40 UI Design 12.png|200px]]
  
 
* Alerts can have 0 – 3 buttons. Position and layout are predefined.
 
* Alerts can have 0 – 3 buttons. Position and layout are predefined.
* StringItem in a Form screen can be dressed as a button or as a labeled button. It is only possible to show one button per row.
+
* {{Icode|StringItem}} in a Form screen can be dressed as a button or as a labeled button. It is only possible to show one button per row.
* The CustomItem in Form screen can host a button or a button group.
+
* The {{Icode|CustomItem}} in Form screen can host a button or a button group.
 
* The full screen canvas can contain buttons. The 4th image shows custom surround-shaped push-buttons with icons and with additional text below the push button. If the button is based on icons it is many times beneficial to add text explaining the action being mapped to the button.
 
* The full screen canvas can contain buttons. The 4th image shows custom surround-shaped push-buttons with icons and with additional text below the push button. If the button is based on icons it is many times beneficial to add text explaining the action being mapped to the button.
 
* A canvas with a custom toolbar, as shown in the 5th image. Do not place more than 5 items in a toolbar.
 
* A canvas with a custom toolbar, as shown in the 5th image. Do not place more than 5 items in a toolbar.
Line 138: Line 129:
  
 
===Open issues from Q/A===
 
===Open issues from Q/A===
 
 
====What happens with the keypad if BT keyboard is detected?====
 
====What happens with the keypad if BT keyboard is detected?====
  
<br />
+
Regarding connecting a Bluetooth enabled device to a full touch series 40 and getting input from the BT device into a custom 3rd party Java application, the following rules apply:
Regarding connecting a Bluetooth enabled device to a full touch series 40 and getting input from the BT device into a custom 3rd party Java application, the following rules apply:<br />
+
  
'''1.''' Direct connection of a BT device to a Java application is only possible if the BT device supports the Bluetooth Profiles that are coming with the JSR-82 (the Bluetooth API):
+
# Direct connection of a BT device to a Java application is only possible if the BT device supports the Bluetooth Profiles that are coming with the JSR-82 (the Bluetooth API):
:*SDAP - Service Discovery Application Profile
+
#*SDAP - Service Discovery Application Profile
:*RFCOMM - Serial Cable Emulation Protocol
+
#*RFCOMM - Serial Cable Emulation Protocol
:*L2CAP - Logical Link Control and Adaptation Protocol
+
#*L2CAP - Logical Link Control and Adaptation Protocol
:*OBEX - Generic Object Exchange Profile (GOEP) profile on top of RFCOMM and TCP  
+
#*OBEX - Generic Object Exchange Profile (GOEP) profile on top of RFCOMM and TCP  
<br />
+
# The Virtual Keyboard API does not provide any editor functionality. It merely launches and controls the virtual keyboard provided by the platform on low level Canvas and GameCanvas Components and returns into the application the key that was pressed with the help of the keyPressed(int key) method. So theoretically, one can call remotely the keyPressed(int key) method directly with a value that matches the integer value of the key that is supposed to be pressed.
  
'''2.''' The Virtual Keyboard API does not provide any editor functionality. It merely launches and controls the virtual keyboard provided by the platform on low level Canvas and GameCanvas Components and returns into the application the key that was pressed with the help of the keyPressed(int key) method. So theoretically, one can call remotely the keyPressed(int key) method directly with a value that matches the integer value of the key that is supposed to be pressed.
 
  
 
====Can text be formatted, e.g. rich text formatting?====  
 
====Can text be formatted, e.g. rich text formatting?====  
<br />
 
Regarding StringItem one can change the font. Fonts have three attributes:
 
Style (bold/italic), size (large or small) and face (monospace, proportional and system). One cannot change the color of a StringItem.<br />
 
  
It is not possible to format the text in TextBox screen.<br />
+
Regarding {{Icode|StringItem}} one can change the font. Fonts have three attributes:
 +
Style (bold/italic), size (large or small) and face (monospace, proportional and system). One cannot change the color of a {{Icode|StringItem}}.
 +
 
 +
It is not possible to format the text in {{Icode|TextBox}} screen.
 
   
 
   
Canvas allows free formatting.<br />
+
{{Icode|Canvas}} allows free formatting.
  
 
If formatting is needed for certain components, please have look into LWUIT if this is suitable for you.
 
If formatting is needed for certain components, please have look into LWUIT if this is suitable for you.
Line 166: Line 154:
 
====How is the image in an ImageItem being cropped in landscape orientation?====
 
====How is the image in an ImageItem being cropped in landscape orientation?====
  
Here is the example image:<br />
+
Here is the example image:
  
 
[[File:webinar Series40 UI Design QA 01.png|400px]]
 
[[File:webinar Series40 UI Design QA 01.png|400px]]
  
 
+
When the Layout is set to {{Icode|LAYOUT_LEFT}} or {{Icode|LAYOUT_CENTER}}, this is the result in portrait mode:
When the Layout is set to LAYOUT_LEFT or LAYOUT_CENTER, this is the result in portrait mode:<br />
+
  
 
[[File:webinar Series40 UI Design QA 02.png|200px]]
 
[[File:webinar Series40 UI Design QA 02.png|200px]]
 
[[File:webinar Series40 UI Design QA 03.png|200px]]
 
[[File:webinar Series40 UI Design QA 03.png|200px]]
<br />
 
  
  
When the Layout is set to LAYOUT_LEFT or LAYOUT_CENTER, this is the result in landscape mode:<br />
+
When the Layout is set to {{Icode|LAYOUT_LEFT}} or {{Icode|LAYOUT_CENTER}}, this is the result in landscape mode:
  
 
[[File:webinar Series40 UI Design QA 04.png|350px]]
 
[[File:webinar Series40 UI Design QA 04.png|350px]]
 
[[File:webinar Series40 UI Design QA 05.png|350px]]
 
[[File:webinar Series40 UI Design QA 05.png|350px]]
<br />
+
 
 
The cropping matches the requested layout.
 
The cropping matches the requested layout.
  
Line 188: Line 174:
 
====How can you do custom gestures yourself?====
 
====How can you do custom gestures yourself?====
 
1. It is possible to use the existing gestures and build your custom gesture on top of it; here 2 examples:
 
1. It is possible to use the existing gestures and build your custom gesture on top of it; here 2 examples:
- if you want to make your application to sense a figure of "8" on your screen, use a "drag" gesture and use the x/y values for your pattern recognition
+
* if you want to make your application to sense a figure of "8" on your screen, use a "drag" gesture and use the x/y values for your pattern recognition
- if you want to use triple touch, e.g. to mark the entire text, use 3 single taps for your gesture recognition
+
* if you want to use triple touch, e.g. to mark the entire text, use 3 single taps for your gesture recognition
<br />
+
 
[http://www.developer.nokia.com/Resources/Library/Java/_zip/GUID-237420DE-CCBE-4A74-A129-572E0708D428/com/nokia/mid/ui/gestures/GestureEvent.html More information on how to use Gestures.]<br />
+
* [http://www.developer.nokia.com/Resources/Library/Java/_zip/GUID-237420DE-CCBE-4A74-A129-572E0708D428/com/nokia/mid/ui/gestures/GestureEvent.html More information on how to use Gestures.]
 +
 
 
Tap drag and release can also be implemented outside the Gesture API, with the standard LCDUI low level Canvas components.  
 
Tap drag and release can also be implemented outside the Gesture API, with the standard LCDUI low level Canvas components.  
[http://www.developer.nokia.com/Resources/Library/Java/#!developers-guides/ui-and-graphics/touch-ui/touch-interaction-in-series-40.html More information on Touch UI on Series 40.]<br />
+
* [http://www.developer.nokia.com/Resources/Library/Java/#!developers-guides/ui-and-graphics/touch-ui/touch-interaction-in-series-40.html More information on Touch UI on Series 40.]
  
 
2. It is possible to use the sensor API to e.g. get direct x/y/z information of the phone. this way, you can e.g. sense the position changes of the phone to detect if the user is writing a figure of "8" into the air (with the phone in her hand). The phone can detect accelerations between -2g and +2g.
 
2. It is possible to use the sensor API to e.g. get direct x/y/z information of the phone. this way, you can e.g. sense the position changes of the phone to detect if the user is writing a figure of "8" into the air (with the phone in her hand). The phone can detect accelerations between -2g and +2g.
Sensor API link will be added.<br />
+
Sensor API link will be added.
[http://www.developer.nokia.com/Resources/Library/Java/_zip/GUID-F031C633-5F4E-441E-A863-CE4E28A9CD55/overview-summary.html More information.]<br />
+
* [http://www.developer.nokia.com/Resources/Library/Java/_zip/GUID-F031C633-5F4E-441E-A863-CE4E28A9CD55/overview-summary.html More information.]
[http://www.developer.nokia.com/Resources/Library/Java/#!code-examples/mobile-sensors-arrowkeys.html Example 1]<br />
+
* [http://www.developer.nokia.com/Resources/Library/Java/#!code-examples/mobile-sensors-arrowkeys.html Example 1]
[http://www.developer.nokia.com/Resources/Library/Java/#!code-examples/mobile-sensors-cottage360.html Example 2]
+
* [http://www.developer.nokia.com/Resources/Library/Java/#!code-examples/mobile-sensors-cottage360.html Example 2]
 +
 
  
 
====Is it possible to store a small amount of data?====
 
====Is it possible to store a small amount of data?====
Yes it is. The persistent storage is done via RMS (Record Management System). <br />
+
Yes it is. The persistent storage is done via RMS (Record Management System):
[http://www.developer.nokia.com/Resources/Library/Java/_zip/GUID-0D0A1092-5037-4421-B466-B958CB777414/javax/microedition/rms/package-summary.html More information.]<br />
+
* [http://www.developer.nokia.com/Resources/Library/Java/_zip/GUID-0D0A1092-5037-4421-B466-B958CB777414/javax/microedition/rms/package-summary.html More information.]
[http://www.developer.nokia.com/Resources/Library/Java/#!code-examples/application-framework-persistentstorage.html Example.]
+
* [http://www.developer.nokia.com/Resources/Library/Java/#!code-examples/application-framework-persistentstorage.html Example.]
 +
 
  
 
====Is there a support to use the text editor API with full key event handling?====
 
====Is there a support to use the text editor API with full key event handling?====
Please check from here:
+
Please check in the JDL:
<br />
+
* [http://www.developer.nokia.com/Resources/Library/Java/_zip/GUID-237420DE-CCBE-4A74-A129-572E0708D428/com/nokia/mid/ui/TextEditor.html TextEditor information.]
[http://www.developer.nokia.com/Resources/Library/Java/_zip/GUID-237420DE-CCBE-4A74-A129-572E0708D428/com/nokia/mid/ui/TextEditor.html More information.]
+
* [http://www.developer.nokia.com/Resources/Library/Java/#!code-examples/application-framework-persistentstorage.html Example.]
<br />
+
 
[http://www.developer.nokia.com/Resources/Library/Java/#!code-examples/application-framework-persistentstorage.html Example.]
+
  
 
====Is it possible to create a choice group (ChoiceGroup) without a title and how would it look like?====
 
====Is it possible to create a choice group (ChoiceGroup) without a title and how would it look like?====
Yes it is possible. All you need is to give an empty title (i.e. “”) in the constructor as follows:<br />
+
Yes it is possible. All you need is to give an empty title (i.e. “”) in the constructor as follows:
mainForm = new Form("Simple ChoiceGroup");<br />
+
<code java>
:cg = new ChoiceGroup("", ChoiceGroup.EXCLUSIVE);<br />
+
mainForm = new Form("Simple ChoiceGroup");
:cg.append("option 1", null);<br />
+
cg = new ChoiceGroup("", ChoiceGroup.EXCLUSIVE);
:cg.append("option 2", null);<br />
+
cg.append("option 1", null);
:cg.append("option 3", null);<br />
+
cg.append("option 2", null);
:mainForm.append(cg);<br />
+
cg.append("option 3", null);
:Display.getDisplay(this).setCurrent(mainForm);<br />
+
mainForm.append(cg);
 +
Display.getDisplay(this).setCurrent(mainForm);
 +
</code>
 +
 
 
You will get the following result:
 
You will get the following result:
 
+
[[File:Webinar Series40 UI Design QA 06.png|none]]
[[File:Webinar Series40 UI Design QA 06.png]]
+
  
  
Line 230: Line 220:
 
===Problems===
 
===Problems===
 
====How could these screens look in full touch?====
 
====How could these screens look in full touch?====
<br />
+
 
 
[[File:Webinar Series40 UI Design 13.png|200px]] [[File:Webinar Series40 UI Design 14.png|200px]]
 
[[File:Webinar Series40 UI Design 13.png|200px]] [[File:Webinar Series40 UI Design 14.png|200px]]
  
  
 
====If Action Button 1 should be used for confirmation,  how would you build a multi selction view?====
 
====If Action Button 1 should be used for confirmation,  how would you build a multi selction view?====
<br />
 
  
  
 
====Sketch a download dialog which shows the remaining amount of data.====
 
====Sketch a download dialog which shows the remaining amount of data.====
<br />
 
  
  
Line 245: Line 233:
 
* 2 categories
 
* 2 categories
 
* 3 primary actions related to the view, not a single item out of the view (sorted by priority)
 
* 3 primary actions related to the view, not a single item out of the view (sorted by priority)
:* call
+
** call
:* add
+
** add
:* edit
+
** edit
 
* 3 secondary actions related to the view, not a single item out of the view (sorted by priority)
 
* 3 secondary actions related to the view, not a single item out of the view (sorted by priority)
:* Share FB
+
** Share FB
:* Share TW
+
** Share TW
:* Share Reddit
+
** Share Reddit
 
* Options menu  
 
* Options menu  
 
* Use chrome
 
* Use chrome
 
* maximize the content area
 
* maximize the content area
<br />
+
 
  
 
====How many touch elements fit the content area?====
 
====How many touch elements fit the content area?====
<br />
 
  
  
 
====How many touch elements fit the the entire canvas?====
 
====How many touch elements fit the the entire canvas?====
<br />
 
  
  
 +
===Try your new knowledge and check the Asha Touch Competition 2012Q3===
  
===Try your new knowledge and check the [[Asha Touch Competition 2012Q3]]===
+
The competition page is here: [[Asha Touch Competition 2012Q3]].

Revision as of 05:13, 11 July 2012

This article is companion for the Series 40 UI design webinars. It contains solutions and proposals for the webinar exercises and discusses open issues which could not be solved during the webinar Q/A session.

Article Metadata
Compatibility
Platform(s):
Series 40
Article
Created: Krebbix (29 Jun 2012)
Last edited: hamishwillee (11 Jul 2012)

Contents

Webinar Series 40 Full Touch UI Style Guide, part 1, 28.06.2012 and 04.07.2012

Problems

How would this screen look in Series 40 Full Touch?

Webinar Series40 UI Design 01.png

Proposal:
Webinar Series40 UI Design 02.png

The original layout in Touch & Type is a canvas because of 2 reasons:

  • Lists do not allow different text formatting in one list item, e.g. title with black font and content with grey front is not possible; in addition a line break isn't possible neither
  • Lists do not support the use of a Middle Soft Key (also there is no possibility to add an Action Button #1 to Full Touch lists)

The Touch & Type canvas can be transferred into a canvas again. The content layout stays unchanged and Back and Options are replaced automatically with icons. However, the primary function “Add” in the middle soft key (Touch and Type) is replaced with a new icon “plus” (Full Touch). In Full Touch there is more content “above the fold” than in Touch & Type.

Create a sign-in view

It should contain:

  • Username
  • Password
  • Setting for auto-fill password
  • Forgot password & help
Proposal 1:
Webinar Series40 UI Design 03.png

The environment is a Form screen. Username and password are filled via TextField and the Setting for auto-fill is done via a pop-up choice group. This proposal places Help and Forgot password under the Options menu. The login is done via the checkmark in Action Button #1


Proposal 2
Webinar Series40 UI Design 04.png

The environment is again a Form screen with 2 TextFields and 1 pop-up choice group. In addition, there is a StringItem formatted as a Button and a StringItem formatted as a hyperlink. There is no action in Action Button #1.


Discussion

The second proposal has everything available in the view, but it is not likely that it will work flawlessly with Touch & Type devices. However, since the additional elements in the view (Login button and Help hyperlink) are more prominent, it is expected to reduce interaction bumpers if the design is optimized for Full Touch.


Which component would you use to pick one of the following?

  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday


Proposal
Webinar Series40 UI Design 05.png

The pop-up choice group in a Form screen offers single selection out of a list. Also the exclusive choice group would have been a good choice. It depends on the environment. Usually collapsing UI elements are preferred if there are many different settings slots in a single view, whereas static UI components are usually preferred in case only few settings slots are available.

Please note, the LCDUI Tumbler (DateField) is not suitable for this task. It only can pick time and date, but no weekdays or any other values.


How would you replace a single choice item (aka switch)?

Webinar Series40 UI Design 06.png

You may find the following layout from a native application. Unfortunately, the single choice item is not available in the LCDUI.



Proposal
Webinar Series40 UI Design 07.png

The proposal is similar to the previous problem, except that the pop-up choice group contains only 2 items.

Another solution would be a multi selection choice group with only one item. Also an exclusive selection choice group with 2 items is possible to replace a switch. The choice depends in the end again from the environment:

  • pop-up choice group; best if used in a busy layout
  • multi selection choice group (1 item), if there is a clear on/off metaphor (e.g. radio on/off)
  • exclusive choice group if indicating the correct state is crucial, and on/off is not necessarily the right metaphor (e.g. dim light on/off vs. dimmed light – full light)


Which views can have a button? Are there any limitations?

Proposal

Webinar Series40 UI Design 08.png Webinar Series40 UI Design 09.png Webinar Series40 UI Design 10.png Webinar Series40 UI Design 11.png Webinar Series40 UI Design 12.png

  • Alerts can have 0 – 3 buttons. Position and layout are predefined.
  • StringItem in a Form screen can be dressed as a button or as a labeled button. It is only possible to show one button per row.
  • The CustomItem in Form screen can host a button or a button group.
  • The full screen canvas can contain buttons. The 4th image shows custom surround-shaped push-buttons with icons and with additional text below the push button. If the button is based on icons it is many times beneficial to add text explaining the action being mapped to the button.
  • A canvas with a custom toolbar, as shown in the 5th image. Do not place more than 5 items in a toolbar.


Open issues from Q/A

What happens with the keypad if BT keyboard is detected?

Regarding connecting a Bluetooth enabled device to a full touch series 40 and getting input from the BT device into a custom 3rd party Java application, the following rules apply:

  1. Direct connection of a BT device to a Java application is only possible if the BT device supports the Bluetooth Profiles that are coming with the JSR-82 (the Bluetooth API):
    • SDAP - Service Discovery Application Profile
    • RFCOMM - Serial Cable Emulation Protocol
    • L2CAP - Logical Link Control and Adaptation Protocol
    • OBEX - Generic Object Exchange Profile (GOEP) profile on top of RFCOMM and TCP
  2. The Virtual Keyboard API does not provide any editor functionality. It merely launches and controls the virtual keyboard provided by the platform on low level Canvas and GameCanvas Components and returns into the application the key that was pressed with the help of the keyPressed(int key) method. So theoretically, one can call remotely the keyPressed(int key) method directly with a value that matches the integer value of the key that is supposed to be pressed.


Can text be formatted, e.g. rich text formatting?

Regarding StringItem one can change the font. Fonts have three attributes: Style (bold/italic), size (large or small) and face (monospace, proportional and system). One cannot change the color of a StringItem.

It is not possible to format the text in TextBox screen.

Canvas allows free formatting.

If formatting is needed for certain components, please have look into LWUIT if this is suitable for you.

How is the image in an ImageItem being cropped in landscape orientation?

Here is the example image:

Webinar Series40 UI Design QA 01.png

When the Layout is set to LAYOUT_LEFT or LAYOUT_CENTER, this is the result in portrait mode:

Webinar Series40 UI Design QA 02.png Webinar Series40 UI Design QA 03.png


When the Layout is set to LAYOUT_LEFT or LAYOUT_CENTER, this is the result in landscape mode:

Webinar Series40 UI Design QA 04.png Webinar Series40 UI Design QA 05.png

The cropping matches the requested layout.


How can you do custom gestures yourself?

1. It is possible to use the existing gestures and build your custom gesture on top of it; here 2 examples:

  • if you want to make your application to sense a figure of "8" on your screen, use a "drag" gesture and use the x/y values for your pattern recognition
  • if you want to use triple touch, e.g. to mark the entire text, use 3 single taps for your gesture recognition

Tap drag and release can also be implemented outside the Gesture API, with the standard LCDUI low level Canvas components.

2. It is possible to use the sensor API to e.g. get direct x/y/z information of the phone. this way, you can e.g. sense the position changes of the phone to detect if the user is writing a figure of "8" into the air (with the phone in her hand). The phone can detect accelerations between -2g and +2g. Sensor API link will be added.


Is it possible to store a small amount of data?

Yes it is. The persistent storage is done via RMS (Record Management System):


Is there a support to use the text editor API with full key event handling?

Please check in the JDL:


Is it possible to create a choice group (ChoiceGroup) without a title and how would it look like?

Yes it is possible. All you need is to give an empty title (i.e. “”) in the constructor as follows:

mainForm = new Form("Simple ChoiceGroup");
cg = new ChoiceGroup("", ChoiceGroup.EXCLUSIVE);
cg.append("option 1", null);
cg.append("option 2", null);
cg.append("option 3", null);
mainForm.append(cg);
Display.getDisplay(this).setCurrent(mainForm);

You will get the following result:

Webinar Series40 UI Design QA 06.png


Webinar Series 40 Full Touch UI Style Guide, part 2, 10.07.2012 and 13.07.2012

Problems

How could these screens look in full touch?

Webinar Series40 UI Design 13.png Webinar Series40 UI Design 14.png


If Action Button 1 should be used for confirmation, how would you build a multi selction view?

Sketch a download dialog which shows the remaining amount of data.

Sketch a view

  • 2 categories
  • 3 primary actions related to the view, not a single item out of the view (sorted by priority)
    • call
    • add
    • edit
  • 3 secondary actions related to the view, not a single item out of the view (sorted by priority)
    • Share FB
    • Share TW
    • Share Reddit
  • Options menu
  • Use chrome
  • maximize the content area


How many touch elements fit the content area?

How many touch elements fit the the entire canvas?

Try your new knowledge and check the Asha Touch Competition 2012Q3

The competition page is here: Asha Touch Competition 2012Q3.

403 page views in the last 30 days.
×