dlazaro66 / WheelIndicatorView

A 'Google Fit' like activity indicator for Android
Apache License 2.0
396 stars 64 forks source link

WheelIndicatorView not successfully displaying inside ScrollView #8

Open edwoollard opened 8 years ago

edwoollard commented 8 years ago

I intend to try and display a few WheelIndicatorViews below one another in a scrolling layout, however I can only manage to actually get one on the screen and even then it stops the layout scrolling. Here is the XML that I have used for my layout but just no luck:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:fillViewport="true">

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <com.dlazaro66.wheelindicatorview.WheelIndicatorView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/wheel_indicator_view"
            app:itemsLineWidth="13dp" />

        <com.dlazaro66.wheelindicatorview.WheelIndicatorView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/wheel_indicator_view2"
            app:itemsLineWidth="13dp" />

    </LinearLayout>
</ScrollView>