android-tablayout Questions
4
Solved
I'm pretty new to android development. So bear with me.
I've been trying to align the icon and text in same line in com.android.support:design:23.1.0 for a day.
Apparently in com.android.support:...
Tadpole asked 17/11, 2015 at 5:27
13
Solved
I have created 30 scrollable tabs using tablayout.
So first three tabs are visible on screen and rest of them are invisible which can be scroll using swipe gesture.
The problem is when I am selec...
Endoblast asked 16/7, 2015 at 7:59
3
Tab Icons: My current method is to create two files (ic_list_selected_24dp.xml and ic_list_unselected_24dp.xml; they are basically the same but only the android:fillColor='Color HEX CODE' are diffe...
Neo asked 8/5, 2017 at 12:2
2
I need to hide first tab. First page should work but when user select it, it should be seems like on tabs is selected. How I can do this?
I found some solutions with TabHost and it useless to me.
...
Misbehave asked 15/10, 2015 at 10:7
0
I have this layout :
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://sc...
Bookseller asked 14/1, 2019 at 0:58
2
I am trying to use TabLayout in my Activity. Each Tab takes user to a fragment.
Suppose user is on Tab1 which has fragment1.
He clicks Tab2 which has fragment2.
Now when user is on Tab2 and pres...
Archimage asked 19/5, 2016 at 23:50
3
Solved
Is it possible to have a tablayout inside a tab of another tablayout? I have created the following image for a better explanation. The slide movement desired is as it is described in the image.
...
Deontology asked 18/8, 2016 at 14:46
2
Hi I have a TabLayout and ViewPager inside a fragment. But I can not slide beetween tab to come to child fragment (Working normally when in Activity but not work in fragment).
Here is my code for ...
Merchantman asked 23/12, 2015 at 4:10
3
Solved
I want to put tabs text(max 8 chars) in single line
I added a custom style to TabLayout element
<style name="MyCustomTabLayout" parent="Widget.Design.TabLayout">
<item name="tab...
Hambletonian asked 1/1, 2016 at 10:31
6
Solved
I am using a TabLayout with 3 tabs. I customized the view of my tabs and therefor, I need to remove the following line under my tabs ( the screenshot doesnt come from my app):
I am NOT using a T...
Lurcher asked 21/12, 2015 at 4:10
5
Solved
I saw a lot of questions that say how to set the color differently for selected(active) and unselected(inactive) tabs. I also know that google provides void setTabTextColors (int normalColor, int s...
Preliminary asked 7/12, 2016 at 15:46
5
Solved
When I use ActionBar tabs, I use this code.
private int getCurrentTabIndex() {
ActionBar actionBar = activity.getSupportActionBar();
ActionBar.Tab selectedTab = actionBar.getSelectedTab();
if(s...
Paestum asked 1/7, 2015 at 22:26
5
I`m using ViewPager and TabLayout. If tabs can be placed on the display tabMode they must be:
app:tabMode="fixed"
else
app:tabMode="scrollable"
How can I do this?
Leathery asked 2/7, 2015 at 17:2
2
I have Main Activity with navigation drawer and container,navigation drawer has the list of options.the drawer option replaces container with fragments.container loads tab layout fragment when i cl...
Proclaim asked 24/10, 2015 at 5:55
4
Solved
I have a TabLayout (design support library) which is tied up to a ViewPager containing three tabs. I have designed a custom layout and set that to each tab in the TabLayout. I have been trying to c...
Mammalogy asked 16/9, 2015 at 14:45
6
Solved
I'm trying to make CollapsingToolbarLayout with Toolbar and TabLayout below it, but they overlapping each other and I get this
I've tried many solutions, but still have this problem. Here is my ...
Yaron asked 5/2, 2016 at 11:28
3
I created an Tab based application using viewpager and Tablayout. When i click a button new tabs are created with a child fragment.
What I need is to assign different tab id to my tabs and each s...
Electrobiology asked 23/2, 2018 at 14:41
1
Solved
I'm trying to check if my fragment is visible after performing a click on my tab from my tabLayout which has been set up with view pager.
This is my actual activity code, inside my activity onCre...
Ezarras asked 25/6, 2018 at 17:31
3
Solved
I Have this TabLayout in Android and wanted to make the tabs a little heigher than the default (48dp)
<android.support.design.widget.TabLayout
android:id="@+id/contentTabs"
android:layout_w...
Fist asked 25/10, 2016 at 11:31
1
Solved
for the below layout, when I scroll the content up on a page within the viewpager... if I keep my finger on the screen and scroll up slowly, the tab layout doesn't collapse into the toolbar but if ...
Langford asked 29/5, 2018 at 14:25
3
I have issue with passing data to fragments. It crashes 0.1% of all times on production. Let's say on 100k opening of activity it happens 100 times. It looks like not very often, but it very bother...
Core asked 12/5, 2018 at 6:37
1
I've tried adding the divider between tabs, without using any custom layout. I have tried it programmatically using the following method:
public static void addTabsDividers(TabLayout tabLayout, @C...
Counseloratlaw asked 14/4, 2018 at 12:4
5
Solved
Sorry if this question have been asked before.
I want to change icon when it is selected in tab of tab layout. How can I do this using selector?.
I have two tabs in my application on selected st...
Almost asked 29/7, 2016 at 5:47
3
Solved
I am working in an Android app,In this I want to make set full width for bottom navigation tabs when I rotate the screen to landscape mode.
activit_main.xml
<?xml version="1.0" encoding="utf-8...
Aggress asked 12/4, 2018 at 17:42
2
In android.support.design.widget.TabLayout, how to make the active tab always appear at the center, just like in Play Newsstand app, as shown below.
The first and last tab should also appear at th...
Falbala asked 17/10, 2015 at 21:30
© 2022 - 2024 — McMap. All rights reserved.