Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 06:47, 19 October 2007.

KIJ000767 - TextFields cannot be added to the same row in S60 applications by using MIDP 2.0 item shrinking layout directives

From Forum Nokia Wiki


ID KIJ000767 Creation date October 19, 2007
Platform S60 2nd and 3rd Editions Devices All S60 2nd and 3rd Edition devices
Category Java ME Subcategory MIDP 2.0


Description

According to the Forum Nokia document MIDP 2.0: Introduction, two TextFields can be shrinked to fit on the same row by using the required layout directives LAYOUT_SHRINK and LAYOUT_2 in devices supporting MIDP 2.0. However, when using the directives as defined in the document, TextFields will be placed on different rows.


How to reproduce

The problem can be reproduced by using the following example code as defined in the document MIDP 2.0: Introduction (Section 2.7.2, "Layouts"):

 private TextField tfAreacode; // Areacode
 private TextField tfNumber; // Phone number
 ...
 // Create text message and commands
 tfAreacode = new TextField("Phone:", null, 3, TextField.NUMERIC);
 tfAreacode.setLayout(Item.LAYOUT_SHRINK | Item.LAYOUT_2);
 tfNumber = new TextField(null, null, 7, TextField.NUMERIC);
 tfNumber.setLayout(Item.LAYOUT_SHRINK | Item.LAYOUT_2);

Solution

No known solution. Current S60 MIDP implementations ignore these directives and do not add more than one Item on the same row.

Related Discussions
Thread Thread Starter Forum Replies Last Post
Problem Using S60 MIDP SDK 1.2.1 maling666 Mobile Java Tools & SDKs 0 2004-06-21 18:52
Multiple lines in List romeokollar Mobile Java General 5 2004-12-07 02:59
Application crashing on Close(Debug) amitaggarwal General Symbian C++ 3 2004-07-20 07:41
tutorial applications for MIDP/series60? gandika Mobile Java General 0 2003-02-09 11:11
changing format of selected row in CAknSingleGraphicStyleListBox sunny_singh General Symbian C++ 5 2005-10-18 06:23
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX