Questions tagged [android-tabbed-activity]
112 questions
0
votes
1 answer
How do I us OnClickListener in a Tabbed Activity with Viewpager and Fragment Placeholder
I am trying to get a button to work correctly when it is clicked. for basic example I am using a chronometer. Using Android Studio 3.4.2, I can uses this code in a Basic Activity project in the Main Activity and it works fine. the same code does not…

badavis78
- 33
- 1
- 6
0
votes
0 answers
Creating a tabbed activity within a bottom nav activity/fragment
Currently I'm trying to integrate two different activities. One is my mainAcitivity, which is a bottom navigation activity and the other is my tabbedActivity, which is my activity with tabs. I'm not sure how to get my tabbedActivity to fit in within…

user9333933
- 247
- 1
- 3
- 14
0
votes
1 answer
How To Select Navigation Style in Tabbed Activity Android Studio
I'm using Android Studio 3.3.1 on Mac.
I Cannot Find Navigation Style Option on Creating new Tabbed Activity Section.
I Used to select "Action Bar Tabs(with ViewPager)" but now i Can't find it.

M. Reyhani
- 471
- 1
- 4
- 7
0
votes
1 answer
onClickListener not working on tabbed layout on cardview
Hello guys hope y'all doing good. I have a problem here. I have activity with cardview inside tabbed layout. When use onclicklistener inside tabbed layout it is not working. But when use it without tabbed layout it works. How can i use it inside…

Ү. Мэндсайхан
- 9
- 2
0
votes
1 answer
In tabbed activity, retrive data from Firebase doesn't work well
In the following code I tried to read data from Firebase, and use this to create dynamically cardviews, but when the program starts, the ArrayList is empty while I click on the third tab, and back to the first. After a few days of finding out the…

Gergő Nagy
- 45
- 7
0
votes
0 answers
How to call Explicit intent for result from fragments in tabbed activity?
I am using android Tabbed Activity with 3 tabs. Each tab contains a fragment. I am trying to call Camera Intent from the 3rd tab using startActivityForResult(x, y);
After I click the pic, the control returns to the activity, but not to the fragment…

Tasnim Khan
- 207
- 3
- 12
0
votes
1 answer
How can I navigate from a listview Activity to tabbed fragment Activity
I'm new at Android programming and I need your help. Please. What I want to do.
I created listview, from listview I created OnItemClickListener to TabbedActivity.
Now I want for each listView item to show different fragments on TabbedActivity.
This…

pappii3d
- 69
- 1
- 7
0
votes
0 answers
Play Sound when new Fragment is opened Inside Tabbed Activity
I want to play a sound in my tabbed activity. Whenever the screen/Fragment is swiped and a new screen/fragment is opened, a sound should be played. But this is not happening.
public static class PlaceholderFragment extends Fragment {
/**
* The…

Avinash Tiwari
- 1
- 2
0
votes
1 answer
Set Icon with Text in a Tabbed Activity
I'm trying to implement a icons with text in my tabbed-activity. I don't understand how to visualize the icons.
this is the code:
tab_layout.xml:

KKKKK
- 273
- 2
- 18
0
votes
1 answer
sliding tab not sliding smoothly
i have an issue with the tab indicator under the tab titles in my tabbed activity, it's not sliding smoothly it just jumps when i scroll from a fragment to another. i don't really know how to fix this problem. i tried to look for some solutions but…

Mohamed Najb
- 41
- 10
0
votes
2 answers
Add Marker to Google Map in SupportFragment
I did a tabbed-activity with for tabs. In the fourth tab I did a map, and I added a marker but the marker is not visible and I do not undertand why. I tried many solutions for my problem, but for now I have come to this situation.
This is my Java…

KKKKK
- 273
- 2
- 18
0
votes
0 answers
Tabbed Activity Page Title not showing
This is what I was trying to do, The "Tab One" "Tab Two" as my Tabbed Page Title. Ignore the Toolbar
I created an app that uses tabbed activity, I used the preset tabbed activity in android studio and modified it to my use. But I'm having a problem…

my.account.one
- 1
- 1
0
votes
1 answer
How to use wifimanager.getscanresults() in fragment in tabbed activity?
I want to display result of WiFi Scan in tabbed activity with 2 tabs 'OM' & 'OR'. In 'OM' tab, I want to list devices whose SSID starts with OM & in 'OR' tab devices starting with SSID OR.
I tried following code which works fine in activity public…

Amit Tandel
- 5
- 9
0
votes
0 answers
ListView in tabbed activity is not displayed
I've created a tabbed activity in Android Studio, selecting it from the "New activity" window dialog.
The tabs number is not fixed, but it is read from a file, so that there is a random number of tabs. For this purpose, I used a…

Davide Cenedese
- 110
- 1
- 2
- 9