Can't get scroll chart


#1

Hello,

i’m pretty new in use of shinobi chart. Currently i’m try to design a layout that contains a chart. The layout contains serveral other elements and so i added a scrollview to manage all correctly… but the scroll seems not working… my layout is

<?xml version=“1.0” encoding=“utf-8”?>
<LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android
    android:id="@+id/box_container"
    android:layout_width=“match_parent”
    android:layout_height=“match_parent”
    android:orientation=“vertical” >

    <LinearLayout
        android:id="@+id/box_title_container"
        android:layout_width=“match_parent”
        android:layout_height=“wrap_content”
        android:orientation=“horizontal” >

        <TextView
            android:id="@+id/box_title_view"
            android:layout_width=“fill_parent”
            android:layout_height=“wrap_content”
            android:text=“Titolo” />

        <ImageButton
            android:id="@+id/box_title_button"
            android:layout_width=“wrap_content”
            android:layout_height=“wrap_content”
            android:src="@drawable/dettaglio" />

    </LinearLayout>
    <ScrollView
        android:id="@+id/fragment_detaill_scroll_view"
        android:layout_width=“match_parent”
        android:layout_height=“match_parent”
        android:fillViewport=“true” >
       
        <LinearLayout
            android:id="@+id/box_body_container"
            android:layout_width=“match_parent”
            android:layout_height=“match_parent”
            android:orientation=“vertical” >
   
            <LinearLayout
                android:id="@+id/chart_container"
                android:layout_width=“wrap_content”
                android:layout_height=“wrap_content”
                android:orientation=“vertical” >
   
                <fragment
                    android:id="@+id/chart_fragment"
                    android:name=“com.shinobicontrols.charts.ChartFragment”
                    android:layout_width=“wrap_content”
                    android:layout_height=“wrap_content”/>
   
            </LinearLayout>
   
            <LinearLayout
                android:id="@+id/chart_controls"
                android:layout_width=“match_parent”
                android:layout_height=“fill_parent”
                android:orientation=“vertical” >
   
                <ListView
                    android:id="@+id/lvImageList"
                    android:layout_width=“match_parent”
                    android:layout_height=“wrap_content” >
                </ListView>
   
            </LinearLayout>
   
        </LinearLayout>
    </ScrollView>
</LinearLayout>

The effect is all is visible and untils the chart, which is visible itself but the listview under the chart no. I tried to scroll down the chart but i can’t get it working. Someone can help me?


#2

Hi.

Can you please confirm - are you saying that you cannot perform a pan (scroll) gesture on the chart itself (for example to pan along your data series) or that you cannot perform a pan (scroll) gesture on the ScrollView itself (for example to make other UI components visible, such as a Button)?

Do you have gestures enabled on your chart’s axes?

Thanks,

Kai