K
K
KiringD2021-02-11 14:30:17
Android
KiringD, 2021-02-11 14:30:17

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

1 answer(s)
D
Denis Zagaevsky, 2021-02-11
@zagayevskiy

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 question

Ask a Question

731 491 924 answers to any question