Questions tagged [android-tabbed-activity]
112 questions
2
votes
1 answer
Miscalculate AppBarLayout height, gap on the top, in tabbed activity of Android Studio wizard
I created a new project with a Tabbed Activity and navigation style Action Bar Tabs.
Without modifying any line of code (just the toolbar for showing the issue) this happens:
gap on top of toolbar
There is a gap between the toolbar and the status…

flatlining
- 23
- 4
2
votes
1 answer
ToolBar and StatusBar overlap in the Tabbed activity in an unmodified newly created project in Android Studio
I created a new project with a Tabbed Activity and navigation style Action Bar Tabs.
The MainActivity's default layout is as follows on which i swipe from the TabLayout as follows:
After swiping all the way up it looks like this:
The ToolBar and…

Viral Patel
- 32,418
- 18
- 82
- 110
1
vote
1 answer
Empty tab when parent is not an activity but a fragment
I've got a running Android App with a Navigation Drawer Activity. For every menu item, I wanted to implement a separate Fragment, so I can use the same toolbar and drawer menu. Now one of this Fragments should contain a view with 3 Tabs (3 Fragments…

androi_peter
- 13
- 3
1
vote
1 answer
How can I change different URL or view in tabbed activity?
I'm new in Android kotlin development. I would like to create a tabbed activity in my app to show different static HTML page.
I able to set 1 URL in my app now. But when I change or tap to another tab, it will show similar view or URL.
import…

AD Tee
- 345
- 4
- 21
1
vote
0 answers
Where is my error for add tab with a button?
I want to add a new tab with button.I'm not taking an error but my app has stopped in emulator.Where is my error?Thank you for your your all helps.Note:My English is bad so sorry.If you have not a code or an idea with about subject you don't write…

Alex_Kortis
- 21
- 3
1
vote
0 answers
Swipe to Unlock in Tabbed Activity
I want to implement "Swipe to Unlock" widget (https://github.com/ebanx/swipe-button 0.4.0) in a tabbed layout with 3 tabs.
While swiping on the widget itself it is changing tabs.
Even after keeping the widget on the left most tab, and then swiping…

Valley Wood
- 21
- 3
1
vote
2 answers
How to switch back to previous tab on back pressed in an tabbed activity
I have a tabbed activity 1 to 5. If I move from 3 to 5 then on back pressed I want to switch back from 5 to 3 i.e. on back pressed I want to move back to the previous tab. Please help

meenakshi agrawal
- 39
- 6
1
vote
0 answers
how to add web view in tabbed activity android?
I have seen lot of examples for adding web view in Tabbed activity.but it's not fulfill my need.What I am trying is
Main Activity.java
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
…

karthi
- 183
- 1
- 3
- 14
1
vote
1 answer
Android button.setOnClickListener
I am making an app for studies with tabbedActivity plus the button is not taking the action, someone knows to explain the reason, I have tried several forms but all are without action, does not give error and breaks the app but the button…

Erikson William
- 21
- 2
1
vote
2 answers
Same Fragment with listviews on different tabs
I would like to create an activity which shows 3 tabs. The first tab should show a user's uploaded photos the 2nd all the images a user liked, and 3rd the user's favorite images. All these data comes from a webservice.I would like to use the same…

Coder
- 886
- 1
- 12
- 28
1
vote
1 answer
onEvent() is not being called?
I am passing data from AsyncTask to a fragment of tabbed activity. Why onEvent() of EventBus is not being called?
BackgroundWorker.java doInBackground() is called by MainActivity
public class BackgroundWorker extends AsyncTask…

raviw3
- 23
- 5
1
vote
1 answer
ScrollView in tabbed activity jumps down
I was making an xkcd explain reader app.
I started off with a tabbed activity, pre-genned by idea. Then I changed the fragment's xml to have a scrollview with my actual layout in it.
Then however things did not work fully as expected, every time I…

Henrykvdb
- 320
- 1
- 10
1
vote
0 answers
Best model for Android Master / Detail UI where Master is tabbed
I'm an iOS developer and new to Android development. I recently completed one iOS to Android port that was simple enough but I'm now unsure of how to proceed with the next much more complex app port.
What I'm unsure of is how to best replicate a…

Seoras
- 1,286
- 13
- 21
1
vote
2 answers
Disable swipe in tabbed activity (Android Studio)
i want to disable the swipe function in the tabbed activity. I tried some examples i found but it didn't worked or the code was completely different.
Here is my code:
MainActivity.java:
package com.example;
import…

Dima
- 33
- 1
- 4
1
vote
2 answers
My Tabbed Activity is not showing Titles on Tabs
This is my Main Activity
public class MainActivity extends AppCompatActivity {
private SectionsPagerAdapter mSectionsPagerAdapter;
private ViewPager mViewPager;
TabLayout tablayout;
@Override
protected void onCreate(Bundle…

Waqas Khan
- 97
- 2
- 8