BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-06-2010, 07:12 AM   #1 (permalink)
New Member
 
Join Date: Feb 2008
Model: Curve
PIN: N/A
Carrier: airtel
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default UI Painting Issue

Please Login to Remove!

Hi Friends,

I am working on one application which retrieves following or followers of any user at twitter.com.

For each request I get near about 100 followers or following.

I have created one field which display user's icon and user's name.

I have one vertical Manager in which I wanted to add all 100 fields in it.

I am using following code.

Application.Main.invokeLater(new Runnable()
{

public void run()
{
for(int i=0; i<100; i++)
{
vertificalFieldManager.add(new UserField(name,icon));
invalidate();
}

}
});


But the above code is not repainting the screen. (Screen has been already pushed )

IS there any body who can help me?


Regards,
Ashish
Offline  
Old 02-08-2010, 01:38 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2009
Model: 8800
PIN: N/A
Carrier: Airtel
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please check that you are adding the field to correct manager. Add the fields to the main manager, using mainScreenObject.getMainManager().add(Field).
Offline  
Old 02-08-2010, 07:48 AM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Also make sure these fields are focusable.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.