package com.baoyachi.stepview.demo;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

/**
 * 日期：16/7/26 15:06
 * <p>
 * 描述：
 */
public class TestHorizontalStepViewActivity extends AppCompatActivity
{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test_horizontal);
        /*findViewById(R.id.btn_status).setOnClickListener(new View.OnClickListener()
        {
            @Override
            public void onClick(View v)
            {
                HorizontalStepView stepView = (HorizontalStepView) findViewById(R.id.stepview);
                List<String> list0 = new ArrayList<>();
                list0.add("接单");
                list0.add("打包");
                list0.add("出发");
                list0.add("送单");
                list0.add("完成");
                list0.add("支付");
                stepView.setStepsViewIndicatorComplectingPosition(2)//设置完成的步数
                        .setStepViewTexts(list0)//总步骤
                        .setTextSize(16)//set textSize
                        .setStepsViewIndicatorCompletedLineColor(ContextCompat.getColor(getBaseContext(), android.R.color.white))//设置StepsViewIndicator完成线的颜色
                        .setStepsViewIndicatorUnCompletedLineColor(ContextCompat.getColor(getBaseContext(), R.color.uncompleted_text_color))//设置StepsViewIndicator未完成线的颜色
                        .setStepViewComplectedTextColor(ContextCompat.getColor(getBaseContext(), android.R.color.white))//设置StepsView text完成线的颜色
                        .setStepViewUnComplectedTextColor(ContextCompat.getColor(getBaseContext(), R.color.uncompleted_text_color))//设置StepsView text未完成线的颜色
                        .setStepsViewIndicatorCompleteIcon(ContextCompat.getDrawable(getBaseContext(), R.drawable.complted))//设置StepsViewIndicator CompleteIcon
                        .setStepsViewIndicatorDefaultIcon(ContextCompat.getDrawable(getBaseContext(), R.drawable.default_icon))//设置StepsViewIndicator DefaultIcon
                        .setStepsViewIndicatorAttentionIcon(ContextCompat.getDrawable(getBaseContext(), R.drawable.attention));//设置StepsViewIndicator AttentionIcon
            }
        });*/


    }
}

@@ -128,31 +128,252 @@
 rt.v
-7.app.AppCompatActivity
+4.content.ContextCompat;%0Aimport android.support.v7.app.AppCompatActivity;%0Aimport android.view.View;%0A%0Aimport com.baoyachi.stepview.HorizontalStepView;%0Aimport com.baoyachi.stepview.bean.StepBean;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List
 ;%0A%0A/
@@ -681,18 +681,16 @@
         
-/*
 findView
@@ -939,16 +939,153 @@
 pview);%0A
+%0A%0A                //-----------------------------this data is example and you can also get data from server-----------------------------%0A
         
@@ -1103,19 +1103,29 @@
 t%3CSt
-ring%3E l
+epBean%3E stepsBeanL
 ist
-0
  = n
@@ -1137,16 +1137,24 @@
 rayList%3C
+StepBean
 %3E();%0A   
@@ -1170,22 +1170,48 @@
     
-list0.add
+StepBean stepBean0 = new StepBean
 (%22%E6%8E%A5%E5%8D%95%22
+,1
 );%0A 
@@ -1229,22 +1229,48 @@
     
-list0.add
+StepBean stepBean1 = new StepBean
 (%22%E6%89%93%E5%8C%85%22
+,1
 );%0A 
@@ -1288,22 +1288,48 @@
     
-list0.add
+StepBean stepBean2 = new StepBean
 (%22%E5%87%BA%E5%8F%91%22
+,0
 );%0A 
@@ -1347,22 +1347,49 @@
     
-list0.add
+StepBean stepBean3 = new StepBean
 (%22%E9%80%81%E5%8D%95%22
+,-1
 );%0A 
@@ -1407,22 +1407,49 @@
     
-list0.add
+StepBean stepBean4 = new StepBean
 (%22%E5%AE%8C%E6%88%90%22
+,-1
 );%0A 
@@ -1467,22 +1467,49 @@
     
-list0.add
+StepBean stepBean5 = new StepBean
 (%22%E6%94%AF%E4%BB%98%22
+,-1
 );%0A 
@@ -1531,77 +1531,400 @@
 step
-View.setStepsViewIndicatorComplectingPosition(2)//%E8%AE%BE%E7%BD%AE%E5%AE%8C%E6%88%90%E7%9A%84%E6%AD%A5%E6%95%B0%0A           
+sBeanList.add(stepBean0);%0A                stepsBeanList.add(stepBean1);%0A                stepsBeanList.add(stepBean2);%0A                stepsBeanList.add(stepBean3);%0A                stepsBeanList.add(stepBean4);%0A                stepsBeanList.add(stepBean5);%0A                //-----------------------------this data is example and you can also get data from server-----------------------------%0A%0A
     
@@ -1924,32 +1924,43 @@
 -%0A%0A             
+   stepView
 .setStepViewText
@@ -1965,13 +1965,21 @@
 xts(
-l
+stepsBeanL
 ist
-0
 )//%E6%80%BB
@@ -3166,16 +3166,16 @@
       %7D%0A
+
         
@@ -3177,18 +3177,16 @@
      %7D);
-*/
 %0A%0A%0A    %7D

update example