Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Animation in android....

$
0
0

Hi Everyone,

              i have a view on the right side of the row. When i click the row ,my view animates in . Please check my code:

row.addEventListener('click', function(evt) {
            Ti.API.info('row click');
            if (evt.source.item_type != 'STARSLIDERVIEW') {
                Ti.API.info('source is not star slider');
 
                var starSlider = this.children[2];
                var starView = this.children[2].children[0];
 
                if (starSlider.left == '98%') {
                    Ti.API.info('left 98');
                    starSlider.animate(slideOutAn, function() {
                        starSlider.left = '50%';
                    });
                } else {
                    starSlider.animate(slideInAn, function() {
                        Ti.API.info('left 50');
                        starSlider.left = '98%';
                    });
                }
            } else {
                Ti.API.info('row click me row == ' + evt.index);
            }
The problem is that on android this animation is not taking place , when i close that window i can see the view at its animated position but only for a moment i can see this view. This animation is working very fine in iOS . If you need more code , i can provide.

Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>