Archived:TextFields cannot be added to the same row using MIDP 2.0 item shrinking layout directives in S60 (Known Issue)
According to the Nokia Developer 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);
No known solution. Current S60 MIDP implementations ignore these directives and do not add more than one Item on the same row.