I think it solved :D i declared the onclick listener in mainactivity java 
(in fragment class no) in the switch that i choose what fragment show.

El lunes, 19 de septiembre de 2016, 17:48:25 (UTC+2), Arturo escribió:
>
> Hi, I'm starting with the programming on android, I encounter the 
> following problems:
>
> 1ºProblem (solved but need explanation)- Spinner empty in fragment using 
> array adapter, i solved using array in xml and use 
> arrayadapterfromresource,Here I explain everything 
> http://stackoverflow.com/questions/39544972/spinner-shows-empty-when-use-fragment
>   
> <http://stackoverflow.com/questions/39544972/spinner-shows-empty-when-use-fragment>
>
> 2ºProblem- Onclick listener doesnt work in my button, (follow the 
> developer documentation about this, you can see the topic here 
> http://stackoverflow.com/questions/39544972/spinner-shows-empty-when-use-fragment
>  and 
> download my project if you want).
> The documentation that i follow 
> https://developer.android.com/guide/topics/ui/controls/button.html#HandlingEvents
>
> I decided to open this topic here because I see that it is not solved in 
> stackoverflow
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to android-discuss@googlegroups.com.
Visit this group at https://groups.google.com/group/android-discuss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-discuss/80df8e31-9c06-4349-9075-ecd70b941b6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to