Answer the question
In order to leave comments, you need to log in
How to create widget on fragment (fragment) android studio?
Recently I started to study android studio and ran into a problem, I have several fragments (I am creating a project with navigation Drawer) and I want to add a button to one of the fragments, but after adding it, as soon as I press it, the program just crashes. Do I understand correctly that onClick works differently in fragments?
Answer the question
In order to leave comments, you need to log in
Read logcat, there will be a stack trace of your error. It's probably some kind of bug. Here half the forum knows how to implement "this", but no one will write for you. And you will not get a more specific answer without clarification.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question