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

Slot Bet 100

Slot Bet 100 is an online slot that enables players to vie for a jackpot…

23 mins ago

Online Betting Sites

Introduction to Online Betting Sites سایت شرط بندی Online betting has become a global phenomenon,…

2 hours ago

Card Games – A Mainstay at Casinos and Other Gambling Establishments

Baking sourdough bread and watching TikTok may only take you so far, especially on days…

9 hours ago

More Than Firecrackers

Now, firecrackers might be the first thing that pops into your head when you hear…

2 days ago

A Day in the Life of Yee Haul Dumpsters Fort Collins Keeping Our Community Clean and Green

Every day, as the sun rises over the picturesque city of Fort Collins, a dedicated…

2 days ago

The Importance of Precision Mold Parts

Precision mold parts are indispensable in production processes that demand precise dimensions. Their increased durability,…

2 days ago