Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Simple Animated Custom Drawable

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 83 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 243 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 81 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 8 guests