Your hardwork is admirable and your videos are informative. Thanks!
@ScienceSeekho4 жыл бұрын
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.
@sohailfx4 жыл бұрын
so far the best tutorial video I have seen regarding toolbar. thanks
@s4int8124 жыл бұрын
Easily explained 👏
@jonukaz13 жыл бұрын
Quick and straight to the point. Great tutorial man!
@aldiguizot4 жыл бұрын
Very nice! I wonder how to show and hide action bar programmatically?
@TBrianOnline4 жыл бұрын
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.
@StevdzaSan4 жыл бұрын
You can with Navigation Component. Change the label attributes in Navigation graph.
@TBrianOnline4 жыл бұрын
@@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.
@StevdzaSan4 жыл бұрын
Do it programmatically from your fragment.
@TBrianOnline4 жыл бұрын
@@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"
You are the best. Thank-you dor zooming in during vide
@concise_ko4 жыл бұрын
nice man 😘👌👌
@azizbekrasulmetov9293 Жыл бұрын
kotlin syntetics?
@rahulitaliya82813 жыл бұрын
How are u able to use view id's directly? I mean without using findviewbyid ?
@StevdzaSan3 жыл бұрын
Kotlinx.synthetic is now deprecated I already made a video about that, check it out.
@emrebahcebasi43263 жыл бұрын
setSupportActionBar(binding.toolbar)
@gokulsuresh48914 жыл бұрын
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
@StevdzaSan4 жыл бұрын
Try using the hex color code with opacity values in front. For example #10XXXXXX means the specified color will have opacity of 10%.
@blahblah33474 жыл бұрын
AppBarLayout is not recognized in my project. Are there dependencies that make your tutorial work that you didn't mention?
@rincondepython3 жыл бұрын
excellent tutorial, thanks!
@DavidArangosoychon4 жыл бұрын
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
@amirgm75894 жыл бұрын
thancks bro its very useful for me .
@raywilliam13454 жыл бұрын
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?
@raywilliam13454 жыл бұрын
Icon is in the edit text
@StevdzaSan4 жыл бұрын
I'll make a video about that. Stay tuned.
@andy_de20414 жыл бұрын
@@StevdzaSan making an icon invisible or changing them, would be great also. Your videos look good to learn from.
@raywilliam13454 жыл бұрын
@@StevdzaSan You are my mentor))
@0xDEAD_Inside4 жыл бұрын
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!
@StevdzaSan4 жыл бұрын
For swiping check my tutorial about ViewPager2 and Navigation Component.
@0xDEAD_Inside4 жыл бұрын
@@StevdzaSan Thanks bro
@MrRahulmalik4 жыл бұрын
How to make the title in center?
@IqbalSingh-yg7ju4 жыл бұрын
Add attribute android:layout_gravity="center" to your textview
@genarochialva4 жыл бұрын
Muy bueno amigo!
@jonasstrabel4 жыл бұрын
unresolved reference myToolbar
@woofelator3 жыл бұрын
import androidx.appcompat.widget.Toolbar
@scottbiggs88943 жыл бұрын
@@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)
@samstoyroom3 жыл бұрын
Why don't you just put all the custom Views inside Toolbar?
@preetjai75884 жыл бұрын
use light theme of android studio to better visibility of viewers instead of dark theme
@ban_droid2 жыл бұрын
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