android-tablayout Questions
2
Compiler gives me that setColorFilter is deprecated!
tab?.icon?.setColorFilter(
ContextCompat.getColor(requireActivity(), R.color.colorLogoGrey),
PorterDuff.Mode.SRC_IN
)
Crone asked 26/2, 2020 at 11:30
8
This type of Question has already been asked before but not got any proper,working solution so I am again posting this question.Sorry for asking again and wasting your time.
Please give some workin...
Bluebottle asked 11/2, 2016 at 11:11
4
Solved
Please help: I got error when import android.support.design.widget.TabLayout
It say "can not resolve symbol 'design'
My build.gradle:
compileSdkVersion 26
buildToolsVersion "26.0.0"
dependenc...
Anubis asked 13/9, 2017 at 10:8
8
Solved
My HomeActivity extends AppCompatActivity that uses 2 tabs.
public class HomeActivity extends AppCompatActivity {
private SectionsPagerAdapter mSectionsPagerAdapter;
private TabLayout tabLayou...
Oversee asked 27/3, 2017 at 11:52
2
Solved
I want to implement a TabLayout because it is simple but all the tutorials I have found involve a ViewPager. I just want something like OnClickListener where if I click the Add icon, it will show a...
Antiphon asked 11/11, 2015 at 8:19
5
Solved
How to disable this click effect?
I tried to add these to Activity's theme but not working
<item name="tabIndicatorColor">@android:color/transparent</item>
<item name="tabBackgro...
Rickierickman asked 27/7, 2018 at 19:36
4
I have made a custom TabLayout with a ViewPager and am using the TabLayout in scrollable mode:
I need it to be scrollable as the number of dates can vary to as many as 15-20:
<com.example.proj...
Skiplane asked 17/8, 2016 at 17:15
6
Solved
android.support.design.widget.TabLayout not working properly with ViewPager
If I set tabLayout.setupWithViewPager(viewPager); then tablayout view not showing please find attached screen shots.
&...
Chifforobe asked 17/5, 2016 at 4:36
4
Solved
I have this code for change color of text of tab layout,
but it does not work at all!
app:tabTextColor does not work, and it cant change color to white.
<android.support.design.widget.TabLayo...
Pitchblende asked 3/12, 2017 at 7:4
2
I there any way to reduce the distance between the title text and the icon of TabLayout like in Google plus where the icons and text title have at least no distance. I have searched , but couldn't ...
Lilllie asked 5/9, 2016 at 8:23
2
I am looking to add a horizontal scroll view for an Android TabLayout.
The TabLayout has multiple tabs in it and is scrollable. Due to multiple tabs on it, some of them are not visible at the first...
Betteann asked 20/11, 2020 at 19:14
8
Solved
I have used TabLayout from the latest design support library in my app. The tabs are attached to a viewpager which loads the fragments for each tab. I want to disable all the tabs until the v...
Relator asked 9/10, 2015 at 4:5
3
Solved
The TabLayout documentation gives an example of nesting TabItem directly inside TabLayout like so:
<android.support.design.widget.TabLayout
android:layout_height="wrap_content"
android:layout...
Thew asked 26/6, 2016 at 3:29
8
Android TabLayout tabPaddingTop and tabPaddingBottom not being removed
Please refer to the above issue as well.
Even since i updated my design library to "23.2.0", Tab layout is all messed up.
T...
Nog asked 8/3, 2016 at 6:16
5
I can't seem to align my tab titles to the left, inside my TabLayout. At the moment, the titles are centered. Here is what I want to achieve.
And this is what I have at the moment.
The code I'm us...
Harbinger asked 25/8, 2016 at 10:19
6
Solved
My tabs on the TabLayout occupy the centre of the screen and are not filling the entire width even after adding tabMaxWidth = "0dp" as per Adam John's answer
That is I want by tabs to extend to f...
Maineetloire asked 16/9, 2016 at 10:47
4
I have two question with TabLayout
1)Can i remove TabLayout highlight or change highlight color of tab layout?
2)Can i add ripple effect for tab. Each tab contain TextView i try to add custom bac...
Roussel asked 24/7, 2015 at 8:19
6
Solved
Cannot resolve symbol TabLayout ? How to clear this error? Please help me. I already imported import android.support.design.widget.TabLayout;
Britska asked 21/9, 2015 at 2:1
6
Solved
I am using a TabLayout. I want full screen width to be filled by TabLayout, so I added app:tabGravity="fill". My problem is that now tab text is not centered. Here is a screenshot:
The code of T...
Symer asked 18/1, 2017 at 19:56
3
I need tabs for the application I am developing. So I ended up with tablayout and it contains few tabs. Code is as follows:
private void setupNavTab() {
int[][] states = new int[][]{
new int[]...
Brookins asked 29/2, 2016 at 6:6
4
I followed the official documentation to setup a TabLayout with ViewPager2. I used the TabLayoutMediator this way to connect the TabLayout with the ViewPager2:
TabLayoutMediator(binding.tabLayout,...
Hypodermis asked 13/5, 2020 at 16:23
5
Solved
I have 7 dates tabs in my screen, when tab selected, the text is black in color; while other select-able tabs are white in color. If the date falls on another month, I want the text color to be gre...
Billfish asked 2/12, 2016 at 9:31
3
Solved
I have viewpager2 and adapter for him that extends FragmentStateAdapter. I want user to go to another page only by clicking on tablayout. I have disabled user input for this viewpager2. But when I ...
Belanger asked 19/4, 2020 at 9:53
8
Solved
I added the new Toolbar, Tablayout and Viewpager in my android app. I provided Fragments for my 3 Tabs and its working fine. But the problem is that when i scroll up my Toolbar does not hide. I wan...
Festivity asked 18/8, 2015 at 10:12
2
Solved
I am working on Tablayout with text and icon from the following tutorial ..
My question is how to make the icon placed next to the text instead of above them?
I am new in Android Development, hope...
Droplight asked 19/12, 2015 at 11:18
© 2022 - 2024 — McMap. All rights reserved.