Git Product home page Git Product logo

android-stepsview's Introduction

Hi there, I am Anton 👋

Welcome to my profile. Most of my public repo are all about Android.

Anton T| Twitter Linkedin

Languanges & Tools



Anton's github stats

android-stepsview's People

Contributors

anton46 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-stepsview's Issues

First label appears bold

Using the attached code, the first label appears bold always - updating the completedPosition updates the indicator but does not change the bolding from the first label. Not sure if the first label shouldn't be bold or if the bold should be moving.

Activity Code:

steps.setLabels(titles.toArray(new String[titles.size()]))
                .setColorIndicator(getResources().getColor(R.color.primary))
                .setBarColor(getResources().getColor(R.color.dark_gray))
                .setLabelColor(getResources().getColor(R.color.dark_gray))
                .setCompletedPosition(0);

Layout:

    <com.anton46.stepsview.StepsView
        android:id="@+id/steps"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>

Minimum SDK support

I want to use this type of View in my App. & minSdk Support by my App. is 11 so how can I use this ??

How to make StepsView scroll horizontal

I use your StepView ,but my stepView is long ,so I change your code
your code:
mDelta = (mRightX - mLeftX) / (mNumOfStep - 1);
I update
mDelta = dip2px(getContext(),115);

so my step view will keep 115 dip Delta

But now I can not make it scroll horizontal even though I use HorizontalScrollView like this

      <HorizontalScrollView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:fillViewport="true"
            android:padding="@dimen/dimen_dp_4">

            <com.chow.widget.stepview.StepView
                android:id="@+id/step_view"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"/>
</HorizontalScrollView>

thanks

segments

Hello,

Thank you for your work. is it possible to make the segments clickable/selectable ?

Thanks

New line label

When i add the new line in label view the colors are get affected as attached image. the selected postion is 1 and selected color is red

Help me to resolve this issue.
demo

How to Hide the Label

can i set the step in int not in label ?
because the label i set to empty string it also block my view

RTL

Stepper not support RTL , how to reverse layout direction ?!

Thumbs doubled when device rotates

When the device rotates the thumbs are doubled. It seems the property mThumbContainerXPosition in onSizeChanged() is not cleared.

Furthermore it would be nice to be able to set the style properties in the xml file and not only at source code level.

Can you provide an example of how to keep the current completed position when the device rotates?

Regards from Austria

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.