Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何停掉波浪 #28

Open
erhutime opened this issue Jan 3, 2017 · 9 comments
Open

如何停掉波浪 #28

erhutime opened this issue Jan 3, 2017 · 9 comments

Comments

@erhutime
Copy link

erhutime commented Jan 3, 2017

在我达到一定的进度时,我想停掉波浪,让它停下来,应该调用什么方法?

@tangqi92
Copy link
Owner

tangqi92 commented Jan 5, 2017

Hi @erhutime

At present, there is no such a method, however, this function needs more, so I decided to add the feature in the next version, I will realize it as soon as possible, thank you for your support:)

@tangqi92
Copy link
Owner

tangqi92 commented Jan 5, 2017

Hi @erhutime

I just updated the library to v0.3.4, now it supports the pause/resume operation.

If your minSdkVersion >= 19, you can use 'pauseAnimation()/resumeAnimation', otherwise you can use 'cancelAnimation()/startAnimation()'.

I hope you like it.

@erhutime
Copy link
Author

erhutime commented Jan 6, 2017

Hi :
当我运行以下代码的时候:
` private static void initMsg(Context context,WaveLoadingView waveLoadingView,int progstate){
if (progstate>0&&progstate<=40){
waveLoadingView.setTopTitle(progstate+"");
waveLoadingView.setTopTitleColor(context.getResources().getColor(R.color.main_color));
waveLoadingView.setCenterTitle(context.getResources().getString(R.string.prog_state_index));
waveLoadingView.setCenterTitleColor(context.getResources().getColor(R.color.main_color));
}
if (progstate>40&&progstate<=60){
waveLoadingView.setCenterTitle(progstate+"");
waveLoadingView.setCenterTitleColor(context.getResources().getColor(R.color.main_color));
waveLoadingView.setBottomTitle(context.getResources().getString(R.string.prog_state_index));
waveLoadingView.setBottomTitleColor(context.getResources().getColor(R.color.white));
}
if (progstate>60&&progstate<=90){
waveLoadingView.setCenterTitle(progstate+"");
waveLoadingView.setCenterTitleColor(context.getResources().getColor(R.color.white));
waveLoadingView.setBottomTitle(context.getResources().getString(R.string.prog_state_index));
waveLoadingView.setBottomTitleColor(context.getResources().getColor(R.color.white));
}

}`
1-:不能显示出来任何一个title,如top,center,boottom
2-: 并且,当我在Listview中使用时,无法停掉波浪。
3-: 是否有提供方法让进度从底部慢慢涨起来。

@tangqi92
Copy link
Owner

tangqi92 commented Jan 6, 2017

你好:

我刚刚测试了下,对于你提出的问题:1. 请问你有正确初始化 'WaveLoadingView' 吗?2. 你当前的 SDK 版本是否大于 19?否则暂停需调用 'cancelAnimation'. 3. 如果想从底部开始,初始化使用 'setProgressValue(0)' 即可,随后不断调用,增加数值即可。

@erhutime
Copy link
Author

erhutime commented Jan 6, 2017

前提条件都是Listview的item中进行相关测试的:
1:有正确初始化WaveLoadingView,根据github代码进行测试;
2:在Item设置Progress达到一定的值之后无法停止,滑出屏幕之后,可停止。

@tangqi92
Copy link
Owner

tangqi92 commented Jan 6, 2017

感谢反馈,我现在进行测试,发现问题后会反馈给你的,再次感谢:)

@erhutime
Copy link
Author

erhutime commented Jan 6, 2017

1-:停止的时候,在正常页面可以,在Listview中问题无法停止;
2-:动态显示三个不同位置的title,我无法排查出这个问题,用的代码就是我之前发的那种;
感谢。

@tangqi92
Copy link
Owner

tangqi92 commented Jan 6, 2017

你好,我刚刚测试了下,在 listView 中可以正常停止与设置标题,请问你有正确获取 listView 中 Item 里对应的 "WaveLoadingView" 吗?
目前已知的问题时,当 ListView 滑出屏幕后,会有复用的情况,也就是说,这里需要做相应的处理。

@erhutime
Copy link
Author

erhutime commented Jan 7, 2017

嗯,那我确认一下。后续有问题,会继续咨询。谢谢。

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

No branches or pull requests

2 participants