Тёмный

How to Make a Shared Elements Transition in Android Studio 

Philipp Lackner
Подписаться 186 тыс.
Просмотров 23 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 78   
@m1ken1ke1
@m1ken1ke1 Год назад
Hello I am a retired programmer with many years of app development and searching for the best Kotlin tutorials available so I can slip quietly back into the business in a small way. I find your explanations to be OUTSTANDING and easy to follow, even for an old guy like me. I will be following you closely. Thanks very much.
@livlop
@livlop 3 года назад
Wake up, open the curtains, make your morning coffee ☕, take a toast and turn on Philipp Lackner.... Thanks a lot Sir.... all your videos are super helpful
@PhilippLackner
@PhilippLackner 3 года назад
Thanks a lot! :)
@DerCheckerzeigts
@DerCheckerzeigts 3 года назад
AMAZING, it is exactly what I need for my current project. Thank you very much!
@PhilippLackner
@PhilippLackner 3 года назад
You're very welcome!
@AyushSachan2211
@AyushSachan2211 3 года назад
These short projects are awesome and very helpful.
@PhilippLackner
@PhilippLackner 3 года назад
Glad you like them!
@raylyth8324
@raylyth8324 2 года назад
That is amazing. Thank you. I'm an Android app developer but my skill is not very advanced. I'm really looking forward to trying your course after I get my pay check. :)
@البرمجةللجميع-د4ظ
@البرمجةللجميع-د4ظ 3 года назад
You said yes in instagram and you did it thank you.
@KarimSinouh
@KarimSinouh 3 года назад
باش نلقا ولد بلادي هنا راه حاجة نادرة ❤
@البرمجةللجميع-د4ظ
@البرمجةللجميع-د4ظ 3 года назад
@@KarimSinouh hhh akhouya hada houwa li kayn f had youtube hhhh
@xHBKxSF
@xHBKxSF 3 года назад
Love your videos/tutorials bro, keep it going
@PhilippLackner
@PhilippLackner 3 года назад
Appreciate it!
@Trosydman
@Trosydman 3 года назад
Great tutorial video! I was trying this without success. Now it's all clear 😌 Thanks! I have a tiny question related to the "activity_main.xml" structure: is there a strong reason to create the MainActivity layout like you did (ConstraintLayout > FrameLayout > FragmentContainerView) or would it be enough to just have a single FragmentContainerView parent container? Thank you in advance!
@dmytroberezhnyi717
@dmytroberezhnyi717 2 года назад
It depends how you would like to position the container or containers, you could add to activity_main.xml toolbar :) bottomBar and etc
@carlosrios3018
@carlosrios3018 3 года назад
Thanks! Can we do this using Jetpack Compose????
@felipepereira3061
@felipepereira3061 3 года назад
Hi! If i have an recyclerview with an image, i need to set on adapter for each image a transition name?
@Alchemist10241
@Alchemist10241 2 года назад
8:10 - Why did you use tow binding objects of the same class? A link or a quick note could be helpful Thanks for your simple and straightforward solutions for common android dev problems 🚀
@dendrit77
@dendrit77 Год назад
Great bro! Thank you very much!
@go_better
@go_better 2 года назад
Thanks! Indeed, shared element started to transit. But original fade animation was removed.
@marlonlom
@marlonlom 3 года назад
what about using image loaders like coil o glide? how is handled the image loading while the transition?
@akashdeepwadhwa5828
@akashdeepwadhwa5828 3 года назад
thank you very much for good tutorials
@RohitSharma-dv4xd
@RohitSharma-dv4xd 3 года назад
Awesome content bro keep it up
@PhilippLackner
@PhilippLackner 3 года назад
Thanks! Will do!
@mhmdvejdanizadeh2799
@mhmdvejdanizadeh2799 3 года назад
this will work for a element in recycler view?
@BenKadel
@BenKadel 3 года назад
Question: Can we also do the same thing without needing to use the NavigationComponent? Aka can we do this with just a standard fragment transaction somehow? this is awesome btw! Great job!
@PhilippLackner
@PhilippLackner 3 года назад
Yes just call addSharedElement on the transaction
@BenKadel
@BenKadel 3 года назад
@@PhilippLackner Epic! Gonna have a play!! Ty
@koutheirelbehi4384
@koutheirelbehi4384 3 года назад
Nice haircut philipp
@ikinciderecedenmezun5107
@ikinciderecedenmezun5107 3 года назад
How will it be for the imageView object in the adapter. Can you help me. Please
@abugewazenith5149
@abugewazenith5149 3 года назад
For your video on how to show images from firebase storage into recycler view I followed the video and everything worked fine But I also want to show some text from my firebase database into the same recycler view So when I added some codes to the adapter I get an error in the list files function In the image urls to be precise.
@vaibhavjaiswal5911
@vaibhavjaiswal5911 3 года назад
Plz make a video on material motion , the documentation is not good enough for understanding
@jjongim3956
@jjongim3956 3 года назад
Thank u😀 How can i use with recyclerview item?
@reshabprasad6793
@reshabprasad6793 3 года назад
U r very helpful 🙌🏻
@PhilippLackner
@PhilippLackner 3 года назад
Thanks!
@mehranj73
@mehranj73 3 года назад
I haven't watched this video yet, but I remember having problem implementing this in a recyclerview
@jorgearturorodriguez9432
@jorgearturorodriguez9432 3 года назад
That is because every transition needs an unique name
@mehranj73
@mehranj73 3 года назад
@@jorgearturorodriguez9432 I know, I saw some people did it by databinging. I did by code but the returning animation didn't work.
@jjongim3956
@jjongim3956 3 года назад
This way i have Same problem.... Solve this? When A FRAG TO B FRAG transition i set unique transitionname with tranname$position in recycler adapter onBindviewholder A TO B is fine but B to A NOT working If u solve this Plz let me know^^
@buszi_
@buszi_ 3 года назад
How do i do so with SafeArgs? Can i just pass an action created with SafeArgs instead of id res provided in 10:35 ?
@lasanbajrasandi8434
@lasanbajrasandi8434 2 года назад
thankyou broder
@bakjoul
@bakjoul Год назад
Aaaah. I wanted to make something similar. Clicking on a photo in a recyclerview then transitioning to a dialog with a view pager opening on the photo. But i don't know if it's possible.
@sushruths8511
@sushruths8511 9 месяцев назад
found any solution ?
@Laithabujbara
@Laithabujbara 3 года назад
Dude.... you're on fire here, 🔥 Keep up the good work, we support you, Can I ask you a request, can you please make a tutorial on how to build an embedded video player like the one in netflix app, using kotlin
@username_taken_se_pareshan_boi
@username_taken_se_pareshan_boi 2 года назад
sir can't we do this with Java? is yes then pls make a video...
@BulletGames-official
@BulletGames-official 5 месяцев назад
Brother I want same thing using java 😢 Please make a video for it ❤❤ 😢 Please Bro
@danilkha
@danilkha 3 года назад
i can't understand why android.R.transition.move don't work. The other transitions like android.R.transition.explode or android.R.transition.fade works fine but only move don't work
@advitiayanand5974
@advitiayanand5974 3 года назад
I don't get it. I'm doing the exact same thing. But the behaviour is simply unpredictable. The documentation isn't very helpful either. Why didn't Google include these in the navigation component?
@krishnaacharya8800
@krishnaacharya8800 2 года назад
What if there is a text along with that ?
@wenlongteo6272
@wenlongteo6272 3 года назад
How can I achieve this by transiting from activity to fragment? Use addSharedElement as well?
@samstoyroom
@samstoyroom 3 года назад
You should start considering single Activity pattern which is introduced by Google.
@koenigluki
@koenigluki 3 года назад
when i do this, the previous fragment is visible below the current one. how can I fix this?
@bjugdbjk
@bjugdbjk 3 года назад
Use popbackstack properties of that fragment from navgraph.
@-no-handle
@-no-handle 2 года назад
Does not give explanation for a lot of things. If I copy paste the code, it'll work but I want to understand why.
@mandroidx1474
@mandroidx1474 3 года назад
❤🔥
@projectfilm6800
@projectfilm6800 3 года назад
java?
@samstoyroom
@samstoyroom 3 года назад
"sharedElementReturnTransition = transition" seems not needed?
@congdanhtruong433
@congdanhtruong433 3 года назад
How to do that with a URL image?
@edwinpazss.-1798
@edwinpazss.-1798 2 года назад
trato de hacer lo mismo pero usando 2 recylcerview y que cada uno contenga la misma imagen
@somith16
@somith16 3 года назад
Sir can u make a tutorial for video calling app
@mdjahidulislam9205
@mdjahidulislam9205 3 года назад
Thanks
@PhilippLackner
@PhilippLackner 3 года назад
Welcome
@lavishgarg4274
@lavishgarg4274 3 года назад
💢⚡Hi can you pls make a video on how to get the metadata of the file being chosen by user from file manager ,it can be any file like pdf or txt file,as many time we need meta data and content of file to do some operations on file aur to pass that data to api,etc. 👉👉🙏🏻Pls consider my request as there is no such things available on stack overflow and on RU-vid right now
@mrdeveloper4438
@mrdeveloper4438 3 года назад
Awesome sharedelement transition animation.....plz tutorial for like g-pay rewards image animation when i clicked outside image then animation transition happen and back to image first position.....
@roushanali1918
@roushanali1918 7 месяцев назад
found out too late 😅
@erfansn869
@erfansn869 3 года назад
Motion Layout is better
@PhilippLackner
@PhilippLackner 3 года назад
Huh? Motion Layout is for other purposes
@erfansn869
@erfansn869 3 года назад
@@PhilippLackner ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-TcKGOxsrxCM.html
@PhilippLackner
@PhilippLackner 3 года назад
@@erfansn869 yea but why would you use motionlayout here, you just want to animate the transition
@erfansn869
@erfansn869 3 года назад
@@PhilippLackner Because with less code we can create our own result
@crateer
@crateer 3 года назад
@@erfansn869 noone stops you from going the extra mile or using one of the hundreds of other ways of doing the same thing :)
@xHBKxSF
@xHBKxSF 3 года назад
Love your videos/tutorials bro, keep it going
@PhilippLackner
@PhilippLackner 3 года назад
Glad you like them!
@MrRahulmalik
@MrRahulmalik 3 года назад
How to do this without navigation component?
@DerCheckerzeigts
@DerCheckerzeigts 3 года назад
You could do it with motionlayout, but it is not as easy as this approach.
@PhilippLackner
@PhilippLackner 3 года назад
just call addSharedElement on your fragment transaction, it's basically the same
Далее
The Ultimate Retrofit Crash Course
34:49
Просмотров 95 тыс.
А вы знали что металл тонет?
00:32
Физика пасты Карбонара 🧪🔬
00:57
HERE WE GOOOOOO! 🔥 #ufc308
00:14
Просмотров 548 тыс.
How to Support ALL Screen Sizes on Android - Full Guide
19:10
6 Design Patterns Every Android Developer Must Know
14:16
Android Gestures: Getting Started
19:16
Просмотров 54 тыс.
Motion Layout in Action | Android Studio Tutorial
14:19
If __name__ == "__main__" for Python Developers
8:47
Просмотров 409 тыс.
А вы знали что металл тонет?
00:32