隐藏滚动视图棍机器人 [英] hide scrollview stick android

查看:113
本文介绍了隐藏滚动视图棍机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个应用程序中,我需要使用滚动视图。但我并不需要滚动棒出现在屏幕上。我怎样才能做到这一点?请确保滚动功能的作品。

I have built an app in which i need to use scroll-view. But i don't need the scroll stick to appear on screen. How can i do that? Please make sure scroll functionality works.

推荐答案

在java中添加此code

in java add this code

myScrollView.setVerticalScrollBarEnabled(false);
myScrollView.setHorizontalScrollBarEnabled(false);

在XML中添加下列属性的滚动型

in xml add following attribute to your ScrollView

android:scrollbars="none"

像这样

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/mainScroll"
android:scrollbars="none" <!-- line to be added -->
>

这篇关于隐藏滚动视图棍机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆