android-tablayout Questions
7
Solved
My question is how I can set the new android material design TabLayout to be in the bottom of the screen, kind of like Instagram's bottom toolbar.
If you have never seen Instagram's UI here is a ...
Slosh asked 28/10, 2015 at 0:3
3
Solved
I know this question may seem duplicated but i couldn't find a good solution for my problem. I am using tablayout with viewpager with fragmentPagerAdapter as adapter of viewpager. As you know viewp...
Genitalia asked 19/10, 2017 at 11:21
2
Solved
i'm developing an app using tabLayout.
I've a problem: When I try to reactivate a Fragment, the method OnResume is non called.
This is my activity:
private void init() {
fab = (FloatingAction...
Lido asked 16/2, 2016 at 15:9
2
I'm trying to create custom tab layout because I need to set badge counter next to TextView. I've set id to @android:id/text1 as it's mentioned in doc.
When my custom tab is selected, TextView co...
Devil asked 22/5, 2017 at 8:2
3
Solved
I want to set the title of the TabLayout with two different text sizes. Like the given image below. Or the other way around to achieve this!
I have tried with SpannableString like give below. T...
Martinson asked 30/11, 2016 at 11:35
1
Solved
I have a simple setup using ViewPager2 and TabLayout with preset TabItems:
...
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabs"
android:layout_width="0dp"
android:layout_...
Miltonmilty asked 26/11, 2019 at 15:24
3
i have a navigation drawer with a number of fragments and one of them is a tablayout with two recyclerview fragments , the RecyclerView items disappear after switching between navigation drawer fra...
Satisfy asked 17/10, 2016 at 19:17
5
Solved
I want to reduce width of indicator - for example, make it's width not whole tab width, but 1/2 of tab width.
That's all I need to do, so I don't want to download some custom library and search whe...
Fornax asked 16/8, 2017 at 14:4
4
I'm trying to make a layout with CollapsingToolbarLayout. But I do not get one thing. I want to remove the shadow between Toolbar and TabLayout. I've tried several ways and I have not managed to re...
Eulaliaeulaliah asked 26/5, 2016 at 11:0
8
Solved
I am using android.support.design.widget.TabLayout.
It has two tabs,
If user selects second tab On particular condition I want user to redirect to first tab and disallow him to go to sencond tab un...
Milanmilanese asked 8/8, 2015 at 8:24
2
Solved
I would like to get the background of the tab animated smoothly to the selected position (just like the default tabIndicator animates between tabs).
Here is how my TabLayout looks like
<androi...
Nystatin asked 24/9, 2019 at 16:53
2
I am trying to use a TabLayout joined with a ViewPager to create three swipeable fragments. However, I ran against a problem: I want the TabLayout to be at the bottom of the screen, but the ViewPag...
Nudge asked 23/9, 2019 at 7:32
1
I have ViewPager with connected TabLayout. If I use viewPager.setCurrentItem(position, true) the correct tab on the tab layout is shown (TabLayout automatically scrolls to the selected tab). But I ...
Effeminize asked 23/1, 2018 at 17:28
3
I am trying to figure out how to have the icons not be on top of the text but rather to the side of it, but I am not sure how to do it with my code specifically. I am quite new to Android Studio so...
Longlimbed asked 9/6, 2018 at 14:52
1
Solved
I am developing an android application which needs a TabLayout bind to a ViewPager2. Reading this and following the code in here, I need to use TabLayoutMediator. But when importing it, I fac...
Quartile asked 22/8, 2019 at 7:13
6
Hello I have created a tab layout in my activity. This is the main .xml file:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/main_layout"
xmlns:android="http://...
Lemmuela asked 22/3, 2016 at 17:13
9
I have a ViewPager below an AppBarLayout (with a Toolbar and a TabLayout). I cannot understand why the height of the loaded fragments is more than the available space, even if there are no elements...
Lh asked 10/4, 2016 at 21:21
5
Solved
I have Fragment with layout of CoordinatorLayout Inside with NestedScrollView and inside nestedscrollview i have ViewPager and TabLayout with fragments. Tabs is visible but fragment related to tabs...
Pascal asked 2/1, 2018 at 12:3
5
Solved
I'm using the TabLayout from the Android Design Support library and want to style its text (title). Specifically making it bold. How to achieve that in XML only?
<android.support.design.widget....
Verily asked 24/2, 2016 at 21:50
2
Solved
How to disable this highlight on pressing the tab. I have been searching for half an hour and couldn't figure it out. I am using tablayout.
Continuo asked 16/6, 2016 at 17:57
2
Solved
How do you set text-color for a tab that's not selected? I know you can set the text-color for the TabLayout by doing: setTabTextColors
Bathos asked 28/12, 2016 at 18:42
4
Solved
I have a working TabLayout, and I am trying to update the tab text color dynamically, when changing tabs. To do this, I call the setTabTextColors() method on my TabLayout as such:
tabLayout.setOnT...
Coyne asked 10/7, 2015 at 14:47
4
I have two different styles of TabLayout in my app:
<style name="TabLayoutPower" parent="Widget.Design.TabLayout">
<item name="tabSelectedTextColor">@android:color/white</item>
...
Anomalism asked 5/1, 2016 at 14:6
6
Solved
I'm using a TabLayout for Tabbed navigation in my app. I have a really weird issue with it, I have created 4 tabs using this code:
private int[] tabIcons = {R.drawable.navigation_timeline_icon_sel...
Nicholas asked 21/12, 2015 at 9:39
5
Solved
I was trying to implement Toolbar and TabLayout using google design library by referring to [http://blog.grafixartist.com/material-design-tabs-with-android-design-support-library/] [blog].
Output...
Routinize asked 10/7, 2015 at 15:9
© 2022 - 2024 — McMap. All rights reserved.