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

  Рет қаралды 103,802

Philipp Lackner

Philipp Lackner

Күн бұрын

Пікірлер: 205
@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 2 жыл бұрын
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 😃
@miranmustafa7637
@miranmustafa7637 4 жыл бұрын
You can fix the shadow by seting: app:elevation="0dp" to bottom nav view
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Cool, thanks!
@yechielbabani1726
@yechielbabani1726 4 жыл бұрын
ty
@mohamedghazali4914
@mohamedghazali4914 3 жыл бұрын
Thanks Alllot, Much thanks you saved my Time!!!
@fathiyajourney
@fathiyajourney 4 жыл бұрын
"This video sponsored by my self" 😂 I've been waiting for this 👍
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Hope you enjoyed it!
@waheed_akhtar
@waheed_akhtar 4 жыл бұрын
A german with a good sense of humor. A very rare thing :D
@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 2 жыл бұрын
Thanks
@rezanurramadhan7850
@rezanurramadhan7850 Жыл бұрын
thanks
@swetblack6
@swetblack6 Жыл бұрын
Thanks!
@Blue_1208
@Blue_1208 8 ай бұрын
Thanks
@supremecrackerr4687
@supremecrackerr4687 2 жыл бұрын
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!
@sumitsuryawanshi9060
@sumitsuryawanshi9060 2 жыл бұрын
You're AMAZING brother ;D Sending Love from India.
@ThienNguyen-cd6rn
@ThienNguyen-cd6rn 4 жыл бұрын
Thank for this helpful video ! From Vietnam with love !
@crateer
@crateer 4 жыл бұрын
Damn, you're growing so fast! Keep it up :)
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Thanks man!
@jaypanchal8284
@jaypanchal8284 3 жыл бұрын
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 4 жыл бұрын
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 :)
@bjugdbjk
@bjugdbjk 3 жыл бұрын
OMG..ur videos save tons f time man ... waiting for fr ur kotlin stuff man...
@moriz8549
@moriz8549 3 жыл бұрын
That's a useful tutorial, Thanks dear Philipp , and awesome as always ⭐⭐⭐⭐⭐
@Peter-Petes
@Peter-Petes 4 жыл бұрын
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 3 жыл бұрын
Thanks it worked
@sajantamang4926
@sajantamang4926 4 жыл бұрын
Can we apply this UX in other layouts beside CoordinatorLayout?
@Sweetironman
@Sweetironman 3 жыл бұрын
Damn Man Your Voice and accent is just awesome 🤩💥💥
@artem9114
@artem9114 4 жыл бұрын
right when i needed, thanks a lot bro!
@vanduong9602
@vanduong9602 3 жыл бұрын
Thank you so much, other channels always use library.
@aaryan6577
@aaryan6577 3 жыл бұрын
So did he😂
@mohammadmirzakhanidehkordi8561
@mohammadmirzakhanidehkordi8561 4 жыл бұрын
wow it is awesome video, where is the step which you connected it to navigation component lib ?
@santriptmehta1964
@santriptmehta1964 2 жыл бұрын
I was really waiting for this.
@mazoochian
@mazoochian 4 жыл бұрын
Man Beff Jezos got some abs!
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Yea he's a strong guy
@Indently
@Indently 4 жыл бұрын
Also I'm looking forward to seeing your curly hipster moustache
@agytfreefire
@agytfreefire 2 жыл бұрын
D:
@penggunayoutube2580
@penggunayoutube2580 19 күн бұрын
Can you make this in compose? I want to migrate my past xml project to compose with similar bottom navbar to this, but there really not much tutorial on how to create custom navbar in compose
@AWNHACKS
@AWNHACKS 3 жыл бұрын
That's one unique tutorial man. Appreciate it.....😊👍
@alejandrogonzalez2783
@alejandrogonzalez2783 3 жыл бұрын
it was useful for me. Thank you
@theonlyarjun
@theonlyarjun 4 жыл бұрын
It's 2020 and we still need to do hacky stuff to get things done on android.... Nice tutorial btw.
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Yea that's one reason why I don't like designing
@CybercoderNaj
@CybercoderNaj 4 жыл бұрын
The video I have waited for so long! ❤️❤️
@PhilippLackner
@PhilippLackner 4 жыл бұрын
There you go :D
@sindupratama8966
@sindupratama8966 2 жыл бұрын
thanks mate you save my life, subscribed +1
@kamzz8651
@kamzz8651 2 жыл бұрын
this is amazing tutorial 100/100
@gadeern1586
@gadeern1586 3 жыл бұрын
Amazing tutorial! Thank you very much 😍🔥
@IonutNegru87
@IonutNegru87 2 жыл бұрын
The left margin can be fixed by using "app:contentInsetStart="0dp"" on your BottomAppBar widget.
@syednoorullahshah9194
@syednoorullahshah9194 4 жыл бұрын
great tutorial mate 👌
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Thank you 👍
@st.libertos
@st.libertos 2 жыл бұрын
This tutorial is awesome!
@أميرالبلابل
@أميرالبلابل 4 жыл бұрын
Impressive design😍
@yechielbabani1726
@yechielbabani1726 4 жыл бұрын
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.
@engincicek8882
@engincicek8882 3 жыл бұрын
How can i invisible bottomnavigation item in java ? 14:14
@lukassxx8989
@lukassxx8989 3 жыл бұрын
BottomNavigationView a=(BottomNavigationView) findViewById(R.id.bottomNavigationview); a.getMenu().getItem(2).setEnabled(false);
@engincicek8882
@engincicek8882 3 жыл бұрын
@@lukassxx8989 thnx bro
@lukassxx8989
@lukassxx8989 3 жыл бұрын
@@engincicek8882 no prob :))
@yuvalanteby9564
@yuvalanteby9564 4 жыл бұрын
How can I change the bottom navigation's color while still using the transparent method you used?
@PhilippLackner
@PhilippLackner 4 жыл бұрын
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"
@diegoribeiro5992
@diegoribeiro5992 4 жыл бұрын
Thank you, Phill!!
@Indently
@Indently 4 жыл бұрын
How to set on click listener
@PhilippLackner
@PhilippLackner 4 жыл бұрын
My next premium course will cover that
@Imelec
@Imelec 4 жыл бұрын
pastebin.com/TqV9FsmA
@Trosydman
@Trosydman 4 жыл бұрын
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 4 жыл бұрын
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
@fahrican9708
@fahrican9708 4 жыл бұрын
very useful video! thanks
@kumar_k19
@kumar_k19 3 жыл бұрын
Thanks bro 👍
@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 7 ай бұрын
Theme.MaterialComponents.DayNight.NoActionBar
@MaNaa2000
@MaNaa2000 4 жыл бұрын
great video, really really helpful
@navamragulan2017
@navamragulan2017 3 жыл бұрын
Thank you .very useful.....
@bekaryssailaukul1006
@bekaryssailaukul1006 4 жыл бұрын
How to set fragment with nav graph above that bottom app bar in coordinator layout? Please
@lalaley2026nis-dm3oj
@lalaley2026nis-dm3oj Жыл бұрын
pefrect! Thanks! Рахмет!
@rtz6777
@rtz6777 Ай бұрын
how do i change the color of the Bottom navigation view just like from the thumbnail?
@acebookwisdom
@acebookwisdom 3 жыл бұрын
How to use it with fragment connected to navigation resource?
@mrdeveloper4438
@mrdeveloper4438 4 жыл бұрын
Awesome bro .....
@linox20
@linox20 2 жыл бұрын
great body phillips😂
@nolant3728
@nolant3728 8 ай бұрын
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?
@paviyarasanv4192
@paviyarasanv4192 3 жыл бұрын
sir i am faced "Manifest merger failed with multiple errors, see logs" !error ,what i do ?
@vantangle2563
@vantangle2563 3 жыл бұрын
Hi, How we can reach fabCradleRoundedCornerRadius on Jetpeck Compose?
@mountrat
@mountrat 3 жыл бұрын
How to go to different tabs when clicking Home, search, profile, settings...? Can anybody help me
@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.
@ducnguyendinhtrung4745
@ducnguyendinhtrung4745 2 жыл бұрын
How can i click to each item and go to another fragment, can you show me or recommend another videos?
@codercoder7270
@codercoder7270 4 жыл бұрын
İ 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 4 жыл бұрын
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/
@spidey5324
@spidey5324 2 жыл бұрын
Can you set the bottom appBar in a constraint layout?
@hassanammer7854
@hassanammer7854 4 жыл бұрын
How to increase my work experience as a junior android developer to get work in a company or a freelance ?
@noahhcams
@noahhcams 2 жыл бұрын
Super helpful!
@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.
@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
@ChiragVariya-df3ty
@ChiragVariya-df3ty 10 ай бұрын
Hello, Good morning! I want light theme set bottom navigation with same round
@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.
@parulson6274
@parulson6274 2 жыл бұрын
Youre awesome❤️❤️
@vinaykumarpatel649
@vinaykumarpatel649 4 жыл бұрын
Awesome 👌🏻👌🏻
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Thanks 🤗
@yahia9266
@yahia9266 2 жыл бұрын
Thank you bruh
@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?
@kondalraotirumalasetty3908
@kondalraotirumalasetty3908 2 жыл бұрын
can you make curved bottom navigation with animation and text as well for the menus
@ojiidroid
@ojiidroid 4 жыл бұрын
do you play substratum?
@alextokarev7750
@alextokarev7750 4 жыл бұрын
nice beard mate!
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Thanks! :D
@makranamarble2429
@makranamarble2429 4 жыл бұрын
when will the full course will arrive
@PhilippLackner
@PhilippLackner 4 жыл бұрын
That depends how quickly my voice recovers, but it's already getting a lot better. I guess in about a month or so
@amoljunghare3610
@amoljunghare3610 3 жыл бұрын
Can you animate fab also.I just want to open a curve shaped dialog when fabis clicked .Do you have idea of it??
@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?
@shekharsaini9069
@shekharsaini9069 Жыл бұрын
can you make a video for this tutorial in Jatpack compose
@kondalraotirumalasetty3908
@kondalraotirumalasetty3908 2 жыл бұрын
can we make curve from upside
@anudeepananth
@anudeepananth 3 жыл бұрын
How would we do this Jetpack compose
@sharadregoti7742
@sharadregoti7742 3 жыл бұрын
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
@ChiragVariya-df3ty
@ChiragVariya-df3ty Жыл бұрын
Hi, How to set getOrCreateBadge text and number
@sikander_rafique
@sikander_rafique 3 жыл бұрын
Thank you
@bilalaslam571
@bilalaslam571 3 жыл бұрын
how to set bottomNavigationView.background= null in java because it didn't showing the background attribute.
@kumarselvam3940
@kumarselvam3940 3 жыл бұрын
Is it possible to use this code in xamarin.... Please any one help me i need to implement bottom bar with fab button in my project
@Peter-Petes
@Peter-Petes 4 жыл бұрын
Bro, how to set setOnclickListener for those menu items ? I couldn't 😥
@PhilippLackner
@PhilippLackner 4 жыл бұрын
setNavigationItemSelectedListener
@MCStarYT
@MCStarYT 4 жыл бұрын
Facebook is doomed in the face of your social media app! ;-)
@PhilippLackner
@PhilippLackner 4 жыл бұрын
They are :D
@fengchin3567
@fengchin3567 4 жыл бұрын
very good vidoe , can you make a video which use jetpack buttomnavigation and float button together
@slaviboy
@slaviboy 2 жыл бұрын
You can set xml property android:background="@null"
@jagoans4190
@jagoans4190 4 жыл бұрын
how to make bottom bar transparant in MainActivity java ?
@introvertsdiary
@introvertsdiary 3 жыл бұрын
I cant remove the shadow by putting bottomnavigationview to null.. the code is error how to fix it? Im using java
@vahit·keskin
@vahit·keskin 3 жыл бұрын
Very thanks :)
@Indy293
@Indy293 3 жыл бұрын
thanks a lot
@pickemparty
@pickemparty 3 жыл бұрын
Is this a Kotlin or Java solution?
@mamunkhan6463
@mamunkhan6463 3 жыл бұрын
how can i change the background
@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 !
@hosseinmirzazadeh290
@hosseinmirzazadeh290 4 жыл бұрын
Great 👍
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Thank you 👍
@vildanvinanda5919
@vildanvinanda5919 2 жыл бұрын
hi sir how to custom color in floating button?
@pickemparty
@pickemparty 3 жыл бұрын
Where is the item bottomNavigationView being init in the MainActvity ?
@ritikmalhotra6252
@ritikmalhotra6252 2 жыл бұрын
i am facing an issue how to setup navigation component with this floating bottom app bar can anyone please provide a code doing bottom app bar with floating action button and navigation component
BOTTOM NAVIGATION VIEW - Android Fundamentals
16:53
Philipp Lackner
Рет қаралды 56 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
How to shape a Floating Action Button in Android (without library)
13:29
Bottom Navigation Bar in Android Studio using Java | Explanation
14:12
Android Knowledge
Рет қаралды 52 М.
How to make a Splash Screen without extra Activity in Android
9:48
Philipp Lackner
Рет қаралды 86 М.
6 Design Patterns Every Android Developer Must Know
14:16
Philipp Lackner
Рет қаралды 83 М.
Expandable Floating Action Button - Android Studio Tutorial
12:55
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН