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

Cascades Development

Reply
New Member
jdwilks
Posts: 1
Registered: ‎10-17-2012
My Carrier: Rogers

ScrollView - Remove scroll indicators

I need the ability to remove the scroll indicators on scrollviews.

 

ListView has the ability to remove the scroll indicators using scrollIndicatorMode and settings it using bb::cascades::smileyfrustrated:crollIndicatorMode::Type.

 

This functionality is not provided in the ScrollView.

 

Is there a way to remove the scroll indicators on scroll views or will this be provided in the next Beta release?

 

Thanks,

Josh

Please use plain text.
BlackBerry Development Advisor
sabdelsayed
Posts: 42
Registered: ‎08-17-2012
My Carrier: Rogers

Re: ScrollView - Remove scroll indicators

[ Edited ]

Hi jdwilks,

 

Thanks for your question!

 

There is currently no way to remove the scroll indictors in a scrollview. However, here are two workaround options you can try:

 

  1. You could skip the scrollView and write the touch and scroll handling yourself.
  2. Or make the scrollview larger than the screen so the scrollbars gets positioned outside the screen, i.e. something like:

Page {

Container {

    layout: AbsoluteLayout {

    }

    ScrollView {

        scrollViewProperties.scrollMode: ScrollMode.Both

        layoutProperties: AbsoluteLayoutProperties {

            positionY: -20

            positionX: 20

        }

        translationX: -20

        preferredWidth: 768 + 20

        preferredHeight: 1280 + 20

        ImageView {

            imageSource: "asset:///images/myimage.png"

            preferredHeight: 5000

            preferredWidth: 5000

        }

    }

}

}

 

If this reply has answered your question, please accept as solution!

Samar

Please use plain text.