Simple Animated Custom Drawable

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Simple Animated Custom Drawable

Postby pskink » Fri Oct 30, 2009 10:39 am

hi,

for anyone who would like to see how custom Drawable can decorate standard Buttons i created animated Drawable that mimics button, which when pressed really 'goes down' showing growing shadows on the left & top side and also dims a bit making effect more realistic

for those who would like to know how it works the key is scheduleSelf method

pskink
Attachments
AnimButton.tar.gz
(28.16 KiB) Downloaded 46 times
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Top

Re: Simple Animated Custom Drawable

Postby pskink » Fri Oct 30, 2009 12:57 pm

pskink wrote:hi,

for anyone who would like to see how custom Drawable can decorate standard Buttons i created animated Drawable that mimics button, which when pressed really 'goes down' showing growing shadows on the left & top side and also dims a bit making effect more realistic
pskink


here is screenshot with the first and the last phase of animation

pskink
Attachments
AnimButton.png
AnimButton.png (22.64 KiB) Viewed 185 times
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Re: Simple Animated Custom Drawable

Postby pskink » Fri Oct 30, 2009 4:20 pm

pskink wrote:
here is screenshot with the first and the last phase of animation

pskink


also managed to create animated gif that shows, more or less, how it works.

in practice, it presents a bit different though

pskink
Attachments
AnimButton.gif
(41.72 KiB) Downloaded 39 times
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests