Create and Design a TabLayout with Fragments Android studio tutorial
It’s been a long time since I uploaded a new video. I’m very sorry about that. It was really hard for me to find the time to make this tutorial. I hope you are all doing well and I wish a happy new year for everyone 🙂
In this video I will show you how to design and create a tablayout with fragments!
In this part I will show you how to design the light theme version of the tablayout in the second part we will design the dark one and maybe we will add icons to the tab. stay tuned!
if you enjoyed and learned something from my tutorials Please subscribe and like this video
————————————————————————-
Follow me On :
Google Plus :
Instagram :
Github :
My blog :
————————————————————————–
Music Credits:
chill day by LAKEY INSPIRED
music link :
thank you but tab not selected
Thanks Dude!!This Tutorial Really Helped Me Out..Nice Work
Thank you so much for the tutorial! It's really clear to understand for beginner like me:)
very nice !
Error:(31, 29) error: incompatible types: FragmentExplore cannot be converted to Fragment
Thanku sir
I saw tons of video then I came urs man u saved me
Thank You So Much Man……………………………………
6:32
Thanks for the video , your videos really helped me alot
Spreading knowledge is a precious thing… Keep going ?
which android studio version that you used?
Thanks man, I like your videos!!
thank you so much for your video.that was very useful for me.
Why i am getting
Cannot resolve symbol R error?
if I have six tabs then I will take six fragment is it right way to create with tab time table?
please make a tutorial on tablayout and vertical and horizontal recycler view all these in one layout like google app store app
Works perfectly
Why don't you talk ?
i want to be tabs in bottom what can i do?
Thanks.
When I run the project, the 3 different fragments won't display? 🙁 Why is that? Pls. I need an answer :((
Hi, thank for your tutorial.
How can i set default tabLayout show is Store Tab?
you re a king, and awesome teacher. thanx very very thanx bro.
Good!
Now how to change tablayout to PagerTabStrip?
How to add cardview in fragment?
You are awesome!!!! Thank you so much for this tutorial!!!!!!
Why when I click on any tab the application is stopped ☹
How do you remove the toolbar
What change when u change elevation
Thanks for the video man for me it is working but I was wondering it is possible when the app is open the second tab is selected not the first or the third ?
Which tool did you use to showcase your work in the introduction?
thankkss man , amazing video
I get JUST this error in ViewPagerAdapter:
getItem(int) in "my app name" clashes with getItem(int) in "android.support.v4.app.FragmentPagerAdapter";
And if i write public android.support.v4.app.Fragment instead of just "public Fragment…" i get this ass error: (see image please) https://prnt.sc/lcyq7p
Why are you adding design in gradle?
Hey there i was wondering, my tablayout is not aligned under the image. Do you know maybe what it may be the cause?
Thank you, you are doing an excellent work with your videos!
Thank you sir for this video.
A question: is-it possible to use the class ViewPagerAdapter for several tabbed Activities in the same app only by changing for each activity the too ArrayList of the fragments and the titles? I try but i don't succeed. Thank you.
tablayout is not showing what should i do?
viewPagerAdapter.AddFragment(new IPDpatientFragment(),"IPD Patient");
when i use this it is showing an error in(new IPDpatientFragment()).
Error is :– Wrong 1st argument type. Found: 'com.example.mrjitesh.feedo.IPDpatientFragment', required: 'android.support.v4.app.Fragment.
can you please tell me solution of this.
Thanks, very great tutorial. No errors
thanks man
@Aws Rh Thanks ! It worked for me !
Hey guys ! If you want to have icons for you TabLayout, then what you can do is create an int[ ] array of drawables in your MainActivity onCreate method.
For example :
TabLayout myTabLayout = findViewById(R.id.my_tab_layout);
int[ ] tabIcons = { R.drawable.tab_1_icon , R.drawable.tab_2_icon , R.drawable.tab_3_icon };
myTabLayout.getTabAt(0).setIcon(tabIcons[0]);
myTabLayout.getTabAt(1).setIcon(tabIcons[1]);
myTabLayout.getTabAt(2).setIcon(tabIcons[2]);
Hope it helpful to you !
finally!! I liked this video
All his tutorials are so clean, the designs are immaculate … I love this channel… Can't wait for more videos