Android移动版上面板控件的滚动问题 [英] Scrolling problem with panel control on Android mobile

查看:66
本文介绍了Android移动版上面板控件的滚动问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有面板控件,其中包含复选框列表,并且设置了滚动条:Vertical,在所有浏览器上都可以正常使用,iPhone(两指滚动)也可以,

我在android mobile上遇到问题,我根本无法滚动内容.

请为此提出一个解决方案.

Hello All,

I have panel control which contain check box list in it and I have set scrollbars:Vertical , It is working fine on all browser,iPhone(two finger scroll) also,

I have problem with android mobile where I am unable scroll the content at all.

Please suggest a solution for this.

推荐答案

使用ScrollView

use ScrollView

<?xml version="1.0" encoding="utf-8"?>
<ScrollView

xmlns:android="http://schemas.android.com/apk/res/android"

        android:layout_width="fill_parent"

        android:layout_height="fill_parent"

        android:isScrollContainer="true"

        android:scrollbarAlwaysDrawVerticalTrack="true"

        android:scrollbarStyle="outsideInset"

        android:scrollbars="vertical">


..... listview布局


..... listview layout

</ScrollView>


主活动不能包含具有滚动功能的布局.如果您使用的是列表视图,则无需使用滚动视图.如果您在滚动视图中使用过列表视图,它将不会启用滚动视图的滚动条.
A main activity can not contain the layouts that are having facility of scroll. If you are using the listview then no need to use scrollview. It will not enable scrollbar of scrollview if you had used listview in scrollview.


<?xml version="1.0" encoding="utf-8"?>
<ScrollView

xmlns:android="http://schemas.android.com/apk/res/android"

        android:layout_width="fill_parent"

        android:layout_height="fill_parent"

        android:isScrollContainer="true"

        android:scrollbarAlwaysDrawVerticalTrack="true"

        android:scrollbarStyle="outsideInset"

        android:scrollbars="vertical">


这篇关于Android移动版上面板控件的滚动问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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