- 🔭 I’m currently working on Low-Code Platform.
- 👯 I'm looking for interested friends to join us.
harlonwang / avloadingindicatorview Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED
DEPRECATED
Hi.
I’m having troubles using your library with ui testing provided by Espresso. If I create an instance of AVLoadingIndicatorView, the test get stuck until the next exception is thrown:
Caused by: android.support.test.espresso.AppNotIdleException: Looped for 71216 iterations over 60 SECONDS. The following Idle Conditions failed .
at android.support.test.espresso.IdlingPolicy.handleTimeout(IdlingPolicy.java:61)
at android.support.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:477)
It does not matter if I set the visibility of the view to View.Invisible or View.Gone before continuing the text, the error still happens.
I think the problem is related with this topic.
The library is so cool, but currently I can’t use because of this. Because if I use your view I can’t perform integration testing with Espresso. Maybe there is some workaround to prevent this behaviour… I don’t know.
Thanks!
Hello, dev!
I try to use app:indicator_color="your color" with no luck... I've try it with hex "000000" (not working), @color/black (not working). "0xFF000000" (also not working).
Any idea? Also It would be great if we can change the color by code, like: mProgress.setProgressColor(int color) or similar.
How can I change the duration of the animation? Its too fast. :(
Failed to resolve: com.wang.avi:library:1.0.5
Getting null pointer exception on avi.getIndicator.isRunning() method, using latest version of library.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mobile:processDevDebugManifest'.
> Manifest merger failed : Attribute application@label value=(@string/app_launcher) from AndroidManifest.xml:16:9-45
is also present at [com.wang.avi:library:1.0.2] AndroidManifest.xml:11:18-50 value=(@string/app_name).
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:13:5-85:19 to override.
Already tried to apply the change of tools:replace="android:label
into my manifest, but this gives no label out on 5.1.1
Any idea?
Could you please add such feature to change indicator color via code? Thank you.
Hi,
I added library to my gradle dependency, synced gradle, but it is not able to find AVLoadingIndicatorView
class.
java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.TintManager"
But, 1.0.1 working.
虽然问得有点小白,我不想在每个layout下添加loadingview,我想在基类里面添加,求回复,谢谢
does it have a library that doesnt depending on 'compile 'com.nineoldandroids:library:2.4.0''
I can't find style="@style/AVLoadingIndicatorView.Large" It says create style value resource "AVLoadingIndicatorView".
<style name="AVLoadingIndicatorView.Large">
<item name="minWidth">76dip</item>
<item name="maxWidth">76dip</item>
<item name="minHeight">76dip</item>
<item name="maxHeight">76dip</item>
<item name="indicatorName">BallPulseIndicator</item>
</style>
Have anyone tried with the android support library 24.2?
I was getting the error 'Attribute "maxWidth" and "maxWidth" have already been defined' when trying to sync Gradle and I had to fork and changed that attributes to different names so that it works.
Is there anyway I can speedup pacman's eating speed? I think it's too slow.
Although this is not a huge issue but its annoying to see this time and again
ISSUE:
is showing up
Version 2.0.x is crashing in pre-Lollipop devices because it tries to use a constructor that is only available in API 21 and higher.
The problem is located in this line in AVLoadingIndicatorView:
super(context, attrs, defStyleAttr, defStyleRes);
为什么你包名取个avi啊?
在三星手机Galaxy Note2,型号是GT-N7100的手机上不能播放,显示的是静态的图片,任何一个动画都不能播放,
使用2.1.3版本
<com.wang.avi.AVLoadingIndicatorView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="14dp" app:indicatorName="LineScale" app:indicatorColor="#FFE75764" />
xmlns:app="http://schemas.android.com/apk/res-auto"
Error:(13) No resource identifier found for attribute 'indicatorName' in package 'atide.ms.myapp'
请求帮助,谢谢
When using proguard need add rules:
-keep class com.wang.avi.** { *; }
-keep class com.wang.avi.indicators.** { *; }
Indicators is load from class names, proguard may change it (rename).
When the AVLoader is in a layout used in a recyclerView, the animation stop when it is scrolled out and in of the screen.
Any idea how to fix it?
现在感觉转的太快了
Now AVLoadingIndicatorView was updated version to 2.0 , If you have any question or suggestion with this library , welcome to tell me !
BallBeatIndicator ballBeatIndicator = new BallBeatIndicator(); AVLoadingIndicatorView avLoadingIndicatorView = new AVLoadingIndicatorView(this); avLoadingIndicatorView.setIndicator(ballBeatIndicator); avLoadingIndicatorView.setIndicatorColor(0xffffff);
我这里动态构造抛出下面的异常
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.wang.avi.Indicator.setColor(int)' on a null object reference
是因为AVLoadingIndicatorView在构造函数里没给indicatorName一个默认值:
String indicatorName=a.getString(R.styleable.AVLoadingIndicatorView_indicatorName); int indicatorColor=a.getColor(R.styleable.AVLoadingIndicatorView_indicatorColor, Color.WHITE); setIndicator(indicatorName); //这里没有默认值 setIndicatorColor(indicatorColor); //导致这里空指针异常
Hello, when im add a
app:indicator on xml file in android studio
make a error
app:indicator="BallClipRotate"
on run:
Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/luis/Android/Sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
On preview:
"BallClipRotate" in attribute "indicator" is not a valid integer
Hello how to Stop Animators
就消失了..
如果不丢在framlayout里面..
他会出现6个超大的....轮播动画
I appreciated your project.I want to add footer list. my problem is that this view cover all the page width and It do not accept the size that I put for it.
I have used indicator = BallPulseSync for loading in list view footer(in list pagination).
the problem is that the balls fill the list's width.
my question is how to set size for balls?
Hi,
I am trying to set fade in and out animation with this indicators, but VISIBLE and GONE is not working when set startAnimation to control.
Could you fix the issue.
Thanks
AVLoadingIndicatorView progressBar = new AVLoadingIndicatorView(context);
progressBar.setIndicator("BallClipRotateMultipleIndicator");
progressBar.setIndicatorColor(Color.BLUE);
still showing default indicator.
Is there a way to change the indicator size via xml or code?
hi,
IS possible change duration to animation loading?
Hello,
We are using this avloadingindicatorview with espresso and espresso keeps generating a application not idle error. The issue is only resolved if we remove the this view. From the looks of it, the view doesn't seem to be spawning any asynctask to that may make the app non-idle but the issue is still there. Any ideas?
Will be very nice if we can set many different interpolators. In my opinion, linear interpolator is boring if we talk about new animations on material design.
Thanks!
为啥用indicatorColor这个属性设置颜色为黑色,但显示的照样是白色
代码如下:
<com.wang.avi.AVLoadingIndicatorView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/indicator"
android:layout_gravity="center"
style="@style/AVLoadingIndicatorView.Large"
app:indicatorName="BallPulseIndicator"
app:indicatorColor="#000000"/>
From the leak canary report it seems like BallClipRotateIndicator leaks a calling view (and activity afterward). It might be caused by keeping an implicit reference for calling postInvalidate();
method.
Possible fix would be to clean up the reference in ondetachedfromwindow method.
Calling show()
after hide()
does not work. The view is still invisible. Probably, you forgot to set view visibility to "visible" insideshow()
. However, there is no such issue while using smoothToShow()
and smoothToHide()
.
How to make this progress not cancelable and how to make all other view not clicable till this loader finish
I tried BallTrianglePathIndicator with:
app:indicatorName="BallTrianglePathIndicator"
app:indicatorColor="@color/colorAccent"
Color isn't changed, but on another indicator it does with no problem.
if so by design, is it possible to make it apply for all indicator too?
Hi ,
we need different indicator color
Anandharaj R
Android application developer.
SQindia pvt ltd
我在下拉刷新和上拉加载的头脚布局中使用该库,会导致crash.
使用方式为:
<com.wang.avi.AVLoadingIndicatorView
android:id="@+id/header_progressbar"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/header_text"
android:layout_toStartOf="@+id/header_text"
android:visibility="invisible"
app:indicator="BallSpinFadeLoader"
app:indicator_color="@color/gray_88808080"
/>
在代码中仅作了显示和隐藏. 未做其他操作.
结果打开app进入列表就发现主线程阻塞了. 最终导致crash.
crash日志如下:
Hello
I have included your library in my app, I just love the look and feel of your loading indicators. However, after including the library, I noticed a dramatic increase in the size of my app. I think the reason is that you have package all the indicators into your library so even if I only use ball pulse in my app, I'm still getting all the rest of the indicators that I don't really need. Is there a way I can extract out just the ball pulse and include that into my app as I don't need the other indicators?
Could you please add such feature to change indicator type via code? Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.