Questions tagged [android-tabbed-activity]
112 questions
24
votes
3 answers
Content going behind Navigation Bar
I am facing a problem with android 5.0 and above. Whenever I align any view to parent bottom, Content is getting hidden behind the soft navigation button.
Above attached is the screenshot of the screen generated after creating new project from…

Mohammed Atif
- 4,383
- 7
- 28
- 57
9
votes
2 answers
Nested Action Bar Tabs(with ViewPager)
I have a project that uses Action Bar Tabs(with ViewPager).
Tabs move really smoothly when swiping between them, but I need to add two sub tabs, in TAB 2, then move to the next tabs or of course back, just like on the Glassdoor or Flipboard.…

r3dm4n
- 1,175
- 2
- 18
- 33
4
votes
1 answer
Grabbing a pointer to a TextView of a tab on the action bar?
Some other users and I are developing an Android application for the Stack Exchange chat network. We're adding a tutorial for each activity to explain the UI to the user. However, we've run into a bit of a road block.
The tutorial library wants a…

You'reAGitForNotUsingGit
- 895
- 7
- 28
3
votes
3 answers
Getting the number of the Current Tab in Tabbed Activity
First of all I am new to Android development, and I would appreciate your help.
I have a tabbed activity in android studio and I have a FloatingActionButton to add an Item in each fragment of the tabbed activity. This button then calls a new Activty…

Kurt Camilleri
- 133
- 1
- 1
- 11
3
votes
0 answers
How to pass a data from Empty Activity to Tabbed Activity?
I just want to pass a data from my Empty Activity to Tabbed Activity..In my code i am using three Activities.One is Main Activity which contains List Views..Second is Empty Activity..third is Tabbed Activity..In my Main Activity,User can click an…

Ajay Jayendran
- 1,584
- 4
- 15
- 37
3
votes
1 answer
the first fragment in tabbed activity is always blank
I'm using tabbed activity to show three tabs
the problem is, the first tab is always blank, while the second and third works. and if i click the third one and after that click on the first one, the first loads the data
public class Main2Activity…

Tarik Ziyad
- 115
- 1
- 10
2
votes
1 answer
Retrieve text from edittext within tab to main activity
I have an activity with a tabbed layout containing multiple different tabs. Each tab contains a number of 'edittext' fields. I have a button on the main activity and on clicking it i want to save the the contents of each edittext field from each…

Conor Sproule
- 33
- 3
2
votes
1 answer
com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.Long to type com.realty.drake.kunuk.Property
I need some help please:
-What is the cause of the exceptions in my code. Is it about deserializing?
-How to fix the bug?
-Alternatives way to implement this?
Basically, the code is suppose to display some cardview on my fragment which content a…

Dr4ke the b4dass
- 1,184
- 2
- 17
- 40
2
votes
1 answer
FragmentPagerAdapter returns semi broke views on Reselect
I have a Tab Activity that has x amount of tabs. All the tabs load properly on the first load. If I go x+2 tabs away from a tab and then go back, some of the data and elements are missing.
I used the Android Studio's own Tabbed Activity generated…

user-44651
- 3,924
- 6
- 41
- 87
2
votes
5 answers
I want to show 3 different fragments for 3 different tabs in view-pager ,Tabbed activity Android
I am very new to android , this time i created a view-pager tabbed activity by looking a video tutorial. the problem or the need is to show 3 different fragments if the user slides the position like tab1(shows first fragment),tab2 (shows second…

Jaison Joseph
- 123
- 1
- 3
- 14
2
votes
1 answer
How do I avoid code duplication for fragments?
If I want to create a tabbed activity with more than 10 swipable fragments, what other option do I have rather than to create 10 different Fragment classes with layouts and inflate they based on their position in the tabbed layout.
That obviously…

JoSem
- 309
- 3
- 14
2
votes
1 answer
Add banner in tabbed activity
I want to add a banner for all fragments in my Tabbed Activity.Banner will be constant at bottom of the page.
I have 8 page in my project, i can add a banner one by one to all fragments.But at this method, i have to add 8 banner for all fragments.I…

metomero
- 63
- 1
- 11
2
votes
0 answers
Android Tabbed Activity with RecyclerView and Checkboxes
I have a tabbed activity which allows the user to select checkboxes for an entry in a recyclerview. When the user swipes between the different tabs the checkboxes do not retain their state of checked if they have been checked. Any help would be…

Kris Baker
- 21
- 1
2
votes
0 answers
Icons in Tabs with tabbed activity (Android Studio)
i want to put icons instead of text in the tabs. I'm using the tabbed activity and here is the code of the mainactivity.java
package com.example;
import android.support.design.widget.TabLayout;
import…

Dima
- 33
- 1
- 4
2
votes
3 answers
How to place tabs at bottom of app in a tabbedactivity
I'm trying to use a tabbedActivity in android to create a simple app.
I would like to put my tabs at the bottom of the screen.
Here is what i've got when creating my Activity with android studio.
What I would like, is the part with "SECTION 1…

Sylvain GIROD
- 836
- 1
- 11
- 23