On Fri, Jan 29, 2016 at 1:07 PM, Michael Maus <mouse51...@gmail.com> wrote:

> I dont know why the OnClick is having an issue and dont know what or where
> to look to correct this.  My suspicions are that something needs to be
> changed or added to the MainActivity.java file.
>
> The button itself has the "onClick" parameter set to "onButtonClick".  Im
> not sure is this might be were part of the problem is as well.
>

What you posted should work. This could easily be an Android bug.

An easy workaround would be to set the click handler yourself - which is
more obvious and explicit anyway. In onCreate:

findViewByID(R.id.btn_calendar).setOnClickListener(new OnClickListener()) {
 ...
}

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScggmWw8E7pOMD%2BCmri4O228wLOi1t8aWx-%3D92kmAp31RFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to