Questions tagged [android-actionbar-tabs]
20 questions
15
votes
1 answer
Sliding tabs inside actionbar tabs
I am trying to implement sliding tabs inside actionBar tabs just like flipboard. So one of the main tabs will have three tabs. Sub-tabs will scroll first and once all tabs get scrolled, then main tab comes into focus and will start scrolling.
I am…

user1288005
- 890
- 2
- 16
- 36
2
votes
1 answer
ActionBar.Tablistener deprecated
I'm trying to build a swipe tabs view by using fragment activity and actionbar.tablistener. I have referenced other people tutorial and do it, however, it keep on deprecated and do not successful run it. Then I changed to AppComBatActivity and it do…

YJ_C
- 21
- 1
- 3
2
votes
2 answers
How to populate a fragment layout dynamically?
I have a fragment with his class:
public class FormatShortFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView =…

osanfer
- 75
- 1
- 7
2
votes
1 answer
Setting background color to ActionBar tabs removes divider
I use Android actionbar and tabs and I want to change my tabs background color.
I tried to apply it to the following in my…

keepthepeach
- 1,621
- 2
- 20
- 27
2
votes
2 answers
Disable ActionBar tab indicator programmatically
Is it possible to disable the tab indicator using programmatically/ Java code ?
This is how I am setting other tab properties :
actionBar =…

Nitish
- 13,845
- 28
- 135
- 263
2
votes
3 answers
ActionBar tabs set dynamic width according to screen width
I have 5 tabs in all. This is how I am adding them :
for (int i = 0; i < tabs.length; i++) {
if (i == 0) {
actionBar.addTab(
actionBar.newTab()
…

Nitish
- 13,845
- 28
- 135
- 263
1
vote
0 answers
i just created an xml in drawable to call different image. but it display only first two image in three tab. please guide me where i went wrong
i just created 3 tabs in action bar.and instead of giving text am assigning image for each tab. and trying to call red color image for all tabs when it is not selected.while pressing any button that particular button should call green color image.
…

aravind
- 13
- 5
1
vote
0 answers
Get X and Y position on Fragment made by actionbar
I have to get the x y coordinate of one Fragment and use it as text
But I can't find onTouchEvent on Fragment so I don't know how to make this.
This is my code.
package com.example.gshs14115.projectmiddle;
import android.app.ActionBar;
import…

JaeHyunChoi
- 33
- 7
1
vote
2 answers
How to change tab background color in action bar tabs
i am implementing tabs with action bar
but i am fail in change background color of tabs
can one help me.
Thanks in advance.
My output
My Required output
for that bottom stript red color i am using below code

NareshRavva
- 823
- 3
- 21
- 50
1
vote
1 answer
Android Tabbed Activity: Action Bar Tabs with ViewPager: different layout for each tab
I have a total blackout, I am not familiar to work with fragments.
I created with the eclipse assistant a new Android project:
here a snippet of the created default class:
/**
* A {@link FragmentPagerAdapter} that returns a fragment…

user1616685
- 1,310
- 1
- 15
- 36
0
votes
1 answer
Custom position of Actionbar Tabs
Is there way how to set custom position of Actionbar Tabs? Or set the layout like in the picture?

Jiri K
- 45
- 5
0
votes
1 answer
Initializing value to views in ActionBar Tab framents in android while onCreate of Tab Activity
My App uses ActionBar Tab Fragments to Create/Modify Device Details. The Device properties of categorized into different fragments. I want to initialize each fragments in OnCreate of Tab Activity. In each tab fragment has SetValues method which…

Riskhan
- 4,434
- 12
- 50
- 76
0
votes
2 answers
How can I retrieve ActionBar.Tab Height?
I'm working with AppCompat and I use the ActionBar.Tab to set Tab's and now I need to get Tab Height ?
Any help will be appreciated.

TooCool
- 10,598
- 15
- 60
- 85
0
votes
0 answers
Fragment popBackStack without animation
On navigating from one fragment to another which are part of same activity, I am using slide animation.
WebFragment fragment = WebFragment.newInstance(Globals.TGURL_CREATE_ACTIVITY, "");
FragmentManager fm =…

Nitish
- 13,845
- 28
- 135
- 263
0
votes
0 answers
How to implement action bar nested tabs
i am developing one application in that i have to implement action bar nested tabs
can any one suggest me how to approach this situation
required o/p
when i use tabhost innertabs compresed
Problem solved by adding HorizontalScrollView to TabHost
…

NareshRavva
- 823
- 3
- 21
- 50