how to open fragment from activity on button click

preview_player
Показать описание
This video will show how to open fragments from activity directly and on button click.
#call_fragment_from_the_activity
#fragment
#call_fragment_from_button_click
Рекомендации по теме
Комментарии
Автор

Thank you so much !
The code is still working 2023, Good job :D
I have searching for this like forever, but now i got it !
Cred to ya!

linaharaldzz
Автор

Dude you are amazing. Even the coding is little you helped me to get on with fragments even in low API. Keep on working. Good Job.

manuthpemmawadu
Автор

Thank you so much, *_* you made it easy to understand

MystyXsoul
Автор

Your code was easy to follow just wondering the call_fragment is it your project call or what does it call on?

chatinc
Автор

Please, I have a question.
My Activity is a login screen and the next screen is a fragment.
I'm doing login verification with firebase.
When the user presses to log in, he opens an authentication for email and password ( signInWithEmailAndPassword) and if the information is correct, he is able to enter the app through a private void command.
If the screen after login was another activity, I know how to open it (with intent commands written inside this private void), but since the next screen is a fragment, I'm not able to open it by doing your tutorial..

sinarabueno
Автор

How to set visibility visible when go back to ManActivity?

islam_in_the_west
Автор

Hi can you do it in Kotlin to. I am confused when u did it in JAVA

roan
visit shbcf.ru