开发者

How to create ListField containing image and multilnes text in a row -- blackberry

开发者 https://www.devze.com 2023-04-04 09:07 出处:网络
I want to create ListField .In each row of Field i want to display image on the Right and text on the left.I am using the ListField and callback.The text and image is getting displayed but the text is

I want to create ListField .In each row of Field i want to display image on the Right and text on the left.I am using the ListField and callback.The text and image is getting displayed but the text is overwriting on the image and also if i change the order i.e image on left and text on the right then the text is g开发者_Python百科etting truncated and only a single line is coming where as the text is of multiple lines .So anyone could you please give an idea of how to proceed or way to do

thank you


Which OS version are you using? If you are using OS6 or higher, consider using a TableView(and associated TableModel and TableController) . Its DataTemplate feature allows you more control over the layout of each row.

If you still want to use a ListField then you should show the code you are having trouble with.


Check out the BlackBerry Advanced UI components here: http://supportforums.blackberry.com/t5/Java-Development/Implement-advanced-buttons-fields-and-managers/ta-p/488276

In particular check the ListStyleButtonField example.

Zip file containing Example BlackBerry Project:

http://supportforums.blackberry.com/rim/attachments/rim/java_dev@tkb/399/4/Advanced%20UI.zip

Once downloaded, do the following:

  • Extract the Advanced UI folder to your local machine
  • Open Eclipse and goto File->Import->Existing Project into workspace
  • Choose the Advanced UI folder as the root folder

The Advanced UI project will then be imported into Eclipse and you should be able to build and run the sample application on the BlackBerry simulator. Once you see how ListStyleButtonField works you can copy it into your project, or modify it to your specific requirements.

Note that you may have to set your compiler compliance level to 1.3 to get this working. Do this under Project Settings->Java Compiler

0

精彩评论

暂无评论...
验证码 换一张
取 消