WilliamChart not possible to use Animations properly - Easing and methods missing - android

I tried everything to get a simple Animation done in WilliamChart.
But the only thing I can change is the duration of the Animation.
I used the Application on the App Store "https://play.google.com/store/apps/details?id=com.db.williamchartdemo&hl=de" to extract the customized Code and implement it to my Chart.
Everything is working, but the Animation is not possible to implement (see Screenshots). Easing and all animation methods are not available.
Maybe I've done something wrong in Gradle. But I can't help myself no more.
Animation Code
Thank you in advance!

Related

How to make a button.onClick animation like the youtube's play/pause animation in android?

I have no idea how to make this kind of an animation in android studio. Please help me out.
This is how I want it to be I mean like the Youtube animation.
By the animation I don't mean the one in which play icon changes to pause icon, I mean the white thing that appears just like this
Please see this for more info
I am not sure if I got exactly what you mean but I guess you are looking for drawable animation which change between slices of photos like animation
see the following link : https://developer.android.com/guide/topics/graphics/drawable-animation#:~:text=One%20way%20to%20animate%20Drawables,the%20basis%20for%20Drawable%20animations.
and if you give more information about your code to help you better.

onRecieve show a single ripple effect on imageView

I want to be able to show to my users whenever they recieve a new location update in my app.
So, whenever onRecieve() is called in my activity I want a imageView to animate a single ripple effect.
Ive tried to find a appropriate librabry that can do this easily but with no success.
Given my requirements can anyone point me in the right direction or suggest a good way to accomplish this?
Using this library https://github.com/skyfishjy/android-ripple-background i couldnt make a single ripple effect.. it never stops until i call stopRippleAnimation();
Edit: Using a valueanimator was a perfect solution for this
Call stopRippleAnimation after the ripple animation duration.
Also you can easily perform this animation using valueAnimator, Fadeout and scale using the values between 0 and 1.

Circular / rotary dial view in android

I have a need to create a circular dial/rotary style component for use in an application. It's essentially a circular menu that allows users to select from the items that are ringed around it, and then they can click the button in the center to activate the selected item. However, I've never created a custom UIView of this type, and don't really know where to begin. Can anyone give me any pointers as to how I would draw the view and then rotate it as the user drags their finger? I obviously know how to intercept touch events, etc. but I'm not sure how to actually go about manipulating the UI appropriately. Any tips or pointers would be great!
I don't know if you've already found a solution to this, but here is a nice overview of how to get started:
http://shahabhameed.blogspot.com/2011/05/custom-views-in-android.html
For you, I think you can extend an existing View, that View being the SeekBar. You can take the standard SeekBar and draw it in a circle.
Finally, here is a source code that does the rotation with a volume knob. It is its own project though, so you have to do some work to use it in your own app.
http://mindtherobot.com/blog/534/android-ui-making-an-analog-rotary-knob/
Good Luck!
I have a neat library to do this. It is extremely stable and well maintained. https://bitbucket.org/warwick/hgdialrepo
Heres a youtube demo: https://youtu.be/h_7VxrZ2W-g
This library comes with a demo app with source code and the demo app actually uses a dial as a menu, So I think this should be the perfect solution for you.

Android Animation for hightlight

I am trying to learn how to do animation on Android. I want to use tween from my understanding via XML. I want to just highlight a text view, but I can't seem to find any simple examples that work, most seem to go for rotating. Anyone have an idea?
Also once I make the animation work does it block while the animation happens? Should I thread it if I am waiting for it to finish to run another event? I haven't been able to figure this out from reading the documentation. My java threading is very rusty.
Thanks
Animations thread themselves.
You won't be able to do this animation directly, because property animations are only available in Honeycomb. This animation is unnecessarily complicated because of the lack of animations. What you would have to do in order to accomplish this is to place the TextView in a FrameLayout. Create and LinearLayout with the highlight color you would like and Scale or Alpha animate that LinearLayout. If you would REALLY want to do this, I can show you.

Vertical Scroller animation

Is possible to do a vertical scroller animation in Android without using javascript? Anybody knows a tutorial o a web page with a helpful code? thanks
I'm not sure of what you mean by vertical animation but I think this tutorial can help you.
Animations of views are based on Interpolators that you can set, and one of them is the LinearInterpolator which is detailed here.
EDIT, further to the comments below:
This is something you can do with the scrolling and animation features of the View class, as described here (ctrl-f "Scrolling" and "Animation" in that page).
Should the API level you are using be too low, this is also something you can do with a Thread that modified the position of the TextView embedded in your layout or that uses the scrollXX() functions. This is also described in the page linked above.
Have you looked at the viewflipper control.
I've tried this in the past and it works well. You can also use ViewAnimator class
UPDATE
The google documentation is a bit hard to chew through. You may wish to try this simple tutorial first.

Categories

Resources