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

Reply
Highlighted
Developer
Posts: 39
Registered: ‎11-22-2013
My Device: Z10
My Carrier: Mobily
Accepted Solution

Making a sheet transparent

Hey guys Smiley Happy

how are all today?

 

I'm trying to make a sheet transparent in my app, but i don't know how to do that.. i tried to make the parent container opacity to 0.5 but didn't work all i get is a black screen, i also tried to set the background to color.transperant but that also didn't work.. my idea is to make a sheet which appears when the app is opened to help new users on how the app works, and it's a little transperante to show where im pointing at.. here's what i get:

IMG_20140815_003726.png

 

here's an app from another developer, which is exactly what i want to do:

 

IMG_20140815_004317.png

 

here is the code

         Sheet {
                id: helpSheet
                Page {
                    Container {
                        layout: DockLayout {}
                        ImageView {
                            imageSource: "asset:///helpImg.PNG"
                            scalingMethod: ScalingMethod.Fill
                        }
                        Container {
                            layout: StackLayout {}    
                            verticalAlignment: VerticalAlignment.Bottom                    
                            Button {
                                text: "إغلاق"
                                horizontalAlignment: HorizontalAlignment.Right
                                onClicked: {
                                    helpSheet.close();
                                }
                            }
                         }

 

Developer
Posts: 828
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: Making a sheet transparent

If you used a dialog instead of a sheet you could have a transparent background.

Developer
Posts: 39
Registered: ‎11-22-2013
My Device: Z10
My Carrier: Mobily

Re: Making a sheet transparent

Worked just fine Smiley Happy .. thanks a lot Smiley Very Happy