Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 94

CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
07/31/15 09:29 PM (8 years ago)

Lets add animation to our android apps...

with one line of code...Ill probably release it free
 
kitkatman
Aspiring developer
Profile
Posts: 24
Reg: Jul 25, 2012
Lagos
1,340
like
08/01/15 02:34 AM (8 years ago)
That'll be lovely.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
08/01/15 07:54 AM (8 years ago)
You mean like this? getActivity().findViewById(R.id.someObjectOnScreen).animate().translationY(5); :)
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
08/01/15 09:31 AM (8 years ago)
That's awesome chris1! I've never seen that .I can't wait to get home to try it out.I guess that line of code makes the view go up a little? I found alot of examples online using where they use xml and made a class that does them programmatically.it's just generic animation. Using animation set I could add multiple types of animation. I tried programmatically writing object animators for fragments but don't think it will work. I got the idea from an app I have called "instapray".the animation is amazing! Here's one link of the animations anyone can try on their view for now.even with the xml it's not that much code http://karnshah8890.blogspot.com/2013/04/listview-animation-tutorial.html?m=1
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
08/01/15 04:38 PM (8 years ago)
Found a cool open source animation library https://github.com/nhaarman/ListViewAnimations
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
08/01/15 06:43 PM (8 years ago)
Yeah a couple of those are nice.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.