I've been making a simple android game. It's some sort of board game.
I have a gridView with TextViews as children. Everything was fine
until i decided to animate selected TextView. Animation is that the
TextView scales up. First i had problem with the fact that neighboring
textViews cover scaled selected one. Then i used
method .bringToFront() for selected TextView. It helped with covering
problem very well, but if i select any other textView, my old one
immediately moves to the bottom right corner of grid view. I tried to
use gridView.invalidateViews(), but it helps only with the first
click.

Here's click handler:

    private void onObjectClick( TextView textView) {
        if (selectedObject != null){
                //gridView.invalidateViews();
                selectedObject.startAnimation( shrinkObjectAnimation);
                if (selectedObject != textView){

                }
                else{
                        selectedObject = null;
                        return;
                        //make turn
                }
        }

                textView.startAnimation( magnifyObjectAnimation);
                textView.bringToFront();
                selectedObject = textView;
    }

Is it android bug, or i do it wrong?
If needed i can send whole project

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to