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.

inside custom component

Java Development

Reply
Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810
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..

Developer
Posts: 16,580
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

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
Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

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)?

Developer
Posts: 16,580
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

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
Developer
Posts: 19,612
Registered: ‎07-14-2008
My Device: Not Specified

Re: suggest me how to make this type of view

Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

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

Developer
Posts: 19,612
Registered: ‎07-14-2008
My Device: Not Specified

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?

Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

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

Developer
Posts: 19,612
Registered: ‎07-14-2008
My Device: Not Specified

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, 

Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

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