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

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Regular Contributor
Posts: 75
Registered: ‎11-30-2012
My Device: curve
My Carrier: airtel

Header item

Can we remove the blue border in the Header item in QML.

Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: Header item

Where is the blue border? May you attach a screenshot?




p(^_^)q
Good good study, day day up
Regular Contributor
Posts: 75
Registered: ‎11-30-2012
My Device: curve
My Carrier: airtel

Re: Header item

Developer
Posts: 230
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: Header item

He means that blue border

https://developer.blackberry.com/cascades/reference/bb__cascades__header.html

 

It doesn't look like it's possible. Maybe you can create your own customcomponent?

https://developer.blackberry.com/cascades/documentation/ui/custom_components/index.html

______________________________________________________
BB10-OAuth: GitHub
Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: Header item

[ Edited ]

OK. I got it. I also asked the same question as before. You can customize the header item.

 

See my code, you can change into any layout. please ignore my detail implementaion.

ListItemComponent {
                        type: "header"
                        Container {
                            background: Color.create("#ffffff")  //it is very important
                            leftPadding: 0
                            topPadding: 0
                            rightPadding: 0
                            bottomPadding: 0
                            preferredWidth: 768
                            preferredHeight: 66

                            layout: AbsoluteLayout {
                            }
                            ImageView {
                                objectName: "groupheader"
                                imageSource: "asset:///images/subtitle_background.png"
                                layoutProperties: AbsoluteLayoutProperties {
                                    positionX: 0
                                    positionY: 0
                                }
                                preferredWidth: 768
                                preferredHeight: 66
                            }
                            Label {
                                text: if (ListItemData != undefined) ListItemData

                                // Apply a text style to create a large, bold font with
                                // a specific color
                                textStyle {
                                    fontSize: FontSize.PointValue
                                    fontSizeValue: 10
                                    fontFamily: "Roboto"
                                    fontWeight: FontWeight.Normal
                                    color: Color.create("#ffffff")
                                }
                                layoutProperties: AbsoluteLayoutProperties {
                                    positionX: 30
                                    positionY: 0
                                }
                            }
                            Divider {
                                layoutProperties: AbsoluteLayoutProperties {
                                    positionX: 0
                                    positionY: 66
                                }
                            }
                        }

 also need implement the function itemType

 

function itemType(data, indexPath) {
                    if (indexPath.length == 1) {
                        return 'header';
                    } else {
                        return 'textItem'
                    }
                }

 




p(^_^)q
Good good study, day day up
Regular Contributor
Posts: 75
Registered: ‎11-30-2012
My Device: curve
My Carrier: airtel

Re: Header item

Thanks for the response, will try this code.