Skip to content

smoothScrollToStep & scrollToStep are not working in onCreate ? #12

Description

@drmkraja

Thanks for the awesome library.
I'm having 10 steps in my app. Current layout only shows 4 steps. I'm assigning currentcount via onCreate(). But I tried smoothScrollToStep to 6. But it is not scrolling to 6th step...

        StatusViewScroller mStatus = findViewById(R.id.status);
        List<String> statusArray = Arrays.asList(getResources().getStringArray(R.array.indiv));
        mStatus.getStatusView().setStatusList(statusArray);
        mStatus.getStatusView().setStepCount(statusArray.size());
        mStatus.getStatusView().setCurrentCount(6);
        mStatus.smoothScrollToStep(6);

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