navigationMovement
http://supportforums.blackberry.com/t5/Java-Development/Tab-Navigation/m-p/381156
tab
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800508/How_To_-_Create_tabbed_view_screens.html?nodeid=1357482&vernum=0
ทำเลียนแบบ App World ต้องดูให้ได้
important
http://www.blackberry.com/DevMediaLibrary/view.do?name=HowToExtendManager
normal
http://www.blackberry.com/DevMediaLibrary/view.do?name=HowtoExtendtheScreen
http://www.blackberry.com/DevMediaLibrary/view.do?name=HowToExtendManager
normal
http://www.blackberry.com/DevMediaLibrary/view.do?
How To - Configure the BlackBerry MDS simulator to work behind a proxy
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800738/800792/801079/How_To_-_Configure_the_BlackBerry_MDS_simulator_to_work_behind_a_proxy.html?nodeid=800740&vernum=0
ทำ Manager กว้างคงที่
HorizontalFieldManager manager = new HorizontalFieldManager()
{
//define width
public int getPreferredWidth()
{
return Display.getWidth();
}
//define height
public int getPreferredHeight()
{
return 100;
}
protected void sublayout( int maxWidth, int maxHeight )
{
super.sublayout(getPreferredWidth(),
getPreferredHeight());
setExtent(getPreferredWidth(), getPreferredHeight());
}
};
public int getPreferredWidth() {
return getScreen().getWidth();
}
protected void sublayout( int maxWidth, int maxHeight ) {
super.sublayout(getPreferredWidth(),
maxHeight);
XYRect rec = getExtent();
setExtent(getPreferredWidth(), rec.height);
}
ทำ padding manager
A | B
------
C | D
http://supportforums.blackberry.com/t5/Java-Development/how-to-set-coordinates-width-and-height-for-a-Manager/td-p/276105
Chat Window Layout Manager
ที่มี scrollable area หลักข้างบน ข้างล่างเป็น fixed editable are
http://www.thinkingblackberry.com/archives/188
http://www.thinkingblackberry.com/archives/188
คำนวณความสูงของ Manager แบบ Dynamic
protected void sublayout(int width, int height) {
int numFields = getFieldCount();int availableHeight = height;
int totalHeight = 0;
for (int i = 0; i < field =" getField(i);">availableHeight -= field.getHeight;
totalHeight += field.getHeight();
}
setExtent(width, totalHeight);
}
ทำ rollover icon ใน BlackBerry
ใน 4.7 แค่ไปเซ็ตใน Properties ของ Project แต่ 4.6 หรือต่ำกว่าต้องทำตามข้างล่าง
http://www.miamicoder.com/post/2009/01/24/How-to-Set-a-Rollover-Icon-for-Your-BlackBerry-Application.aspx
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/796557/800738/800901/How_To_-_Setup_an_alternate_entry_point_for_my_application.html?nodeid=800820
http://www.miamicoder.com/post/2009/01/24/How-to-Set-a-Rollover-Icon-for-Your-BlackBerry-Application.aspx
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/796557/800738/800901/How_To_-_Setup_an_alternate_entry_point_for_my_application.html?nodeid=800820
สมัครสมาชิก:
ความคิดเห็น (Atom)