Skip to content

WheelIndicatorView not successfully displaying inside ScrollView #8

Description

@edwoollard

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions