click on a gone view

by Guian » Thu, 04 Jun 2009 00:01:40 GMT


Sponsored Links
 Why is this possible ?


code :
        private OnClickListener _Listener = new OnClickListener()
        {
            public  void onClick(View v)
            {
                  if(v== myView){
                        if(myView.getVisibility()==View.GONE)
                              Log.d("onClick","Why is this
possible ?");
                  }
                }
           }
...
View myView = new View(this);
...
myView.setOnclickListener(_Listener);

I use View.VISIBLE / GONE to exchange display of two views... and when
I want to click on the visible one, the gone one is catching it...

is that normal ?
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Any guidance for values to use for MenuItem.setShortcut(...) ?

Are there any guidance notes for what values to use when setting menu
item shortcuts via MenuItem.setShortcut(...).  I have done a search
and not been able to find any.

I was thinking that there might be recommended keys for common actions
like earch ettings dd newetc. to keep the user experience
consistent.

--
RichardC

--~--~---------~--~----~------------~-------~--~----~

2. Translate my app, I'll translate yours.

Sorry to use this mailing list for 'personal use', but actually it
might also interest other developers.
I'm looking to translate my (free) app to Spanish and German. In
exchange, I can translate your app to French.

So if Spanish or German (other languages welcome too!) is your native
language, and you're interested in having a French version of your
app... Well then contact me :)  => b...@jraf.org

BoD
--~--~---------~--~----~------------~-------~--~----~

3. Question on task affinites

4. using SKIA canvas in native code, SimpleJNI hack.

5. TMobile myFaves (com.tmobile.myfaves) is tied heavily into Android Framework?

6. Android Market Hacked

7. sdk 1.6 issues