Design Custom Toolbar - Android Studio Tutorial

  Рет қаралды 48,345

Stevdza-San

Stevdza-San

Күн бұрын

Пікірлер: 46
@elite76
@elite76 3 жыл бұрын
To the point, no messing around. Perfect video.
@0xDEAD_Inside
@0xDEAD_Inside 4 жыл бұрын
Your hardwork is admirable and your videos are informative. Thanks!
@ScienceSeekho
@ScienceSeekho 4 жыл бұрын
You are the best. Thank-you dor zooming in during video. That helps a lot to view small text as we dont have massive resolution screen.
@sohailfx
@sohailfx 4 жыл бұрын
so far the best tutorial video I have seen regarding toolbar. thanks
@s4int812
@s4int812 4 жыл бұрын
Easily explained 👏
@jonukaz1
@jonukaz1 3 жыл бұрын
Quick and straight to the point. Great tutorial man!
@aldiguizot
@aldiguizot 4 жыл бұрын
Very nice! I wonder how to show and hide action bar programmatically?
@TBrianOnline
@TBrianOnline 4 жыл бұрын
When I use this custom toolbar together with a navigation across several fragments, is there a way to change the text in the toolbar based on which fragment I open? Basically I'd like it say Home, Settings, Profile etc. depending on where I go.
@StevdzaSan
@StevdzaSan 4 жыл бұрын
You can with Navigation Component. Change the label attributes in Navigation graph.
@TBrianOnline
@TBrianOnline 4 жыл бұрын
@@StevdzaSan Ok, I changed them but the text (title) in the Toolbar is still the same even when I navigate across fragments. Is there a script that would work like a navigation button listener that would then change the Toolbar's title accordingly? I'm kinda new to android development and I'm only trying to make a simple app (similar to Fiverr) with 3 screens and a custom toolbar. I managed to put that together but the last thing I need is for the toolbar to display the name of each section that's currently opened.
@StevdzaSan
@StevdzaSan 4 жыл бұрын
Do it programmatically from your fragment.
@TBrianOnline
@TBrianOnline 4 жыл бұрын
@@StevdzaSan Ok, I made the function to do that but how do I target a textview that's in the main activity xml? I wrote this code into the fragment kt but the textview doesn't react to it: val root = inflater.inflate(R.layout.fragment_second, container, false) val TextView = root.findViewById(R.id.main_toolbar_title) TextView?.text = "Feedback"
@StevdzaSan
@StevdzaSan 4 жыл бұрын
@@TBrianOnline stackoverflow.com/questions/57014922/how-to-setup-different-toolbar-using-navigation-controller-component
@rahaf2818
@rahaf2818 4 жыл бұрын
You are the best. Thank-you dor zooming in during vide
@concise_ko
@concise_ko 4 жыл бұрын
nice man 😘👌👌
@azizbekrasulmetov9293
@azizbekrasulmetov9293 Жыл бұрын
kotlin syntetics?
@rahulitaliya8281
@rahulitaliya8281 3 жыл бұрын
How are u able to use view id's directly? I mean without using findviewbyid ?
@StevdzaSan
@StevdzaSan 3 жыл бұрын
Kotlinx.synthetic is now deprecated I already made a video about that, check it out.
@emrebahcebasi4326
@emrebahcebasi4326 3 жыл бұрын
setSupportActionBar(binding.toolbar)
@gokulsuresh4891
@gokulsuresh4891 4 жыл бұрын
sir can please show how to make action bar, toolbar and bottom navigation bar transparent, so that it shows our android background ,of our activity
@StevdzaSan
@StevdzaSan 4 жыл бұрын
Try using the hex color code with opacity values in front. For example #10XXXXXX means the specified color will have opacity of 10%.
@blahblah3347
@blahblah3347 4 жыл бұрын
AppBarLayout is not recognized in my project. Are there dependencies that make your tutorial work that you didn't mention?
@rincondepython
@rincondepython 3 жыл бұрын
excellent tutorial, thanks!
@DavidArangosoychon
@DavidArangosoychon 4 жыл бұрын
a alguien mas no le sirve ningun video de estos cuando yo implemento esa herramienta de la toolbar me sale error ya lo intente de distintos metodos y nada
@amirgm7589
@amirgm7589 4 жыл бұрын
thancks bro its very useful for me .
@raywilliam1345
@raywilliam1345 4 жыл бұрын
Can you tell me, how to change icon or text colour, when edit text pressed, state_pressed or state_focused, and it is possible,or not?
@raywilliam1345
@raywilliam1345 4 жыл бұрын
Icon is in the edit text
@StevdzaSan
@StevdzaSan 4 жыл бұрын
I'll make a video about that. Stay tuned.
@andy_de2041
@andy_de2041 4 жыл бұрын
@@StevdzaSan making an icon invisible or changing them, would be great also. Your videos look good to learn from.
@raywilliam1345
@raywilliam1345 4 жыл бұрын
@@StevdzaSan You are my mentor))
@0xDEAD_Inside
@0xDEAD_Inside 4 жыл бұрын
I have some tutorial requests: 1) fragment transitions using gestures. Just like in music players bottom bar, google pay's top area. 2) state management using libraries like dagger. Thanks!
@StevdzaSan
@StevdzaSan 4 жыл бұрын
For swiping check my tutorial about ViewPager2 and Navigation Component.
@0xDEAD_Inside
@0xDEAD_Inside 4 жыл бұрын
@@StevdzaSan Thanks bro
@MrRahulmalik
@MrRahulmalik 4 жыл бұрын
How to make the title in center?
@IqbalSingh-yg7ju
@IqbalSingh-yg7ju 4 жыл бұрын
Add attribute android:layout_gravity="center" to your textview
@genarochialva
@genarochialva 4 жыл бұрын
Muy bueno amigo!
@jonasstrabel
@jonasstrabel 4 жыл бұрын
unresolved reference myToolbar
@woofelator
@woofelator 3 жыл бұрын
import androidx.appcompat.widget.Toolbar
@scottbiggs8894
@scottbiggs8894 3 жыл бұрын
@@woofelator That's misses the problem. It's not that Toolbar is not defined, the problem is that the compiler does not know to look in the layout file to find this reference. The real issue is that the poster is using kotlin Synthetics to get the reference. Synthetics were popular for about six months and then deprecated (typical Google uselessness). You'll have to use findViewById() to get the reference and then use that to set the toolbar. Here's the code: import androidx.appcompat.widget.Toolbar ... val toolbar : Toolbar = findViewById(R.id.myToolbar) setSupportActionBar(toolbar)
@samstoyroom
@samstoyroom 3 жыл бұрын
Why don't you just put all the custom Views inside Toolbar?
@preetjai7588
@preetjai7588 4 жыл бұрын
use light theme of android studio to better visibility of viewers instead of dark theme
@ban_droid
@ban_droid 2 жыл бұрын
Idk bro, people have different eyesight preferences, i like dark theme more, it prevent my eye from too much light from the screen, but i never force people to use it cause i dont know what should be used for other people
@user-bbak
@user-bbak 3 жыл бұрын
Thanks ^_
@abduallah8079
@abduallah8079 Жыл бұрын
You are so fast, I couldn't understand 😞
@TheDavid4c
@TheDavid4c 3 жыл бұрын
ok
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
Какой я клей? | CLEX #shorts
0:59
CLEX
Рет қаралды 1,9 МЛН
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
Building a Mobile App in 2025: The BEST Technologies
13:31
Dan Ilies
Рет қаралды 125 М.
Progress Button in Android Studio | Tutorial
11:17
Stevdza-San
Рет қаралды 40 М.
Quiz Application | Android Studio Tutorial | 2024
17:06
Easy Tuto
Рет қаралды 145 М.
How to Customize Your Android Toolbar | Action Bar Tutorial
22:22
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 1 МЛН
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН