Hello all,

Well, I´ve been trying to figure it out alone for quite some time, so
I decided to ask for help.
It seems to be something dumb indeed, simple, but I can´t find what´s
going on.
I have many TextViews and buttons over a RelativeLayout. For all the
buttons and some textviews I´ve set their property onClick to a
function name, always declared as:

    public void functionName(View v){
        code goes here!
    }

For all the buttons it works. For almost all the TextViews it
works ....
Specifically for ONE textview it´s not working. I´ve tried everything,
from erasing and adding again, to changing the function, testing using
other textviews, etc. My conclusion is that it doesn´t work for this
specific textview or others I add after erasing it. For buttons I add
it works.
I´ve also checked my XML file, and it´s seems to be declared
correctly.

This one doesn´t work:

<TextView android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_below="@+id/btMetronome"
android:textSize="13sp"
android:textColor="#ffffffff"
android:height="30dip"
android:width="160dip"
android:gravity="center"
android:text="About this app ..."
android:id="@+id/tvAbout"
android:layout_marginTop="0dip"
android:layout_toRightOf="@+id/tvHelp"
android:onClick="aboutThisAppClic"></TextView>

This one works!

<TextView android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_below="@+id/btMetronome"
android:id="@+id/tvHelp"
android:text="Need Help?"
android:textSize="13sp"
android:textColor="#ffffffff"
android:width="160dip"
android:height="30dip"
android:gravity="center"
android:layout_marginTop="0dip"
android:onClick="needHelpClick"></TextView>

Also I changed the onClick property of the problematic TextView to the
name of a function that doesn´t exist. This way an exception should
have been thrown but nothing happened.
Could someone please point me what I´m doing wrong here?

Thanks,
Gabriel Simões

-- 
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, reply using "remove me" as the subject.

Reply via email to