Click here to Skip to main content
15,923,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted

use ScrollView

XML
<?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 layout
</ScrollView>
 
Share this answer
 
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.
 
Share this answer
 
XML
<?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">
 
Share this answer
 
Comments
Mfzc 16-Dec-13 15:20pm    
Vijay,
Have resolved your issue? I have the same problem. I have an ASP.net page with a listview wrapped in a panel. The scrolling works fine in all browsers windows and iPad but not on Android phones. Please let me know if you have a solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900