Categories: ANDROID APP

Open a Fragment with an Animation + Communicate with Activity – Android Studio Tutorial



In this video we will learn, how to open a Fragment with an animation and how to communicate between the Fragment and it’s Activity, using an Interface. We will send a String to the Fragment using the newInstance method and communicate back to the Activity by implementíng an interface into our MainActivity.

Example code:
https://gist.github.com/codinginflow/cd3ab43ca2f45e473ad34a2f0f0a9435

____________________
⭐ Get my new MVVM Caching Course now:
https://codinginflow.com/caching

❗ Subscribe to the channel:
https://www.youtube.com/c/codinginflow?sub_confirmation=1

💲 Earn money by becoming an affiliate for my courses:
https://codinginflow.com/affiliate

📨 Subscribe to the Coding in Flow newsletter:
https://codinginflow.com/newsletter

💻 Hire me for your next project:

💚 Donate to Coding in Flow with a message:
https://paypal.me/codinginflow

❓ Ask your programming questions in our chat:
https://discord.gg/TSnMvmc

📣 Follow Coding in Flow on other sites:
Facebook: https://www.facebook.com/codinginflow
Instagram: https://www.instagram.com/codinginflow
Twitter: https://twitter.com/codinginflow
Github: https://github.com/codinginflow

source

linda

Recent Posts

Essential Tips for Successful Condo Renovation

Before embarking on the renovation journey, it's crucial to comprehend what the process involves. Condo…

20 hours ago

Tips on how to Maximize Your Glory Casino Benefit

Hey there, fellow casino lover! If you're on the hunt to help make the most…

1 day ago

How to Maximize Wins on Glory Casino

Hey there, fellow gaming enthusiast! Are you ready to dive into the exciting world of…

2 days ago

Best Private Universities to Consider throughout Turkey

Hey there! So you're interested in studying in Turkey? That's a fantastic choice! Egypt is…

2 days ago

Best Benefits of Harbor City Hemp

Welcome to the world of Harbor Town Hemp! If you're curious about exactly how hemp…

4 days ago

Common Issues with Gear Pumps and Solutions

Before we discuss the issues, let's quickly review what a gear pump is. A gear…

4 days ago