Feature Request: ability to hide scroll bars, android notifications.

Hello,

I am more than positive you guys have gotten this request a million times, but we would like a feature to hide the scrollbar from the scrollView for both iOS and Android.

Also, We have a project coming up that would be great to have push notifications on the android platform.

Thank you for all of your hard work,

  • Happy Badger Studio [import]uid: 148686 topic_id: 31347 reply_id: 331347[/import]

You can already hide scrollBar’s on tableViews/scrollViews.

Please see the below updated documentation for instructions on how to do it :slight_smile:

http://docs.coronalabs.com/api/library/widget/newScrollView.html [import]uid: 84637 topic_id: 31347 reply_id: 125306[/import]

Thank you for the fast reply!
Maybe I am doing it wrong, but for me it does not get rid of the scroll bar.

I have tried hideScrollBar = true, scrollView.hideScrollBar = true, etc, but in my sim it still shows up!
[import]uid: 148686 topic_id: 31347 reply_id: 125319[/import]

What build of corona are you using? [import]uid: 84637 topic_id: 31347 reply_id: 125320[/import]

Version: 2.0.0
Build: 2012.922

The newest daily I believe. [import]uid: 148686 topic_id: 31347 reply_id: 125323[/import]

You can already hide scrollBar’s on tableViews/scrollViews.

Please see the below updated documentation for instructions on how to do it :slight_smile:

http://docs.coronalabs.com/api/library/widget/newScrollView.html [import]uid: 84637 topic_id: 31347 reply_id: 125306[/import]

Thank you for the fast reply!
Maybe I am doing it wrong, but for me it does not get rid of the scroll bar.

I have tried hideScrollBar = true, scrollView.hideScrollBar = true, etc, but in my sim it still shows up!
[import]uid: 148686 topic_id: 31347 reply_id: 125319[/import]

What build of corona are you using? [import]uid: 84637 topic_id: 31347 reply_id: 125320[/import]

Version: 2.0.0
Build: 2012.922

The newest daily I believe. [import]uid: 148686 topic_id: 31347 reply_id: 125323[/import]

Hey Ben,

Sorry for the delay in getting back to you.

Can you post up a snippet of how you are creating your tableView please? [import]uid: 84637 topic_id: 31347 reply_id: 125731[/import]

I literally use the code straight from the API’s example, lol.

local widget = require "widget"  
   
-- function to listen to scrollView events  
local function scrollViewListener( event )  
 local s = event.target -- reference to scrollView object  
   
 if event.type == "beganScroll" then  
 print( "beganScroll event type" )  
  
 elseif event.type == "endedScroll" then  
 print( "endedScroll event type" )  
   
 elseif event.type == "movingToTopLimit" then  
 print( "movingToTopLimit event type" )  
   
 elseif event.type == "movingToBottomLimit" then  
 print( "movingToBottomLimit event type" )  
   
 elseif event.type == "movingToLeftLimit" then  
 print( "movingToLeftLimit event type" )  
   
 elseif event.type == "movingToRightLimit" then  
 print( "movingToRightLimit event type" )  
 end  
end  
   
-- Create a new ScrollView widget:  
local scrollView = widget.newScrollView{  
 width = 320  
 height = 320,  
 scrollWidth = 768,  
 scrollHeight = 1024,  
 maskFile="mask-320x320.png",  
 listener = scrollViewListener  
}  

and then I have tried hiding the scrollbar like you suggested with the provided link. [import]uid: 148686 topic_id: 31347 reply_id: 125856[/import]

Hey Ben,

Sorry for the delay in getting back to you.

Can you post up a snippet of how you are creating your tableView please? [import]uid: 84637 topic_id: 31347 reply_id: 125731[/import]

I literally use the code straight from the API’s example, lol.

local widget = require "widget"  
   
-- function to listen to scrollView events  
local function scrollViewListener( event )  
 local s = event.target -- reference to scrollView object  
   
 if event.type == "beganScroll" then  
 print( "beganScroll event type" )  
  
 elseif event.type == "endedScroll" then  
 print( "endedScroll event type" )  
   
 elseif event.type == "movingToTopLimit" then  
 print( "movingToTopLimit event type" )  
   
 elseif event.type == "movingToBottomLimit" then  
 print( "movingToBottomLimit event type" )  
   
 elseif event.type == "movingToLeftLimit" then  
 print( "movingToLeftLimit event type" )  
   
 elseif event.type == "movingToRightLimit" then  
 print( "movingToRightLimit event type" )  
 end  
end  
   
-- Create a new ScrollView widget:  
local scrollView = widget.newScrollView{  
 width = 320  
 height = 320,  
 scrollWidth = 768,  
 scrollHeight = 1024,  
 maskFile="mask-320x320.png",  
 listener = scrollViewListener  
}  

and then I have tried hiding the scrollbar like you suggested with the provided link. [import]uid: 148686 topic_id: 31347 reply_id: 125856[/import]

I’m not sure if downloading a new daily build worked for me or it was just something else, but I was working on another project today and I used

scrollView.content.hideScrollBar = true  

and that did the trick for me, so I tried it in my other project, and it worked there too! Yay!

Weird thing is, that is one of the lines I tried before I posted this!

Oh well, it works and everything is wonderful in the world, Thank you for your time! :slight_smile:

  • Happy Badger Studio [import]uid: 148686 topic_id: 31347 reply_id: 126172[/import]

That is weird.

And to confirm this didn’t work for you?

-- Create a new ScrollView widget: local scrollView = widget.newScrollView{ width = 320 height = 320, scrollWidth = 768, scrollHeight = 1024, maskFile="mask-320x320.png", hideScrollBar = true, ------------------ That didn't hide the scrollBar for you? listener = scrollViewListener } [import]uid: 84637 topic_id: 31347 reply_id: 126190[/import]

Yes, that works for me now too. :slight_smile:

Thank you! [import]uid: 148686 topic_id: 31347 reply_id: 126245[/import]

I’m not sure if downloading a new daily build worked for me or it was just something else, but I was working on another project today and I used

scrollView.content.hideScrollBar = true  

and that did the trick for me, so I tried it in my other project, and it worked there too! Yay!

Weird thing is, that is one of the lines I tried before I posted this!

Oh well, it works and everything is wonderful in the world, Thank you for your time! :slight_smile:

  • Happy Badger Studio [import]uid: 148686 topic_id: 31347 reply_id: 126172[/import]

That is weird.

And to confirm this didn’t work for you?

-- Create a new ScrollView widget: local scrollView = widget.newScrollView{ width = 320 height = 320, scrollWidth = 768, scrollHeight = 1024, maskFile="mask-320x320.png", hideScrollBar = true, ------------------ That didn't hide the scrollBar for you? listener = scrollViewListener } [import]uid: 84637 topic_id: 31347 reply_id: 126190[/import]

Yes, that works for me now too. :slight_smile:

Thank you! [import]uid: 148686 topic_id: 31347 reply_id: 126245[/import]