android-tablayout Questions

19

Solved

I have added TabLayout (from support library v22.2.1) to my Fragment as: <android.support.design.widget.TabLayout android:id="@+id/tabs" style="@style/MyColorAccentTabLayout" android:layout_...
Declarant asked 16/9, 2015 at 6:42

15

Solved

Is there any way to wrap tab indicator width with respect to tab title ?
Calvaria asked 8/11, 2016 at 6:53

7

Solved

Is there a way to add margin between the tabs in a TabLayout? I've tried with using a custom style for Widget.Design.TabLayout, but there are properties only related to padding, but no margins.
Perpetrate asked 11/4, 2016 at 12:35

13

Solved

I'm using the new class provided by the design library : TabLayout. And I want in specific cases that the one I'm using can't change tab anymore. I manage to disable swipe on its viewpager but I c...
Carr asked 29/7, 2015 at 14:0

6

Don't understand why my TabLayout is not showing in my Fragment i'm under the support version of fragment, sdk 25, everything's working great but can't see my TabLayout, after searching i didn't fi...
Calamitous asked 5/3, 2017 at 8:34

2

Solved

I am facing this rather strange problem with viewPager2. I did some reading and found out that viewPager2 has a default offset limit of 0 which is perfect for my application. I'm using it with a ta...
Searle asked 16/2, 2020 at 18:54

7

Solved

So my app is in RTL, and with that, the tabs are now ordered from right to left..! ..But when I swipe to slide between the tabs, it contradicts the common sense, so I want to reverse it..! see the...

4

Solved

I am working on a screen which contains Three tabs I am trying to add an icon with My text in tabs and i want the image to be upper the text and there should be some space between them it is my cod...

6

I'm using TabLayout and viewPager with an option to swipe the viewPager to the left or right in order to navigate between pages. My problem is, that my application is RTL based (right-to-left) and...
Blakeney asked 7/9, 2015 at 17:26

5

Solved

I have a TabLayout is set up with viewpager. The viewpager is set up with adapter. There are 11 fragments were added to adapter and each fragment has a recyclerview. When I run the app swiping betw...

19

I'm using a TabLayout with a ViewPager and I'm wondering how I can most efficiently change the color of the icon of the selected tab in the TabLayout. A perfect reference for how this is implement...
Tita asked 2/1, 2016 at 2:48

4

Solved

I'd like to find the view of a Tab in a TabLayout so that I can pass it to another function. I'm not sure how to go about finding the view. myTabLayout.getTabAt(0).getCustomView() returns null. ...
Agretha asked 20/10, 2015 at 20:33

13

Solved

I have setup tabs as UPDATE 29/05/2015 this post. Tabs take full width on my Nexus 4 mobile but on nexus 7 tablet it in center and not cover full screen width. Nexus 7 screenshot Nexus 4 screensh...
Crescen asked 15/6, 2015 at 11:16

3

Solved

I'm having a trouble trying to add a line below the TabLayout, but it has to be behind the selector line. Should be something like this: I already tried to add a custom view, but each tab have s...
Pineapple asked 15/2, 2017 at 13:6

5

Solved

I implement the tab layout using android support library and it looks like Here the tab width is not fit with screen and my layout is <LinearLayout xmlns:android="http://schemas.android.com...
Rozele asked 31/8, 2015 at 6:25

7

I have a main activity, which hosts a fragment, which in turn hosts a TabLayout (with a ViewPager). The tab bar is shown, baut the tabs themselves are not shown. Here is my code in the main activi...

13

I am using design support to create tabs. I am also using ViewPager for swipable tabs. Now, I don't know how to use only icons instead of texts in tabs. I tried finding out but didn't get any succ...
Thymelaeaceous asked 17/6, 2015 at 13:7

7

Solved

Unfortunately the other question wasn't answered about how to hide a Tab in android.support.design.widget.TabLayout. The others questions are made with TabHost, I don't want to change my code. I w...
Heresy asked 8/7, 2016 at 13:25

5

Solved

I have a TabLayout with Recyclerview so that when tabs are clicked then the Recyclerview is scrolled to a particular position. I want the reverse procedure as well such that when the Recyclerview i...

5

Solved

<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/htab_maincontent" android:layout_width="match_parent" android:layo...
Marquess asked 16/3, 2018 at 12:58

7

Solved

I want to programmatically change a tab's textview. Is there any way to do this? There are answers only concerning the old TabHost view, I am using the TabLayout used by Google's Material Design l...
Justajustemilieu asked 8/7, 2015 at 0:15

4

I'm using TabLayout & ViewPager. I am trying to change the size of the Tab, like Whatsapp (camera icon). The size of the three Tabs is equal, but the Tab of the camera is smaller. In every atte...

3

I want to show a tabindicator as in the image below. I am using viewpager. I already tried TabLayout with viewpager, in which we can only adjust tab indicator color and height. How can I impleme...
Moony asked 22/7, 2017 at 14:43

1

Solved

I'm trying to generate custom tab view using tab layout android with view pager 2, but I'm unable to see generated tab items. layout.xml <androidx.appcompat.widget.LinearLayoutCompat android:l...
Traceable asked 4/3, 2021 at 11:44

4

Solved

I am developing an app that has a tab layout as the image. I’d like to use MVVM architecture with data binding library but I am new with this framework. I can do this without using MVVM by norm...

© 2022 - 2024 — McMap. All rights reserved.