Giter Site home page Giter Site logo

avloadingindicatorview's Introduction

Hi there 👋

  • 🔭 I’m currently working on Low-Code Platform.
  • 👯 I'm looking for interested friends to join us.
HarlonWang's github stats

avloadingindicatorview's People

Contributors

cclink avatar davidmetcalfe avatar harlonwang avatar marvinklose avatar selmanon avatar yuyakaido avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avloadingindicatorview's Issues

颜色问题

为啥用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"/>

Error xml app:indicator

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

在下拉刷新和上拉加载布局中使用该库导致Crash

我在下拉刷新和上拉加载的头脚布局中使用该库,会导致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日志如下:
日志1
日志2

How To Add footer list ?

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?

Espresso won't go idle

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?

Your apk is about 1.3m large

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?

Attribute "maxWidth" has already been defined

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.

Rendering Issue

Although this is not a huge issue but its annoying to see this time and again

ISSUE:

  1. BallScaleMultiple" in attribute "indicator" is not a valid integer

is showing up

Is it by design that some don't have color?

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?

Unable to import library

Hi,

I added library to my gradle dependency, synced gradle, but it is not able to find AVLoadingIndicatorView class.

Crash in pre-Lollipop devices

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);

Espresso error: AppNotIdleException

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!

No resource identifier found for attribute 'indicatorName' in package 'xxx'

使用2.1.3版本

  1. 在一个lib module A中添加avloading,生成arr:
    <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"
  2. 在项目的主要module中添加A.arr,编译报错:
    Error:(13) No resource identifier found for attribute 'indicatorName' in package 'atide.ms.myapp'

请求帮助,谢谢

AVLoadingIndicatorView memory leak

Hello! I noticed that AVLoadingIndicatorView never release a reference to target View. That why activities will never be garbage collected.

I built a simple application with 2 activities. Second(LeakActivity) just have animation
First:
screen shot 2015-11-19 at 12 41 52 am
Second:
screen shot 2015-11-19 at 12 41 43 am

and after open and close LeakActvity we can see:
screen shot 2015-11-19 at 12 38 01 am

and a root to GC
screen shot 2015-11-19 at 12 38 11 am

BallClipRotateIndicator leaks an Activity

2016-10-06 10 56 49
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.

Animation lock in recyclerView

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?

FadeOut and In animation

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

show() does not work after hide()

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().

suggestion: Interpolator

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!

Indicator Color not working

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.

AVLoadingIndicatorView无法在代码里动态构造问题

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); //导致这里空指针异常

Not Cancelable

How to make this progress not cancelable and how to make all other view not clicable till this loader finish

Android Manifest Merge Label Fails

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?

Updated version to 2.0

Now AVLoadingIndicatorView was updated version to 2.0 , If you have any question or suggestion with this library , welcome to tell me !

set duration

hi,

IS possible change duration to animation loading?

1.0.4 crash

java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.TintManager"

But, 1.0.1 working.

Where is style?

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>

Add proguard rule

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.