android-tablayout Questions
11
Solved
Probably many of you (as me), have problem with creating ViewPager with bottom dots, like this:
How do you create such an Android ViewPager?
Allow asked 19/7, 2016 at 12:58
11
I have added a Relative Layout in Custom View and have added this in Tab Layout. I am using a white background for tabs and have not applied any padding in tabs custom layout. But then also I am ge...
Sephira asked 11/11, 2015 at 9:12
13
Solved
I want to use com.google.android.material.tabs.TabLayout component with Android's new ViewPager implementation androidx.viewpager2.widget.ViewPager2. However, the setupWithViewPager(..) method prov...
Reddick asked 27/3, 2019 at 7:56
8
Solved
Here is my code:
private TabLayout tabLayout;
private int[] tabIcons = {
R.mipmap.ic_compass,
R.mipmap.ic_place,
R.mipmap.ic_passport,
R.mipmap.ic_setting
};
...
tabLayout.getTabAt(0).setIco...
Oconner asked 8/1, 2016 at 4:21
5
I have a TabLayout and inside that I have ViewPager. I need to dynamically add and remove tab in tablayout(material design). I can able to add the tabs dynamically but while removing the tab, tab i...
Greaves asked 16/12, 2015 at 7:46
14
Solved
This is my code in the main activity
public class FilterActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
Englacial asked 26/7, 2015 at 18:38
2
I am currently stuck on an error that continues to slow down the performance of my application.
The error does not cause the application to close or crash, or to write an exception to the console. ...
Breeks asked 6/11, 2020 at 17:34
8
I am adding 2 tabs in the TabLayout, and following is my code.
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabLayout"
style="@style/AppTabLayout"
android:layout_width="match...
Iman asked 16/2, 2019 at 19:36
13
Solved
I want to set margin in between each tab. Like in PagerTabStrip which has setTextSpacing(int textSpacing) to make text spacing between tab. Can TabLayout do that?
Bernardobernarr asked 15/9, 2015 at 7:33
5
Solved
I am using TabLayout inside a Fragment to display three fixed tabs and the tabs are working but it doesn't show the tab text even after I set the app:tabTextColor attribute in the layout it's still...
Khajeh asked 27/6, 2016 at 8:24
2
Here is the error:
java.lang.NullPointerException: Cannot invoke "android.content.res.BridgeTypedArray.setTheme(android.content.res.Resources$Theme)" because "ta" is null
at an...
Dacy asked 16/4, 2023 at 5:14
5
Solved
The TabLayout class in android provides you with a TabItem that can let you specify a text and a icon.
Is it possible to use a custom view as a TabItem?
My tab would look like this
as you can ...
Bedfast asked 30/11, 2016 at 19:47
5
I am trying to set custom drawable as tabIndicator as shown below
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
app:tabIndicatorFullWidth="false"
app:layout_scroll...
Ericson asked 14/10, 2019 at 11:28
21
Solved
I'm trying to work on the new TabLayout from the android design library.
I want to change tab text to custom font. And,I tried to search some styling related to TabLayout,but ended up to this.
P...
Magnetize asked 26/6, 2015 at 7:20
18
Solved
I have set android:textAllCaps="false" in my android.support.design.widget.TabLayout thought it is showing the Tab Title in All caps only.
How can I remove all caps?
Agonic asked 8/7, 2015 at 14:5
7
Solved
I've encountered the tricky problem with android TabLayout
import android.support.design.widget.TabLayout;
When I select the foremost tab to the left, then scroll tabs to the right and select ...
Teplica asked 27/1, 2017 at 10:17
11
I have difficulties changing the text size of the tabs of design library tablayout (android.support.design.widget.TabLayout).
I managed to change it by assigning tabTextAppearance in TabLayout
a...
Lessielessing asked 17/7, 2015 at 8:11
7
Solved
I am using Navigation Drawer to navigate between fragments they all use the MainActivity toolbar but each fragment has it's own TabLayout with 3 tabs and in each tab I am using RecyclerView to show...
Sumpter asked 28/1, 2016 at 10:28
7
i am using viewpager and tab layout
viewPager.setAdapter(Adapter);
tablayout.setupWithViewPager(viewPager);
viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
int cPage...
Alis asked 2/2, 2016 at 10:21
29
How should I select a tab in TabLayout programmatically?
TabLayout tabLayout = (TabLayout) findViewById(R.id.tabs);
tabLayout.setupWithViewPager(viewPager);
Tramline asked 12/6, 2015 at 6:35
5
I want to make only Tab indicator roundcorner not whole tab. I had tried setting custom view but it did not helped me. Any help would be appreciated. Thanks
Priggery asked 20/2, 2017 at 8:9
12
Solved
I want to implement notification badge with android.support.design.widget.TabLayout. I had tried my best effort to implement it but fails.
Any help would by greatly appreciated.
Christi asked 12/8, 2015 at 14:30
5
Solved
I'm trying to remove the shadow below tabs while using TabLayout, which is defined in a normal layout (and not as a part of a toolbar or actionbar).
Setting theme as
<item name="android:windo...
Forepleasure asked 21/7, 2015 at 15:24
9
I am trying to implement Tab Layout but unfortunately getting this error ,
i have added my xml code ,can anyone help figuring out what i am doing incorrectly.
the following is the error log i get...
Avunculate asked 6/7, 2018 at 7:2
9
Solved
I'm using android.support.widget.TabLayout to make a Tab view, and I want to change the selected tabs text color from code (not from xml or by styling). How can I do this ?
Denison asked 3/5, 2016 at 9:11
1 Next >
© 2022 - 2024 — McMap. All rights reserved.