开发者

Hide Scrollbars on activity start

I've come with an issue that don't know how to solve.

The problem is that I want to hide the scrollbars when the activity starts. If you look at them, when you launch the activity they're visible and then they fade out until you begin scrolling. That's ok. But I don't want them to show when the activity is launched either开发者_开发百科.

Do you know if this is possible? Thanks


you want them to be hidden ?? or animated (fadeIn ) when you launch your activity ?

you can use this to animate ScrollViews :

AlphaAnimation fadeInScroll = new AlphaAnimation(0.0f,1.0f);
fadeInScroll.setDuration(1200);
fadeInScroll.setFillAfter(true);
myScrollView.startAnimation(fadeInScroll);

And if you want to Hide them , use :

myScrollView.setVisibility(View.GONE);

Hope it helps :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜