//#style mainForm
Form frmMain = new Form("Form");
//#style leftItem
frmMain.append("Left");
//#style rightItem
frmMain.append("Right");
//#style defaultItem
frmMain.append("- I am huypv");
//#style defaultItem
frmMain.append("- I love codjng :x");
|
Style CSS - J2ME Polish - Left, Right Item |
File polish.css
title {
background-color: #ff00ff;
padding: 10;
layout: center | horizontal-expand;
font-style: bold;
}
.mainForm {
view-type: midp2;
padding-vertical: 10;
}
.leftItem {
font-color: red;
}
.rightItem {
layout: right | horizontal-expand;
font-color: blue;
}
.defaultItem {
layout: horizontal-expand;
margin-bottom: 5;
}