No video

How to Add a Floating Action Button to a Bottom Navigation - Android Studio Tutorial

  Рет қаралды 100,774

Philipp Lackner

Philipp Lackner

Күн бұрын

In this video you will learn how you can make a BottomNavigationView with a FloatingActionButton in the middle.
⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/...
Material Design Dependency:
implementation 'com.google.android.material:material:1.3.0-alpha03'
Get the source code for this video here:
github.com/phi...
Regular Android tutorials on my Instagram: / philipplackner_official
Checkout my GitHub: github.com/phi...
You like my free content? Here you can me a coffee:
www.buymeacoff...

Пікірлер: 204
@ktamilselvan1
@ktamilselvan1 3 жыл бұрын
almost viewed all your videos !!! app:contentInsetStart="0dp" app:contentInsetLeft="0dp" u can use to remove the left margin
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks! :)
@ashokas5812
@ashokas5812 3 жыл бұрын
Tkz...
@alexandrecloutier816
@alexandrecloutier816 Жыл бұрын
There is a shadow because the layout is elevated by default, just like it is the case with buttons and card views when there is a background drawable. The solution is to add : android:elevation="0dp" to remove the default value. Good video Philipp 😃
@fathiyajourney
@fathiyajourney 3 жыл бұрын
"This video sponsored by my self" 😂 I've been waiting for this 👍
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Hope you enjoyed it!
@waheed_akhtar
@waheed_akhtar 3 жыл бұрын
A german with a good sense of humor. A very rare thing :D
@crateer
@crateer 3 жыл бұрын
Damn, you're growing so fast! Keep it up :)
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks man!
@miranmustafa7637
@miranmustafa7637 3 жыл бұрын
You can fix the shadow by seting: app:elevation="0dp" to bottom nav view
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Cool, thanks!
@yechielbabani1726
@yechielbabani1726 3 жыл бұрын
ty
@mohamedghazali4914
@mohamedghazali4914 3 жыл бұрын
Thanks Alllot, Much thanks you saved my Time!!!
@creativearts4917
@creativearts4917 2 жыл бұрын
we can get rid of that shadow in the bottom view with the help of this line of code : android:outlineSpotShadowColor="@android:color/transparent" followed in BottomNavigationView✌
@jchrisml25
@jchrisml25 Жыл бұрын
Thanks
@rezanurramadhan7850
@rezanurramadhan7850 Жыл бұрын
thanks
@swetblack6
@swetblack6 8 ай бұрын
Thanks!
@Blue_1208
@Blue_1208 4 ай бұрын
Thanks
@sumitsuryawanshi9060
@sumitsuryawanshi9060 2 жыл бұрын
You're AMAZING brother ;D Sending Love from India.
@ThienNguyen-cd6rn
@ThienNguyen-cd6rn 3 жыл бұрын
Thank for this helpful video ! From Vietnam with love !
@supremecrackerr4687
@supremecrackerr4687 Жыл бұрын
Thank you so much for this video, really helepd me in a pinch! adding < app:contentInsetStart="0dp" > to the BottomAppBar removed that left margin space for me!
@Berk45632
@Berk45632 3 жыл бұрын
The video I have waited for so long! ❤️❤️
@PhilippLackner
@PhilippLackner 3 жыл бұрын
There you go :D
@jaypanchal8284
@jaypanchal8284 2 жыл бұрын
Good One Philip. had been thinking about doing the same and i found your video here, great explanation and great implementation without using any library.
@devendravarma5074
@devendravarma5074 3 жыл бұрын
Adding bottom navigation inside bottom appbar was the great idea, you are just awesome.. Btw, you can also disable the centre menu from your XML file; Happy Coding :)
@Indently
@Indently 3 жыл бұрын
Also I'm looking forward to seeing your curly hipster moustache
@agytfreefire
@agytfreefire 2 жыл бұрын
D:
@moriz8549
@moriz8549 3 жыл бұрын
That's a useful tutorial, Thanks dear Philipp , and awesome as always ⭐⭐⭐⭐⭐
@santriptmehta1964
@santriptmehta1964 2 жыл бұрын
I was really waiting for this.
@Sweetironman
@Sweetironman 3 жыл бұрын
Damn Man Your Voice and accent is just awesome 🤩💥💥
@artem9114
@artem9114 3 жыл бұрын
right when i needed, thanks a lot bro!
@bjugdbjk
@bjugdbjk 3 жыл бұрын
OMG..ur videos save tons f time man ... waiting for fr ur kotlin stuff man...
@AWNHACKS
@AWNHACKS 2 жыл бұрын
That's one unique tutorial man. Appreciate it.....😊👍
@volchok1001
@volchok1001 3 жыл бұрын
Thanks a lot. Worked as expected
@diegoribeiro5992
@diegoribeiro5992 3 жыл бұрын
Thank you, Phill!!
@gadeern1586
@gadeern1586 2 жыл бұрын
Amazing tutorial! Thank you very much 😍🔥
@Peter-Petes
@Peter-Petes 3 жыл бұрын
Just Add android:outlineSpotShadowColor="@android:color/transparent" inside BottomNavigationView tag to make the shadow disappear. Dosen't require anything on MainActivity.Kt. -----> This works only on API level 28 and above ! Requires Override.
@sharadregoti7742
@sharadregoti7742 2 жыл бұрын
Thanks it worked
@sajantamang4926
@sajantamang4926 3 жыл бұрын
Can we apply this UX in other layouts beside CoordinatorLayout?
@st.libertos
@st.libertos 2 жыл бұрын
This tutorial is awesome!
@mazoochian
@mazoochian 3 жыл бұрын
Man Beff Jezos got some abs!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Yea he's a strong guy
@vanduong9602
@vanduong9602 3 жыл бұрын
Thank you so much, other channels always use library.
@aaryan6577
@aaryan6577 2 жыл бұрын
So did he😂
@sindupratama8966
@sindupratama8966 2 жыл бұрын
thanks mate you save my life, subscribed +1
@alejandrogonzalez2783
@alejandrogonzalez2783 2 жыл бұрын
it was useful for me. Thank you
@noahhcams
@noahhcams 2 жыл бұрын
Super helpful!
@kamzz8651
@kamzz8651 2 жыл бұрын
this is amazing tutorial 100/100
@mohammadmirzakhanidehkordi8561
@mohammadmirzakhanidehkordi8561 3 жыл бұрын
wow it is awesome video, where is the step which you connected it to navigation component lib ?
@theonlyarjun
@theonlyarjun 3 жыл бұрын
It's 2020 and we still need to do hacky stuff to get things done on android.... Nice tutorial btw.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Yea that's one reason why I don't like designing
@fahrican9708
@fahrican9708 3 жыл бұрын
very useful video! thanks
@MaNaa2000
@MaNaa2000 3 жыл бұрын
great video, really really helpful
@syednoorullahshah9194
@syednoorullahshah9194 3 жыл бұрын
great tutorial mate 👌
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thank you 👍
@lalaley2026nis-dm3oj
@lalaley2026nis-dm3oj Жыл бұрын
pefrect! Thanks! Рахмет!
@navamragulan2017
@navamragulan2017 2 жыл бұрын
Thank you .very useful.....
@yahia9266
@yahia9266 2 жыл бұрын
Thank you bruh
@user-ez4ol2ri4h
@user-ez4ol2ri4h 3 жыл бұрын
Impressive design😍
@Trosydman
@Trosydman 3 жыл бұрын
Thank you for this tutorial!!!! I was looking for something like this for my app. I was wondering if it is possible that the ripple effects, of each item, don't go beyond the boundaries of the BottomAppBar view. Thank you in advance!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Don't know if this is possible out of the box. There is essentially a background you need to apply to make something have that click effect, there might be different versions of that background, idk. But for sure with a custom view it's possible
@IonutNegru87
@IonutNegru87 Жыл бұрын
The left margin can be fixed by using "app:contentInsetStart="0dp"" on your BottomAppBar widget.
@kumar_k19
@kumar_k19 2 жыл бұрын
Thanks bro 👍
@mrdeveloper4438
@mrdeveloper4438 3 жыл бұрын
Awesome bro .....
@yanaungphyo9807
@yanaungphyo9807 2 жыл бұрын
thanks
@iamvahitkeskin
@iamvahitkeskin 3 жыл бұрын
Very thanks :)
@sikander_rafique
@sikander_rafique 3 жыл бұрын
Thank you
@nolant3728
@nolant3728 4 ай бұрын
mate when I've tried to use this design, all my fragments which contain scrollview end up pushing the bottom nav menu down off screen. Do you know how to fix this?
@MCStarYT
@MCStarYT 3 жыл бұрын
Facebook is doomed in the face of your social media app! ;-)
@PhilippLackner
@PhilippLackner 3 жыл бұрын
They are :D
@parulson6274
@parulson6274 2 жыл бұрын
Youre awesome❤️❤️
@hassanammer7854
@hassanammer7854 3 жыл бұрын
How to increase my work experience as a junior android developer to get work in a company or a freelance ?
@ethiomusic3158
@ethiomusic3158 3 жыл бұрын
How can we use "home" fragment as an activity_main?... Can we also make fragments inside other activities (not only in main_activity)? Most of the examples are made on main_activity... How can we make fragments into other activities? May be I misunderstood something about fragments. I can make fragments but the icons are not working properly with the fragments.
@Indy293
@Indy293 3 жыл бұрын
thanks a lot
@chewataapp7021
@chewataapp7021 3 жыл бұрын
Actually you can disable the item in menu itself. android:enabled="false" Quick and easy fix.
@truongpham7279
@truongpham7279 3 жыл бұрын
very useful!
@sat_talk
@sat_talk 3 жыл бұрын
didn't get you bro.. where pl. tell me what should I do where?
@paviyarasanv4192
@paviyarasanv4192 3 жыл бұрын
sir i am faced "Manifest merger failed with multiple errors, see logs" !error ,what i do ?
@mehulbisht9708
@mehulbisht9708 3 жыл бұрын
what about the music player series ? now that Google Play Music is going away, it's your time to shine come on !! finish that series 😂😂
@robertoc2678
@robertoc2678 3 жыл бұрын
excelente tutorial, un saludo desde México, una duda, como implementar la lógica para que funcione o haga algo en los botones, tengo entendido que se usan fragmentos pero tengo problemas al entender eso, no se si tienes algún otro video donde expliques como implementar lo demás me seria de gran ayuda sin mas, un excelente tutorial
@dipagove8963
@dipagove8963 3 жыл бұрын
I follow your tutorials, its help me.Thanks a lot. Can you help me out for animation to add color curve start to end below fab onselection of bottom item with getting its color.
@vinaykumarpatel649
@vinaykumarpatel649 3 жыл бұрын
Awesome 👌🏻👌🏻
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks 🤗
@linox20
@linox20 2 жыл бұрын
great body phillips😂
@yechielbabani1726
@yechielbabani1726 3 жыл бұрын
i see you do this with kotlin is there any chance it wont be able to work with java?
@lukassxx8989
@lukassxx8989 3 жыл бұрын
BottomNavigationView a=(BottomNavigationView) findViewById(R.id.bottomNavigationview); a.getMenu().getItem(2).setEnabled(false);
@ij1316
@ij1316 2 жыл бұрын
Type the code in notepad/text editor. Paste the code directly into the .java file with Android Studio. It will ask if you want to convert it to Java. Click "Yes". Then the code will be converted to Java.
@mohsanikram3569
@mohsanikram3569 3 жыл бұрын
Amazing
@AryanvedhFromIndia
@AryanvedhFromIndia 3 жыл бұрын
hey philipp, i am watching your video now, layout_anchor isn't working. what else can i do to follow your tutorial and get same result?
@ujanglukman3797
@ujanglukman3797 2 жыл бұрын
HEllo. Thank you for video. it is very usefull. May I ask you a question about this theme setting up. In the video it change to Theme.MaterialComponents, but I need to use Material3 theme. Is there any suggestion? Thank you.
@truongxuan8322d
@truongxuan8322d 4 ай бұрын
Theme.MaterialComponents.DayNight.NoActionBar
@hosseinmirzazadeh290
@hosseinmirzazadeh290 3 жыл бұрын
Great 👍
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thank you 👍
@bekaryssailaukul1006
@bekaryssailaukul1006 3 жыл бұрын
How to set fragment with nav graph above that bottom app bar in coordinator layout? Please
@sjsjsjsjsjxnxjjssjjs
@sjsjsjsjsjxnxjjssjjs 3 жыл бұрын
so nice
@acebookwisdom
@acebookwisdom 3 жыл бұрын
How to use it with fragment connected to navigation resource?
@giorgioferrari8114
@giorgioferrari8114 3 жыл бұрын
Hi! and thank you for the android code ! i use it and it works good ! is possible to express the same code but in HTML and CSS ? i'm trying to develope an apache cordova app that will be the same as the android one, but i have some problems with that. i 've try to write html and css code to express the same functions of the android, but it doesn't works ! do you have the html and css code ? thank's !
@mountrat
@mountrat 3 жыл бұрын
How to go to different tabs when clicking Home, search, profile, settings...? Can anybody help me
@alextokarev7750
@alextokarev7750 3 жыл бұрын
nice beard mate!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks! :D
@ducnguyendinhtrung4745
@ducnguyendinhtrung4745 2 жыл бұрын
How can i click to each item and go to another fragment, can you show me or recommend another videos?
@amoljunghare3610
@amoljunghare3610 2 жыл бұрын
Can you animate fab also.I just want to open a curve shaped dialog when fabis clicked .Do you have idea of it??
@hnim2292
@hnim2292 3 жыл бұрын
wow nice
@mosfeqhossain2226
@mosfeqhossain2226 10 ай бұрын
Beff Jezos looking hench 🤣🤣🤣
@tonymac249
@tonymac249 3 жыл бұрын
Hi, Can anybody tell me how to add another view to this such as a recyclerView or any view and stop it overlapping the bottom navigation.
@kondalraotirumalasetty3908
@kondalraotirumalasetty3908 2 жыл бұрын
can you make curved bottom navigation with animation and text as well for the menus
@ChiragVariya-df3ty
@ChiragVariya-df3ty 6 ай бұрын
Hello, Good morning! I want light theme set bottom navigation with same round
@spidey5324
@spidey5324 2 жыл бұрын
Can you set the bottom appBar in a constraint layout?
@nearmint8350
@nearmint8350 2 жыл бұрын
Followed the same steps, even tried copying the code but my bottomNavigationView just does not appear... It is there but i cannot see it
@yuvalanteby9564
@yuvalanteby9564 3 жыл бұрын
How can I change the bottom navigation's color while still using the transparent method you used?
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Don't change the color of the bottom nav, change the color of the bottom app bar
@chorauoc139
@chorauoc139 3 жыл бұрын
@@PhilippLackner Can you tell how to do this, because I have tried by adding a style but not working
@alirezazarghi4682
@alirezazarghi4682 3 жыл бұрын
@@PhilippLackner hi can help me , not change color ?
@PaulLui512
@PaulLui512 2 жыл бұрын
@@alirezazarghi4682 ​ try android:backgroundTint="@color/red"
@fengchin3567
@fengchin3567 3 жыл бұрын
very good vidoe , can you make a video which use jetpack buttomnavigation and float button together
@iam_omar
@iam_omar 3 жыл бұрын
Bruh is that johny on the app 😂😂
@PhilippLackner
@PhilippLackner 3 жыл бұрын
That's Beff
@vantangle2563
@vantangle2563 3 жыл бұрын
Hi, How we can reach fabCradleRoundedCornerRadius on Jetpeck Compose?
@shekharsaini9069
@shekharsaini9069 Жыл бұрын
can you make a video for this tutorial in Jatpack compose
@shreyashchoudhary7413
@shreyashchoudhary7413 3 жыл бұрын
Epic!
@introvertsdiary
@introvertsdiary 3 жыл бұрын
I cant remove the shadow by putting bottomnavigationview to null.. the code is error how to fix it? Im using java
@sharadregoti7742
@sharadregoti7742 2 жыл бұрын
How can i always display menu item names ?, currently it show the titles only when the item is clicked
@alvinimbuka8283
@alvinimbuka8283 3 жыл бұрын
hello, my bottom navigation view on the main activity is not being refernced and is giving me an error
@hemantriffs
@hemantriffs 3 жыл бұрын
Thank you for the tutorial but bottomNavigationView cannot be resolved in MainActivity.class
@codercoder7270
@codercoder7270 3 жыл бұрын
İ have a question , can we create web application in kotlin , i create web app in spring which is framework of java , Does kotlin have any framework for web app?
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Yes, Kotlin has a very awesome backend framework called Ktor. I have a premium course about that here on my website pl-coding.com/courses/powerful-kotlin-rest-apis-with-ktor/
@bilalaslam571
@bilalaslam571 3 жыл бұрын
how to set bottomNavigationView.background= null in java because it didn't showing the background attribute.
@ojiidroid
@ojiidroid 3 жыл бұрын
do you play substratum?
@ChiragVariya-df3ty
@ChiragVariya-df3ty Жыл бұрын
Hi, How to set getOrCreateBadge text and number
@pickemparty
@pickemparty 3 жыл бұрын
Is this a Kotlin or Java solution?
@eagleeye77568
@eagleeye77568 3 жыл бұрын
do you have this in java?
@pickemparty
@pickemparty 3 жыл бұрын
Where is the item bottomNavigationView being init in the MainActvity ?
@slaviboy
@slaviboy 2 жыл бұрын
You can set xml property android:background="@null"
@Indently
@Indently 3 жыл бұрын
How to set on click listener
@PhilippLackner
@PhilippLackner 3 жыл бұрын
My next premium course will cover that
@Imelec
@Imelec 3 жыл бұрын
pastebin.com/TqV9FsmA
How to make a Splash Screen without extra Activity in Android
9:48
Philipp Lackner
Рет қаралды 86 М.
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 51 МЛН
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 36 МЛН
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 76 МЛН
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,6 МЛН
FAKE ACCENTS | Stand-up Comedy by Niv Prakasam
9:08
Niv Prakasam
Рет қаралды 5 МЛН
Expandable Floating Action Button - Android Studio Tutorial
12:55
The perfect imperfection of Google's Material You
15:47
David Imel
Рет қаралды 434 М.
BOTTOM NAVIGATION VIEW - Android Fundamentals
16:53
Philipp Lackner
Рет қаралды 54 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 967 М.
Pager | Compose Tips
5:27
Android Developers
Рет қаралды 11 М.
Make Your Code Clean With the SOLID Principles
18:24
Philipp Lackner
Рет қаралды 98 М.
How to shape a Floating Action Button in Android (without library)
13:29
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 51 МЛН