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
New Developer
Posts: 8
Registered: ‎11-12-2012
My Device: 9000
My Carrier: Simulator

ScrollView in absolute layout ???

[ Edited ]

I don't know how to use ScrollView in Absolute layout. can anyone help me?

Developer
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: ScrollView in absolute layout ???

For scrollviews it helps to set a preferred height and/or width. What problems are you having?

Scott

New Developer
Posts: 8
Registered: ‎11-12-2012
My Device: 9000
My Carrier: Simulator

Re: ScrollView in absolute layout ???

[ Edited ]

No. I am using TabbedPane for my app

TabbedPane {
    Tab {
		id: tab1
			 Page {
				 id: tab1_page   
					 Container {
						 id:container1
						layout: AbsoluteLayout {       
						  }
						ScrollView {
					scrollViewProperties.scrollMode: ScrollMode.Vertical
					layoutProperties: AbsoluteLayoutProperties {
							positionY: -20
							positionX: 20
							}
								translationX: -20
								preferredWidth: 768 + 20
								preferredHeight: 1280 + 20
						}
					}
			}
	}
}

 I try to use ScrollView but it does not work

Developer
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: ScrollView in absolute layout ???

You need to be more specific about the problem you are having. "It does not work" is too vague.
New Developer
Posts: 8
Registered: ‎11-12-2012
My Device: 9000
My Carrier: Simulator

Re: ScrollView in absolute layout ???

It mean my app working normally without ScrollView. And when I add ScrollView, ScrollView not working but my app still work
Developer
Posts: 660
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

Re: ScrollView in absolute layout ???

"ScrollView not working but my app still work" as in... it's all layed out but does not scroll?

----------------------------------------------------------
Twitter: @gyubok
New Developer
Posts: 8
Registered: ‎11-12-2012
My Device: 9000
My Carrier: Simulator

Re: ScrollView in absolute layout ???

yes. it does not scroll

Developer
Posts: 660
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

Re: ScrollView in absolute layout ???

I just ran your code and it scrolls perfectly. I'm not sure what you're having problem with. Also, what's up with all those positions?

----------------------------------------------------------
Twitter: @gyubok
Developer
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: ScrollView in absolute layout ???

You need to out content inside the scrollview. There is no content therefore no scrolling.
Developer
Posts: 660
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

Re: ScrollView in absolute layout ???

What do you mean "out content"?

----------------------------------------------------------
Twitter: @gyubok