Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

建议 #6

Closed
action-hong opened this issue Jun 25, 2016 · 1 comment
Closed

建议 #6

action-hong opened this issue Jun 25, 2016 · 1 comment
Labels

Comments

@action-hong
Copy link

为什么不搞一个取出当前到第几步的方法?
这样不就可以动态实现跑到下一步还是回到上一步

`
public void click(View v){
int currentPosition = stepViewSelf.getStepsViewIndicatorComplectingPosition();
switch (v.getId()){
case R.id.plus:
if(currentPosition == list0.size()-1) return;
stepViewSelf.setStepsViewIndicatorComplectingPosition(++currentPosition);
break;
case R.id.dec:
if(currentPosition == 0) return;
stepViewSelf.setStepsViewIndicatorComplectingPosition(--currentPosition);
break;
}
}

public void setmComplectingPosition(int mComplectingPosition) {
this.mComplectingPosition = mComplectingPosition;
invalidate();
}
`

@baoyachi
Copy link
Owner

baoyachi commented Jun 27, 2016

Yeah,it's good idea,but this is example for display,so ,just simple so.Thank you for your suggestion! Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants