Thanks for the tutorial! Maybe I can collaborate with two tips: 1 - Setting the view as GONE will solve the problem of clickable in INVISIBLE state. 2- If you use the variable "clicked" as a global kind, you wont need to pass it as parameter in the functions. Thanks again!
@padmashreebn27093 жыл бұрын
GONE is the right way to do it. Invisible will block clicks on the underlaying fragment/activity and is a bad hack overall.
@Hevletica2 жыл бұрын
This should be pinned since it is a better approach than what is done in the video. Thank you.
@nerij2056 Жыл бұрын
yes but no, setting the visibility to GONE and the animation wont work since the INVISIBLE state let the view stay at that position but the GONE state will move the view back to where it was restricted. But a workaround for this is to set visibility to GONE after finishing the animation using Handler or etc (I think the android team should support this in the future)
@joacortez34234 жыл бұрын
There are very few android studio with kotlin tutorials but after discovering you I don't think I need more
@AnilKumar-hf2po2 жыл бұрын
Thank you, Stevdza San. I love this channel. It has taught me a lot of new things. I found one issue with Floating action button invisibility and I resolved that issue with FloatingActionButton hide() and show().
@4ytonly4 жыл бұрын
If you use visibility GONE instead of INVISIBLE, you shouldn't have problems with registering clicks on empty space. And great video btw :)
@StevdzaSan4 жыл бұрын
But then animation would not work
@4ytonly4 жыл бұрын
@@StevdzaSan Aha, ok :)
@4ytonly4 жыл бұрын
@@StevdzaSan How about for the second part of the video putting all the code into library and reusing it in different project?
@prasannadeshpande44353 жыл бұрын
Thank you, Stevdza San. I love this channel. It has taught me a lot of things.
@StevdzaSan3 жыл бұрын
I'm happy to hear that buddy! :)
@vitorsantos-sedesigner75494 жыл бұрын
Wooow, finally, the best of web!! Awesome
@kateanne4193 жыл бұрын
A lot of your videos helped me so much! Thank you, I hope you make more videos about UI/UX
@brianangeht Жыл бұрын
Thanks for the lesson. Would be nice if you shared link to repo too. But thanks a lot!
@marc9882 жыл бұрын
Really appreciate but How to close or collapse the fab button NOT ONLY when we click on the fab button again BUT ALSO when we click outside of the fab (elsewhere in the background) ? Help me please ! 🙏 I'm a beginner and I've been looking for this for a really long time....
@deepikajuneja21133 жыл бұрын
How to decrease the opacity of background (including the action bar) when fab expands? I've tried multiple measures but can't find a way to apply the required effect to action bar.
@wincevilleaguer50433 жыл бұрын
Do you have the same tutorial as this but in java
@HimanshuSharma-cs4pe4 жыл бұрын
it is very much helpful . Thank you for the videos.
@AlbertoGuitarrista2 жыл бұрын
This is very helpful! Thank you so much!
@ManuelGonzalez-sw1bv3 жыл бұрын
Hi how are things! I saw your video and I really liked it, will you have another one explaining the procedure in JAVA? Thank you
@Ayor888 ай бұрын
can you do this with jetpack compose ? can't find any video as clear as this one on expandable FAB with jetpack compose
@cyberandroidgames61014 жыл бұрын
amazing, firebase cloud functions a video about this was excellent
@cyberandroidgames61014 жыл бұрын
would be excellent, sorry for my english
@hamedhardani8302 Жыл бұрын
Hi. Is there a way to do this with Jetpack Compose? I didn't find any resource for that
@alvaroruiz2594 жыл бұрын
Very good! but someone who helps me the logic in java, thanks you!
@DPPDolphin3 жыл бұрын
look in github
@fernanfaranal76733 жыл бұрын
@@DPPDolphin how
@rubenarizmendicortes63663 жыл бұрын
Rally good video!
@hdkloh68574 жыл бұрын
Add more videos man... You are too awesome....
@videkkkk2 жыл бұрын
Hello Sir, what must i change to be able to use the logic code in java?
@urvishbundela78264 жыл бұрын
Thanks a lot brother for this!
@valeriao54742 жыл бұрын
Hi thanks fo the tutorial, was really helpful but i have a problem. My buttons keep visible after i trigger the add button, why could it be??
@desoftsis Жыл бұрын
VeryGood Thanks
@Pro100Dev2 жыл бұрын
Bro! Can u show how can i autoclose this FAB when i press on one of this button or screen pls! I think need some write on setAnimation(), but i'll try all xD
@CubeEdgeRecap4 жыл бұрын
Instead of clickable false. why not set visibility to gone? And what if any clickable view stack below that fab which are invisible and not clickable? By the way you are awesome. Just perfect
@StevdzaSan4 жыл бұрын
Setting visibility to gone will disable the animation
@CubeEdgeRecap4 жыл бұрын
@@StevdzaSan oh I did not notice that. Thanks for quick reply. ❤️
@Mahmudulhasan-ts5hm Жыл бұрын
thank you very much
@johnsebastiangordilloavila24054 жыл бұрын
Gracias, saludos desde Colombia
@MrArsalanfakhar3 жыл бұрын
Great tutorial
@ashishgautam28424 жыл бұрын
very helpful 👍👍
@fernanfaranal76733 жыл бұрын
is there a java version or the MainActivity? i am using java
@jayceeddeyro14064 жыл бұрын
I have a question. how will you add this in a navigation component?
@sinan75294 жыл бұрын
Very good but animation doesn't work the second time. Can you help me ?
@yechannelnhichalega37104 жыл бұрын
Bro please paste github link so that we can copy and reuse your code
@LopezZw0w74 жыл бұрын
Hi, great tutorial, but could you tell me how to make the buttons not so far apart? There is a large gap between the first button and the pen button. Thank you!
@AlbertoGuitarrista2 жыл бұрын
All you have to do is reducing the constraint space. You can either type the XML code or use the properties panel on the right. I hope it helps!
@EnitinEnitin3 жыл бұрын
The buttons are still there. That means you can't scroll when you accidentally click on the invisible buttons...
@arthurrodrigues53823 жыл бұрын
Thanks!!!
@Manishkumar-wt9tf2 жыл бұрын
I want to add text in floating action button.. How can i do that
@shashwathknath63792 жыл бұрын
What is val in "private val rotateOpen"? Is it a java Class?
@merciaaraujo15222 жыл бұрын
essa parte do private val no da certo no java.......como que eu coloco ....
@Pro100Dev2 жыл бұрын
Thx!
@StevdzaSan2 жыл бұрын
You're welcome 👌
@hachij_4 жыл бұрын
any common library for this kind of functionality out there?
@danielleguizamon98914 жыл бұрын
A library is not necessary for this, you could use the code in an extension function and use it where it should, it is a recommendation
@merciaaraujo15222 жыл бұрын
voce poderia fazer em java ...por favor........um video sobre esse assunto....eu gostei muito....gostaria de fazer esse detalhe no meu aplicativo......
@clxwnxD-vy7sf4 жыл бұрын
How could I implement this in java sir? is it the same way as what you did in kotlin?
@danielleguizamon98914 жыл бұрын
It is basically the same but in Java, it would not have any problem
@clxwnxD-vy7sf4 жыл бұрын
@@danielleguizamon9891 Thanks bro!
@lglf774 жыл бұрын
Isso é Kotlin ou Java no MainActivity?
@douglasbittencourt48803 жыл бұрын
Uma dica: é só olhar a extensão do lado do nome da classe (MainActivity no caso). Quando for .kt é kotlin, se não, será .java
@НурханМомункулов2 жыл бұрын
Спасибо большое !!! )
@StevdzaSan2 жыл бұрын
Thanks 👊
@MultiKilimangaro Жыл бұрын
Впервые в жизни, пришлось ставить скорость 0.75х. Обычно ставлю 1.5х или 2х. Но тут пришлось замедлить 😆😆😆
@patrykk17973 жыл бұрын
I have the problem when i try to write "add_btn.SetOnClickListener... etc. Android Studio doesn't see any of floating buttons. I tried with new project with normal button and it is still the same problem. Someone knows how to solve the problem?
@StevdzaSan3 жыл бұрын
Kotlinx.synthetic is deprecated. I made video about that, check on my channel.
@patrykk17973 жыл бұрын
@@StevdzaSan Thanks a lot! That's my begining with Android Studio and I spend a lot of time to find solutions. Your channel is the most helpful on YT!
@patrykk17973 жыл бұрын
I have a question. I tried to implement this buttons in my new project. But when I did everything the same like from tutorial app is crashing. stackoverflow.com/questions/65755070/aplication-crashing-with-floating-button-and-navigation-drawer-kotlin Could you make a look on it?
@allwatched53222 жыл бұрын
@@StevdzaSan I've tried Kotlinx Synthetic migrate to View Binding in your video but it didn't worked, add_btn.set..... still not showed up in android studio. I'm using Android Studio Dolphin | 2021.3.1 Canary 7. Glad if you can help me. Thank you.
@Ilyaskoww4 жыл бұрын
when I use the code private val and animation by lazy it doesnt recognize val and lazy how can I fix this?
@stanleyjohnson87813 жыл бұрын
Same error 😭😭
@stanleyjohnson87813 жыл бұрын
@Carolina Pistillo if you have the solution please text
@stanleyjohnson87813 жыл бұрын
If you get the answer please text I have to submit this by tomorrow
@carolinapistillo41473 жыл бұрын
@@stanleyjohnson8781 Yes I have it. Try this: rotateOpen = AnimationUtils.loadAnimation(this, R.anim.rotate_open_anim);
@animesh87433 жыл бұрын
@@carolinapistillo4147 how to use this? I mean we have to use this after private val or just this line?
@farhad95794 жыл бұрын
VIDEOS Speed is fast as hell wtf
@jovzone66013 жыл бұрын
Can you use motion layout instead??
@dickson4257 ай бұрын
Yes
@yuviplays65794 жыл бұрын
Please create video on firebase authentication with OTP
@animesh87433 жыл бұрын
getting error while type val after private ! Any solution to please!!
@DPPDolphin3 жыл бұрын
if we are talking about this (private val clicked = false) then it will be correct (private var clicked = false) then there will be no error clicked =! clicked