romainpiel / shimmer-android Goto Github PK
View Code? Open in Web Editor NEW(DEPRECATED) An Android TextView with a shimmering effect
(DEPRECATED) An Android TextView with a shimmering effect
I took a quick look into the source code. It seems that the magic is happening in LinearGradientFactory
. is it possible to customize the class to supports shades going from right to left? This would be great if you consider RTL languages.
Was wondering if the there is some way that i can get the shimmer effect with a drwable in the shimmer text view?
animator = ObjectAnimator.ofFloat(shimmerView, "gradientX", fromX, toX);
Using reflection in this method throws NoSuchMethod Exceptopm when build by proguard.
add -keep class com.shimmer.{;}" and fix the problem.
what a pity that the awesome Shimmer is not compatibility below Android3.
My fix is use the https://github.com/JakeWharton/NineOldAndroids
Currently the Shimmer is just a TextView on Steroids. Couldn’t it support any view and views hierarchy as the original iOS version does?
its wonder full project that you have done, i'm using this project in my app but is there any option in set different font
Error:Execution failed for task ':app:processDevDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/local/Cellar/android-sdk/24.2/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
I want to reference the library in my project(https://github.com/snowdream/android-widgets).i get the error as follows.
It seems that the minSdkVersion of my project is 8, but your minSdkVersion is 14.
If your library is avaiable for minSdkVersion 8, can you modify it to minSdkVersion 8,thank you.
[/home/snowdream/workspace/git/android-widgets/lib/src/main/AndroidManifest.xml, /home/snowdream/workspace/git/android-widgets/lib/build/exploded-aar/com.romainpiel.shimmer/library/1.2.0/AndroidManifest.xml:2]
Main manifest has <uses-sdk android:minSdkVersion='8'> but library uses minSdkVersion='14'
how can I add xmlns:app="http://" to use "app:reflectionColor="#f00""
04-12 17:36:45.171: E/AndroidRuntime(20959): Caused by: java.lang.NoClassDefFoundError: com.romainpiel.shimmer.R$styleable
04-12 17:36:45.171: E/AndroidRuntime(20959): at com.romainpiel.shimmer.ShimmerViewHelper.init(ShimmerViewHelper.java:111)
04-12 17:36:45.171: E/AndroidRuntime(20959): at com.romainpiel.shimmer.ShimmerViewHelper.(ShimmerViewHelper.java:56)
04-12 17:36:45.171: E/AndroidRuntime(20959): at com.romainpiel.shimmer.ShimmerTextView.(ShimmerTextView.java:30)
with error
FATAL EXCEPTION: main
Process: com.trifidresearch.trifidresearch, PID: 4843
java.lang.NullPointerException: Attempt to invoke interface method 'boolean com.romainpiel.shimmer.ShimmerViewBase.isSetUp()' on a null object reference
at com.romainpiel.shimmer.Shimmer.start(Shimmer.java:150)
at com.trifidresearch.trifidresearch.Home$5.onResponse(Home.java:215)
at com.trifidresearch.trifidresearch.Home$5.onResponse(Home.java:191)
at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:60)
at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:30)
at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
shimmer.setRepeatCount(0)
Even though fixed in the Github code, the 1.4.0 aar file that you download from maven.org still contains the ic_launcher.png files.
To verify, please download the aar file directly, unzip it, and see the ic_launcher.png files inside:
http://central.maven.org/maven2/com/romainpiel/shimmer/library/1.4.0/library-1.4.0.aar
Original issue is here: #20
The shimmer animation doesnt work on android 5.1+
ive tested on my moto g running 5.1 and nexus 5 running 6,
it runs properly on ym samsung kitkat device
I really hate to bring this up myself but it's reality that the large portion of devices out there is running on Android 2.x.
Would you consider replace animation related package imports to NineOldAndroid?
It simply does not reproduce any animation inside Fragment of a ViewPager. Haven't been able to solve it yet.
Does the Runnable inside Shimmer.java properly stop? It seems to be causing a memory leak for me.
android:icon="@drawable/ic_launcher"
My app icon turns into 'ic_launcher.png' of the shimmer library on Nexus 5(Android 5.1).But on the other phones Android 4.+ it's my 'ic_launcher.png'. How to fix ? change my icon file name ?
AAPT: /home/debugger22/AndroidStudioProjects/PlaceboButton/app/build/intermediates/exploded-aar/com.romainpiel.shimmer/library/1.4.0/res/drawable-nodpi-v4/spot_mask.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
Just my ¢2
new
in your draw methods, you'd get a bunch of jank as they are called often specially on animation, and currently there are three of them at LinearGradientFactory#resize
method, given that Shaders are immutable, would you consider using a LRU cache?onAnimationEnd
consider using postInvalidateOnAnimation
instead of postInvalidate
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.