D
D
Dauren S2016-08-25 11:55:57
Android
Dauren S, 2016-08-25 11:55:57

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());

illuminated in red.
What's wrong? Tell me good people.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ershov, 2016-09-06
@alaershov

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 question

Ask a Question

731 491 924 answers to any question