Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
ravi1989
Posts: 740
Registered: ‎07-21-2012
My Carrier: 0
Accepted Solution

suggest me how to make this type of view

Assignment.jpg

 

Hello 

can you please help me , how to make this type of view.i cann't understant it a list or simple label.

 

if it is lable for to make alternake row of different color or how to make text color pink .

 

if this is list i want to ask Header of llist and how make this type of list..

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: suggest me how to make this type of view

i would suggest a listfield for the data, and labels with background for the headers.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
ravi1989
Posts: 740
Registered: ‎07-21-2012
My Carrier: 0

Re: suggest me how to make this type of view

How to make this 2 header (provisional status FMS) and list field having same width less than the device width and uper header(assignment)?

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: suggest me how to make this type of view

you can use Device.getWidth to get the available width, and subtract from that for your layout.
Without using a custom layout you can use setMargin on the inner manager to add a space on the left and right side of it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
peter_strange
Posts: 17,719
Registered: ‎07-14-2008

Re: suggest me how to make this type of view

Please use plain text.
Developer
ravi1989
Posts: 740
Registered: ‎07-21-2012
My Carrier: 0

Re: suggest me how to make this type of view

can you right some code of line to do that task.? to do this

 

you can use Device.getWidth to get the available width, and subtract from that for your layout.
Without using a custom layout you can use setMargin on the inner manager to add a space on the left and right side of it.

 

Thanks

Please use plain text.
Developer
peter_strange
Posts: 17,719
Registered: ‎07-14-2008

Re: suggest me how to make this type of view

Your screen as a number of different Fields on it.  I suggest you focus on one Field at a time.  Which Field specifically do you want to start with?

Please use plain text.
Developer
ravi1989
Posts: 740
Registered: ‎07-21-2012
My Carrier: 0

Re: suggest me how to make this type of view

Hello 

 

i made a top header (first green ) .Problem in second header having (second green  one)and the list field headher 

which have width less than the device width , .

 

 

Thanks

Please use plain text.
Developer
peter_strange
Posts: 17,719
Registered: ‎07-14-2008

Re: suggest me how to make this type of view

Put your second header and the ListField in a VerticalFieldManager, and set the VerticalFieldManager to have top and left and right margins, to:

a) provide the space around the edge

b) restrict the width of your Header Field.

 

You should then be able to define your header to 'USE_ALL_WIDTH'.

 

The ListField will automatically use the whole width.  You should make sure in your drawListRow that you use the width supplied to that method and NOT the Display width, 

Please use plain text.
Developer
ravi1989
Posts: 740
Registered: ‎07-21-2012
My Carrier: 0

Re: suggest me how to make this type of view

But there is one more header in between second header and the ListField(white 1).

 

Ok i will try .After that i will tell you

 

Thanks

Please use plain text.