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 Member
jdwilks
Posts: 1
Registered: ‎10-17-2012
My Device: Dev Alpha B

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

BlackBerry Development Advisor
sabdelsayed
Posts: 249
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10

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

        }

    }

}

}

 

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker