Answer the question
In order to leave comments, you need to log in
Andoird tabs create tabs?
www.foxbase.ru/android/example-java-android-tabs-w... I
made tabs using this tutorial. But at the very end in MainActivity.java
In the OnCreate method in this part of the code
final PagerAdapter adapter = new PagerAdapter
(getSupportFragmentManager(), tabLayout.getTabCount());
Answer the question
In order to leave comments, you need to log in
Your Android Studio should not just highlight it, but when you hover over it, it should suggest what exactly you are doing wrong. I don't like the gap between the constructor name and the opening brace, but I'm not sure exactly what the problem is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question