S60 Platform: Custom UI and Screen Rotation Example
This application demonstrates the key functionalities of the screen rotation, custom component handling,
status pane handling, and picture scaling on the S60 UI layer.
The user can insert text to the text display box (text field limit 20). When the physical size of the text reaches
the right edge of the text display box, the text display component cuts the text automatically.
Another custom component is rotate switch. It forces the application from portrait to landscape or vice versa.
The hardware screen rotation event is disabled after screen rotation made by user-initiated rotate event
(rotate command).
The user can alter the appearance of the status pane by using option menu commands Normal status
pane, Small status pane
, and No status pane. These option menu items are dynamically handled. Only
the small status pane is enabled in the landscape mode.
Use navigation up/down (portrait) and left/right (landscape) keys to change focus between the text display
box and rotate button. Select a different status pane mode from the options menu.
Features:
- 2 custom components (text display and rotate command)
- Status pane controlling
- Portrait and landscape support
- Text input
- Rotate command (application event)
- Scaled background image
• Status pane control
Figure 1: Normal status pane Figure 2: Small status pane
评论0