BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-06-2010, 08: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, 02: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, 08: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  




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