StepView


Source link: https://github.com/baoyachi/StepView

StepView

Step by step. Step indicator. Flow indicator?

snapshot

like this:HorizontalStepView

like this

also like this:VerticalStepView

Yeah?I am not working in JD?Just imitate.It's a joke .ha ha ha

It is looks like so beautiful.

how to use

Add it in your root build.gradle at the end of repositories:

repositories {

...
maven {
 url "https://jitpack.io" 
}
  
}
 

Step 2. Add the dependency

dependencies {

compile 'com.github.baoyachi:StepView:1.9' 
}

use HorizontalStepView

in xml

 <com.baoyachi.stepview.HorizontalStepView

 android:id="@+id/step_view"

 android:layout_width="match_parent"

 android:layout_height="wrap_content"

 android:layout_centerInParent="true"

 />

use code

HorizontalStepView setpview5 = (HorizontalStepView) mView.findViewById(R.id.step_view5);

List<StepBean> stepsBeanList = new ArrayList<>();

StepBean stepBean0 = new StepBean("??",1);

StepBean stepBean1 = new StepBean("??",1);

StepBean stepBean2 = new StepBean("??",1);

StepBean stepBean3 = new StepBean("??",0);

StepBean stepBean4 = new StepBean("??",-1);

stepsBeanList.add(stepBean0);

stepsBeanList.add(stepBean1);

stepsBeanList.add(stepBean2);

stepsBeanList.add(stepBean3);

stepsBeanList.add(stepBean4);

  setpview5

  .setStepViewTexts(stepsBeanList)//???

  .setTextSize(12)//set textSize

  .setStepsViewIndicatorCompletedLineColor(ContextCompat.getColor(getActivity(), android.R.color.white))//??StepsViewIndicator??????

  .setStepsViewIndicatorUnCompletedLineColor(ContextCompat.getColor(getActivity(), R.color.uncompleted_text_color))//??StepsViewIndicator???????

  .setStepViewComplectedTextColor(ContextCompat.getColor(getActivity(), android.R.color.white))//??StepsView text??????

  .setStepViewUnComplectedTextColor(ContextCompat.getColor(getActivity(), R.color.uncompleted_text_color))//??StepsView text???????

  .setStepsViewIndicatorCompleteIcon(ContextCompat.getDrawable(getActivity(), R.drawable.complted))//??StepsViewIndicator CompleteIcon

  .setStepsViewIndicatorDefaultIcon(ContextCompat.getDrawable(getActivity(), R.drawable.default_icon))//??StepsViewIndicator DefaultIcon

  .setStepsViewIndicatorAttentionIcon(ContextCompat.getDrawable(getActivity(), R.drawable.attention));
//??StepsViewIndicator AttentionIcon

use VerticalStepView

this widget can reverse or forward draw,please look at below jd express picture

this status is reverse draw,so ,wo also have a method can realize jd express effect like this:

 /**

* is reverse draw ?????

*

 * @param isReverSe default is true

* @return

*/
  public VerticalStepView reverseDraw(boolean isReverSe)
  {

this.mStepsViewIndicator.reverseDraw(isReverSe);

return this;
  
}
 

you can use this method can realize reverse draw;Also you can see exmaple MainActivity,this example has detail useful description;

in xml

 <com.baoyachi.stepview.VerticalStepView

 android:id="@+id/step_view0"

 android:layout_width="wrap_content"

 android:layout_height="match_parent"

 />

in code

mSetpview0 = (VerticalStepView) findViewById(R.id.step_view0);

 List<String> list0 = new ArrayList<>();

list0.add("?????????????");

list0.add("?????????????????????????");

list0.add("????????????????1??????");

list0.add("??????6?23????????618??????????????????????????????????");

list0.add("?????????");

list0.add("?????????");

list0.add("???????");

list0.add("????");

list0.add("?????????????????130-0000-0000????????????????????????");

list0.add("?????????????????");

mSetpview0.setStepsViewIndicatorComplectingPosition(list0.size() - 2)//???????

.reverseDraw(false)//default is true

  .setStepViewTexts(list0)//???

  .setLinePaddingProportion(0.85f)//??indicator??????????

  .setStepsViewIndicatorCompletedLineColor(ContextCompat.getColor(getActivity(), android.R.color.white))//??StepsViewIndicator??????

  .setStepsViewIndicatorUnCompletedLineColor(ContextCompat.getColor(getActivity(), R.color.uncompleted_text_color))//??StepsViewIndicator???????

  .setStepViewComplectedTextColor(ContextCompat.getColor(getActivity(), android.R.color.white))//??StepsView text??????

  .setStepViewUnComplectedTextColor(ContextCompat.getColor(getActivity(), R.color.uncompleted_text_color))//??StepsView text???????

  .setStepsViewIndicatorCompleteIcon(ContextCompat.getDrawable(getActivity(), R.drawable.complted))//??StepsViewIndicator CompleteIcon

  .setStepsViewIndicatorDefaultIcon(ContextCompat.getDrawable(getActivity(), R.drawable.default_icon))//??StepsViewIndicator DefaultIcon

  .setStepsViewIndicatorAttentionIcon(ContextCompat.getDrawable(getActivity(), R.drawable.attention));
//??StepsViewIndicator AttentionIcon

Use So Simple!!!

See Detail

???????

????

Android-StepsView

Thanks

????

End

??????????????star??

Contact us

Resources

An example android application to set dynamic span size on GridLayoutManager, RecyclerView.

Android Library for custom views to control brightness , volume and seek through swipable gestures . These views could easily replace the conventional volume / brightness / seek controls that we have in music player ,video player or gallery apps.

Changes the color of individual pixels in a Bitmap.

Simple library to help with keyboard operations.

Roaring RxJava. A collection of useful RxJava 2.X classes.

Loads images for Bypass using Picasso.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes