EyelidFieldManager with the combination of RichList but RichList is not displayed correctly
Hi all
I'm putting a RichList inside an EyelidFieldManager, but for some reason, RichList do not appear correctly. I use 6.0 SDK and Eclipse. To illustrate the problem, I created a hybrid project of EyelidFieldManagerDemo an example of RichList quick reference guide. I created a new VerticalFieldManager. Then I'm building RichList inside VerticalFieldManager. After that, I added VerticalFieldManager to the absolute position in EyelidFieldManager. As a result, RichList does not appear, but screen shows a thin line. Screenshot of the app is attached, and the code is as follows:
public final class EyelidFieldDemo extends UiApplication{ public static void main(String[] args) { UiApplication app = new EyelidFieldDemo(); app.enterEventDispatcher(); } public EyelidFieldDemo() { pushScreen(new EyelidFieldDemoScreen()); } public final class EyelidFieldDemoScreen extends MainScreen { private EyelidFieldManager _eyelidFieldManager; /** * Creates a new EyelidFieldDemoScreen object */ public EyelidFieldDemoScreen() { super(NO_VERTICAL_SCROLL); _eyelidFieldManager = new EyelidFieldManager(); // Change the display time from the default 1.2s _eyelidFieldManager.setEyelidDisplayTime(2000); // Build Rich List and add it to VerticalFieldManager VerticalFieldManager vfm = new VerticalFieldManager(USE_ALL_HEIGHT | USE_ALL_WIDTH); vfm.add(new LabelField("Rich List Of BlackBerry Devices Below")); RichList list = new RichList(vfm, true, 2, 1); Bitmap bitmap1 = Bitmap.getBitmapResource("9500.png"); Bitmap bitmap2 = Bitmap.getBitmapResource("9000.png"); list.add(new Object[] {bitmap1, "Device 1", "BlackBerry Smartphone 9500", "Description of Device 1."}); list.add(new Object[] {bitmap2, "Device 2", "BlackBerry Smartphome 9000", "Description of Device 2."}); _eyelidFieldManager.add(vfm, 0, 0); // Create Toolbar and add it to the bottom of eyelid ToolbarManager toolbarMan = new ToolbarManager(); Image img = getImage("home.png"); StringProvider title = new StringProvider("Home"); ToolbarButtonField toolbarButton = new ToolbarButtonField(img, title); toolbarMan.add(toolbarButton); img = getImage("music.png"); title = new StringProvider("Music"); toolbarButton = new ToolbarButtonField(img, title); toolbarMan.add(toolbarButton); _eyelidFieldManager.addBottom(toolbarMan); add(_eyelidFieldManager); // Disable virtual keyboard so it doesn't obscure bottom eyelid VirtualKeyboard keyboard = getVirtualKeyboard(); if( keyboard != null ) { keyboard.setVisibility(VirtualKeyboard.IGNORE); } } /** * @see MainScreen#onSavePrompt() */ public boolean onSavePrompt() { // Suppress the save dialog return true; } } private static EncodedImage getEncodedImage(String name) { return EncodedImage.getEncodedImageResource(name); } private static Image getImage(String name) { return ImageFactory.createImage(getEncodedImage(name)); }}
I'll play with this combination of fields. Will post some results more than little time, and I am looking forward to any suggestions and ideas. Thank you very much!
Figured this out extending from VerticalFieldManager and substituting sublayout (int maxWidth, maxHeight int)
Looks like I have 'expand' manually VerticalFieldManager to get RichText will display correctly.
Here is the screenshot of n work code of the result screen:
public final class EyelidFieldDemo extends UiApplication { public static void main(String[] args) { UiApplication app = new EyelidFieldDemo(); app.enterEventDispatcher(); } public EyelidFieldDemo() { pushScreen(new EyelidFieldDemoScreen()); } public final class EyelidFieldDemoScreen extends MainScreen { private EyelidFieldManager _eyelidFieldManager; /** * Creates a new EyelidFieldDemoScreen object */ public EyelidFieldDemoScreen() { super(NO_VERTICAL_SCROLL); _eyelidFieldManager = new EyelidFieldManager(); // Change the display time from the default 1.2s _eyelidFieldManager.setEyelidDisplayTime(2000); // Build Rich List and add it to VerticalFieldManager MyRichListWrapper wrapper = new MyRichListWrapper(); wrapper.add(new LabelField("Rich List Of BlackBerry Devices Below")); RichList list = new RichList(wrapper, true, 2, 1); Bitmap bitmap1 = Bitmap.getBitmapResource("9500.png"); Bitmap bitmap2 = Bitmap.getBitmapResource("9000.png"); list.add(new Object[] {bitmap1, "Device 1", "BlackBerry Smartphone 9500", "Description of Device 1."}); list.add(new Object[] {bitmap2, "Device 2", "BlackBerry Smartphome 9000", "Description of Device 2."}); list.add(new Object[] {bitmap1, "Device 1", "BlackBerry Smartphone 9500", "Description of Device 1."}); list.add(new Object[] {bitmap2, "Device 2", "BlackBerry Smartphome 9000", "Description of Device 2."}); list.add(new Object[] {bitmap1, "Device 1", "BlackBerry Smartphone 9500", "Description of Device 1."}); list.add(new Object[] {bitmap2, "Device 2", "BlackBerry Smartphome 9000", "Description of Device 2."}); list.add(new Object[] {bitmap1, "Device 1", "BlackBerry Smartphone 9500", "Description of Device 1."}); list.add(new Object[] {bitmap2, "Device 2", "BlackBerry Smartphome 9000", "Description of Device 2."}); list.add(new Object[] {bitmap1, "Device 1", "BlackBerry Smartphone 9500", "Description of Device 1."}); list.add(new Object[] {bitmap2, "Device 2", "BlackBerry Smartphome 9000", "Description of Device 2."}); list.add(new Object[] {bitmap1, "Device 1", "BlackBerry Smartphone 9500", "Description of Device 1."}); list.add(new Object[] {bitmap2, "Device 2", "BlackBerry Smartphome 9000", "Description of Device 2."}); list.add(new Object[] {bitmap1, "Device 1", "BlackBerry Smartphone 9500", "Description of Device 1."}); list.add(new Object[] {bitmap2, "Device 2", "BlackBerry Smartphome 9000", "Description of Device 2."}); list.add(new Object[] {bitmap1, "Device 1", "BlackBerry Smartphone 9500", "Description of Device 1."}); list.add(new Object[] {bitmap2, "Device 2", "BlackBerry Smartphome 9000", "Description of Device 2."}); _eyelidFieldManager.add(wrapper, 0, 0); // Create Toolbar and add it to the bottom of eyelid ToolbarManager toolbarMan = new ToolbarManager(); Image img = getImage("home.png"); StringProvider title = new StringProvider("Home"); ToolbarButtonField toolbarButton = new ToolbarButtonField(img, title); toolbarMan.add(toolbarButton); img = getImage("music.png"); title = new StringProvider("Music"); toolbarButton = new ToolbarButtonField(img, title); toolbarMan.add(toolbarButton); _eyelidFieldManager.addBottom(toolbarMan); add(_eyelidFieldManager); // Disable virtual keyboard so it doesn't obscure bottom eyelid VirtualKeyboard keyboard = getVirtualKeyboard(); if( keyboard != null ) { keyboard.setVisibility(VirtualKeyboard.IGNORE); } } /** * @see MainScreen#onSavePrompt() */ public boolean onSavePrompt() { // Suppress the save dialog return true; } } public class MyRichListWrapper extends VerticalFieldManager { public MyRichListWrapper () { super(); } protected void sublayout(int maxWidth, int maxHeight) { super.sublayout(Display.getWidth(), Display.getHeight()); } } private static EncodedImage getEncodedImage(String name) { return EncodedImage.getEncodedImageResource(name); } private static Image getImage(String name) { return ImageFactory.createImage(getEncodedImage(name)); } }
Tags: BlackBerry Developers
Similar Questions
-
I bought photoshop CS5 in 2011 and my laptop crashed and I bought a new one and had to re install the program. How can I do that I have my original email with the confirmation number ETC, but it does not appear on my order history?
Download from products of CS5 download
Install and enter your serial number.
-
Original title:
The window server
Hi all
I recently installed an application on my Remote Desktop server.The result is that when I logged on and launch the application from the opening screen of the application is its double a is not displayed correctly.Can helpServer is 2008-r2The client is windows 7 rdp 7.1Thank youThis issue is beyond the scope of this site and must be placed on Technet or MSDN
-
I just downloaded Firefox 4.01 but it does not display correctly.
I tried to upgrade Firefox 3.6.7 to Firefox 4.01 but when update is finished, the browser does not display correctly there is for example no address bar. Here is a screenshot: http://i.imgur.com/zBujK.jpg.
I've downgraded to 3.6.17 and then installed Firefox 4.01 again but this does not solve the problem, or don't leave the browser and entering again or restart the computer.
Try:
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.com/kb/safe+mode
If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.
- Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
- Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
-
Suddenly new bug in my Photoshop CC 2015. It is a few days, he has begun to allow me to choose "open file", select a RAW file in my picture folder, click Open and then he shows me a different photo in RAW, but with the correct file name. That's happened? I changed nothing in the month and work on files Nikon or Canon RAW almost every day... that is something new that I need to find a patch or something that I am on... Help!
Hi Modernmatt,
I suggest you contact adobe support chat
Please click on the link below-
Concerning
Rohit
-
I did the text in a version of the phone in a greater than the desktop version font size. But some will have to expand more. I was hoping it would be possible, because when you are viewing a version of office on the phone. Is it not a Muse capacity?
As I passed by Muse 'sites of the day', most of the sites were not extensible on the phone. However, themarketaustin.com and movingcolour.tv are extensible. What is the trick to this? I have a disappointed client who was expecting this ability.
The problem came from the menu bar in the masterpage.
When I remove it... Zoom/sleeve is available.
A menu made from the ToolTip widget is currently working with zoom/sleeve.
A "blank publication" widget is currently serving as a set menu.Although I have not tested carefully, I believe that the problem came from some "scrolling attributes" applied to the menu rest of the desktop version...
-
box work but gadgets are not displayed correctly
original title: in the sidebar, but gadgets don't work does not correctly
I had Kaspersky, but deleted and added AVG as an antivirus. After that, my gadgets will not work. Through the forums and found one that has the same problem occurred. I downloaded the file is reset gadget and it ran as administrator. Then I restarted my computer and tried to add gadgets to the Sidebar again but, it's same thing. The watch is black with red hands showing no tool to switch to another type of clock and the exact time. When you add another gadget to the sidebar, it shows a small white box with no information. When I put the thread to the top of news he had this white area with an 'I' at the top left
corner. I ran difficulty it for me for the sidebar and that no longer works. Is the only way a system restore? I don't know how far back to go with a system restore, and will I have to removed Kaspersky and add all AVG?Hello
Have you tried the steps in my previous answer?
I suggest you try the procedure described in Microsoft article I provided in my previous answer. Don't try not to the steps in the section of Windows, the steps features only apply to Windows 7 and may not work with Windows Vista.
And also try to start check and scan if tool (SFC) System File Checker can help.
How to use the tool File Checker system to troubleshoot missing or corrupted on Windows Vista system files: http://support.microsoft.com/kb/929833
Hope the information is useful.
-
Open a session with the status of administrator but windows update denies - 0x8ddd0002 error
I connect with the status of administrator, but windows update said I am not an administrator and refuse updates.
Hello
Were there any changes made to your computer before this problem?
Perform the steps mentioned in the link checking if this is useful:
You receive an error message 'Administrators' only when you try to visit the Windows Update Web site or the Microsoft Update Web site
http://support.Microsoft.com/kb/316524
Note: Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
How to back up and restore the registry in Windows
http://support.Microsoft.com/kb/322756/
I hope this helps.
-
My jobs eprint will be rejected with the invalid sender. But the sender is an email address, I finally used in February without problem. I tried to remove the address, record and create again. No difference.
If I leave everything to send to my printer, it works. But I'm not interested, so I changed it back, and I get the same error again.
Someone at - it s\u0026 this?Hello Kim62,
The only way I know to do this is to pass the senders allowed in all and leave it there. If you are worried that this will violate your security, I understand, but something to keep in mind is that the only people who know the e-mail address of printers are people you trust give enough for him too. If I hear another way to get around this, I'll post here for you.
-
Original title: recovery of original windows 8
When I bought the new device, it was loaded with windows 8 but a few days before my hard drive has been corrupted and replaced it with the new hard drive but could not get the real Windows back 8.
Please help me to get my windows genuine 8 back so I could get additional updates downloaded.
Hello Vishal,
Welcome to the Microsoft community. I appreciate your efforts to resolve the issue. I will certainly help you with the problem you are experiencing.
If you purchased a computer with installed OEM Windows 8 on it, there could be a sticker on the Tower, or in the back (in the case of a laptop) with the product key to this topic. If there is no sticker, he can be preinstalled on your system BIOS.
See the suggestions posted by Andre Da Costa replied on March 7, 2013.
In addition to this, see:
Product key lost or misplaced (certificate of authenticity) for Windows
If the problem persists, you can contact the manufacturer of the hardware for the same thing and check.
Hope this information was useful.
-
I have a Mac and added the DNP DS80 printer but it will not let me print. He said "the size selected is not compatible with the installed support." All the answers for this?
Refer to the discussion: Lightroom v4, v5, v6 Will not print to a DS40 printer
Kind regards
Mohit
-
page every time I try to download a free trial version for the sequels, I get to the legacy that when I click on free trial he always says we know the atm problem but its nothing to with the wifi is good, but its unique every time Please HELP
You MUST have a 64-bit computer and operating system... What is your computer?
-Programs are supposed TO not view or download if they are not installed on your computer
MINIMUM for After Effects and Premiere Pro http://helpx.adobe.com/premiere-pro/system-requirements.html
-
I paid for a year with the full creative cloud but couldn't findthe program to download
To start https://helpx.adobe.com/creative-cloud.html the Cloud
-Installation, update or uninstall and launching after installation
-
Since the update of my pc based system with 10 windows and install the last Prime Minister CC when I drag a clip on the timeline audio does not come with it. I can hear audio playback in the preview window of small file so the audio is there, but it does not appear or play on the timeline. I can drag an audio file of Ms on the timeline, but I need audio from my original file to synchronize my audio file recorded independently - used to be no problem... any ideas what I can not edit now?
Hi Neil,
Drag / drop may not work if you don't have any enabl; e source patch or did not target the track for the same thing.
https://helpx.Adobe.com/Premiere-Pro/using/source-patching-track-targetting.html
Vinay
-
Equium M40X: I get to the banner of Toshiba, but Windows does not start
When I start my 2 year old Toshiba Satellite M40X, I get to the banner of Toshiba, but Windows does not start. I tried using the recovery CD and it does not either.
Any suggestions as to what could be the problem?
Hello
What do you mean with the banner of Toshiba? Did you mean the Toshiba splash screen that appears at the begging of the boot?
Equium M40X successfully passed this screen?
If the laptop is unable to switch to the home Toshiba screen then I presume that the BIOS has detected a hardware problem.
In this case primarily the motherboard failsBut if the laptop is able to spend the Toshiba start screen, the motherboard must be ok and only a 3rd device malfunction as HARD drive could cause this problem.
Try to study a little
Maybe you are looking for
-
FPGA Express PID vs Custom PID behaves differently? Whats is wrong
Hi all I try to use labview FPGA Express VI in my application with cRIO 9022. I write a custom PID and compare the result with the FPGA palette express PID. It seems that the integral action on the express PID is too large. I am using PID as a simple
-
Changing result data Access to SQL Server database
For many years, we have worked with the Access databases.Now, we started with SQL-Server.We only have a UutResultTable and a StepResultTable(because we have already started with TestStand 1.02). We have worked with integers as Primarykey (UutResultId
-
Hello In my home network, I have two routers connected LAN - LAN mode. My main router (not a Linksys router) is connected to the ISP by modem and my secondary router, which is a Linksys wrt54g, connected to the main router with wired connection. I fo
-
100% CPU usage without a lot of programs running windows 7
Hi all I have a WIndows 7 Home Premium 32 bit OS on a HP probook 4320 s (processor Intel i3, 3 GB of RAM). I have a problem that even if I have no major program (basic prograps such as winamp, freecell, 2-3 tabs in firefox/chrome, McAfee AV), to the
-
I left my laptop (HP TouchSmart tx2) in the car during the night and it froze, literally. It lights (or even try to). He has been inside, in my office for a little more than an hour now. I'll let you rest more at room temperature. But if she still wo