Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
2 answers
45 views

Actionbar.removealltabs() leaving behind the tabs space

Actionbar.removealltabs removes all my tabs. However, the remaining space used to hold the tabs are still there. As a result my actionbar looks like a very tall actionbar with a empty bottom half. ...
Carl's user avatar
  • 21
1 vote
1 answer
49 views

actionbar is hiding and not coming back

In my android project, the action bar is hiding and I am not able to use menus in the side drawer. I am using fragments. It happens only when I try to input password in password field in DECODE ...
Jai Prak's user avatar
  • 3,390
0 votes
2 answers
95 views

Hide ActionBar Tab in Android

I have an Android App which shows some Tabs in ActionBar. Now I want to hide one Tab and only after a Button-Click-Event (or something else) I would like to show this Tab. In this example "Section 2" ...
ecom_jo's user avatar
  • 33
1 vote
1 answer
583 views

How to make search Icon and back button icon disappear when clicking on different tab in TabLayout?

When you click on Search icon the searchView and keyboard appear, if the user decides to click on a different tab in TabLayout, I got the searchView and keyboard to disappear but I can't get the "Back"...
iBEK's user avatar
  • 642
0 votes
2 answers
102 views

Failed to change custom actionbar background color in android

I am creating an android application where in one activity I was displaying tabs with the help of actionbar, So I have to change actionbar background color. But whenever I am trying to change the ...
Gaurav Takte's user avatar
0 votes
1 answer
282 views

How to change text color on the current tab in ActionBar xamarin android?

I am new in Xamarin, and I try to change the color on my selected tab in a ActionBar like this ? Example Just the text color and underline but not the background? Thanks a lot
user avatar
0 votes
3 answers
1k views

pass tab title recyclerview to acticity

I need a help to pass tab title to my detail activity on click item recyclerview. then i want to show that title as actionbar title this my tab with recyclerview : and after i click the item on ...
Rony R's user avatar
  • 3
0 votes
0 answers
262 views

ActionBar with SearchView and tabs

I need to show the following ActionBar: Does Android support it, or do I need to do a custom layout and set it to the ActionBar?
piojo's user avatar
  • 1,929
0 votes
0 answers
37 views

Changing color of tab text without affecting title

I am using the action bar to have three tabs. The action bar also has a title and a subtitle. Most of the questions on SO are about changing the color of the actionbar itself. But currently the title ...
leoOrion's user avatar
  • 1,957
0 votes
1 answer
38 views

Changing tabs using menu items in actionbar

I have been using a TabLayout till now to navigate between different tabs in my application. I need to remove the Tablayout and navigate between the tabs using menu items in the toolbar. This is the ...
Gareth Hamsik's user avatar
-1 votes
1 answer
41 views

Make Tabbed Layout with Custom ActionBar?

I am trying to make custom profile page , Tabbed layout is embed within ActionBar , and Tabs can change both with sliding and click on other tab. I just started playing with ActionBar , and didn't ...
Zulqurnain Jutt's user avatar
0 votes
1 answer
424 views

Unable to get ActionBar on Fragment

import android.app.ActionBar; import android.app.FragmentTransaction; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.view.ViewPager; import android.view....
Teekam's user avatar
  • 939
2 votes
0 answers
885 views

Android tab button stylizing

I'm working through a project where we are removing the ActionBarSerlock from an older project. I'm trying to rebuild the tab bar to look like the original bar where each tab looks like an actual ...
Mike's user avatar
  • 182
0 votes
0 answers
42 views

Tab Fragment shows three Action Bars

I have the following problem, I am using tabs to switch between fragments, but there are are 3 Action bars, but I want only 2, the standard, and the Tab Action Bar, so the question is, how can I get ...
rib's user avatar
  • 200
0 votes
1 answer
724 views

Customize ActionBar cause Tabs unable to work

Here i need a Customize Action Bar and Tab Fragment in my Xamarin Android project. Because of i have the Customize Action Bar and I need to close the original ActionBar, so this is my manifest : <?...
KaiEn Suizai's user avatar
0 votes
2 answers
225 views

Android hide Actionbar show only the tabs

I want to show the tabs on the top, and hide the actionbar. Only the parts in the red rectangle, and hide the empty row above them. I used these lines to hide the icon, and the title on the ...
Máté Széll's user avatar
1 vote
3 answers
420 views

c# xamarin Error inflating class ActionMenuView

Hi i just tried making a Android aplication with xamarin and visual studio, and the thing i don't understand is how can i make a simple tabbed ui as seen in this Picture I tried following the [Xamarin ...
SilentGrove_99's user avatar
0 votes
1 answer
513 views

Cannot Resolve setSelectedNavigationItem(),addTab,newTab() method

I'm new to android and I'm making a sliding tab layout project. Though I'm facing a slight problem in my project. In my class which extends AppCompatActivity there is an error saying cannot ...
Alok's user avatar
  • 8,950
2 votes
1 answer
148 views

Action bar does not show in tab

I have three tabs (A,B,C) and I want to add a home action bar on each tab. Not sure what I have missed here, no action bar is shown on each fragment. Below show the code of Fragment A. Fragment A @...
John's user avatar
  • 694
0 votes
1 answer
642 views

Android Tabs and Different ActionBar Menu Items

I have a TabGroup in my app. How can I have different actions items for each Tab ? I just found an example from here, but it is not enough for me. Can someone provide some hints or at least a link ?...
John's user avatar
  • 694
2 votes
3 answers
4k views

cannot find symbol method getSupportActionBar()

I know this question has been posted plenty of times, but I still unable to solve even i have tried many solution from Stack Overflow. import android.support.v4.app.FragmentActivity; import android....
John's user avatar
  • 694
2 votes
1 answer
2k views

How to create new LinkedIn app style ActionBar with Tabs inside it?

I'm trying to create an ActionBar with 5 tabs and a button/imageview that will open NavigationDrawer from the right side. Very similar to what LinkedIn have done in their new Android application, here ...
Emil Adz's user avatar
  • 41.1k
0 votes
1 answer
133 views

Android Replace Action Bar with Tabs

I'm new to Android and would like to replace ActionBar with Tabs like in facebook Messager app or AirBnB app. I have tried to find tutorials but could not find any. Can anyone suggest resources or ...
stefano_cdn's user avatar
  • 1,382
-1 votes
1 answer
397 views

To create Swipeable tabs without ActionBar

I would like to create swipeable tabs without action bar at its top as shown as in the link. I've used the following lines : setDisplayShowHomeEnabled(false); setDisplayShowTitleEnabled(false); ...
Parthiban M's user avatar
  • 1,104
1 vote
3 answers
3k views

Android remove actionbar title keeping toolbar menu

I need to keep my tabbed toolbar in my application removing the actionbar. This is how it looks like now: But I want it to look like this: My code xml is: <LinearLayout xmlns:android="http://...
Pier Giorgio Misley's user avatar
0 votes
2 answers
927 views

Changing tab selector color (tab underline) for app

Screenshot of my app: I want to change the blue underline to white programmatically, that is by using java code not using xml styles. Can anyone suggest please how to do it? Here is my java code. I ...
user avatar
0 votes
2 answers
87 views

Android 4+ actionbar tabs showing as to drop down list on first launch - To to prevent?

I am working on an Android 4+ app that uses an ActionBar Tabs to navigate an android.support.v4.view.ViewPager. This works fine, except when the app is launched the very first time after installation. ...
Andrei Herford's user avatar
0 votes
1 answer
768 views

Should I use ActionBar tabs or TabLayout if my target android version is 4.2?

I'm making my first android app and I want it to have an action bar at the top and tabs right below the action bar so that I can swipe between different fragments. Pretty much exactly like the current ...
user avatar
0 votes
2 answers
105 views

Android - Different ActionBar depending on the Fragment in a tabbed Activity

The title says it all. I was wondering if I could modify the action bar items depending on the fragment displayed on a tabbed Activity. If it is possible how should I do this stuff?
Roman Panaget's user avatar
0 votes
1 answer
42 views

Implementing swipe tabs with action bar giving me an exception

I am trying to implement tabs with action bar in an activity. But I am getting an exception. What is the reason? This is my code: MainActivity.java public class MainActivity extends ...
vipul bansal's user avatar
0 votes
3 answers
2k views

How to remove action bar in tab view android

I have an action bar with tabs, lay out looks like https://i.sstatic.net/cySGd.png As you can see there are 2 sections in action bar (one where icon and app name is printed, and another where tabs ...
user0918789242353's user avatar
2 votes
1 answer
910 views

Android Airbnb like Tabs

I am trying to figure out how airbnb has implemented its Tab Bar, it either seems they have hidden their actionbar and everything has been shifted onto a tab bar but then the right most user icon ...
gandharv09's user avatar
0 votes
0 answers
149 views

How to put Sidebar and Tabbed Actionbar on the same Activity?

I am new to Android, I don't know if I make myself clear enough. I want to make an app with a sidebar like this https://i.sstatic.net/YCTxa.png and when UKT is selected open the corresponding frame ...
Deivi's user avatar
  • 205
1 vote
1 answer
241 views

Removing default actionbar tab padding

My problem is that I can't seem to override androids default tab padding and it's making my tabs horizontally scrollable (which I don't want). I've searched around stack overflow and other sites ...
Emile's user avatar
  • 21
1 vote
1 answer
708 views

How to refresh the content of a tab in an actionBar (Android)?

Here the summary of my 'project' on Android 4.x and the problem I can't solve: i have an actionBar with 2 tabs (i know it is deprecated): ... Fragment fragmentTab1 = new FragmentTab1(); Fragment ...
Arthur Dent's user avatar
-1 votes
1 answer
62 views

Code doesnot work

I am using android studio and I am trying to implement the codes mentioned here http://developer.android.com/guide/topics/ui/actionbar.html but it does not work.I am trying to set up the action Bar ...
newbie's user avatar
  • 41
-1 votes
1 answer
121 views

Menu Drawer With ActionBar Tab using Fragment bug

hi I am implemented navigation drawer in my app but i can't figure out why navigation drawer appear below tabs. i implemented navigation drawer , tabs using fragment. i need to disappear tab when i ...
Vasudev Vyas's user avatar
0 votes
0 answers
54 views

Special Characters in Android Bar

I 'm from Brazil and my English is bad, sorry. I have updated my app, but now it is showing special characters in the action bar tabs. What can I do to fix this?
Denilson Marcelino's user avatar
0 votes
0 answers
60 views

how to condition tabs to be added to action bar or not

i have five columns in my database and five tabs that each column corresponds to each tab now i want to add tabs to actionbar just if the corresponding column was not empty so how i should condition ...
Hossein Nakhaeipoor's user avatar
0 votes
0 answers
162 views

Android orientation change removes actionbar tab custom view

I have created ActionBar tabs with custom views. I am using a custom view because I want to show unread badge counts inside the tabs. When the activity is created, they appear just fine. When I ...
Mike Walker's user avatar
  • 3,126
1 vote
1 answer
569 views

How can we hide ActionBar Tabs in Android?

I'm developing an app in which I've used Tabs with Swipes enabled, and I just wanted to know that can I hide the ActionBar Tabs in my layout? I want to hide Tab 0 title, tab 1 title, tab 2 title, etc.....
Ajinkya More's user avatar
0 votes
0 answers
52 views

How to adapt the use of ActionBar.TabListener

I want to make a view that is composed of some textViews and buttons in the head of the view, and some tabs below these textViews and buttons. I am using for that a class that is implementing ...
coder's user avatar
  • 1
0 votes
1 answer
64 views

Android Actionbar, get specific tab screen position

I have an Activity, in which I used actionbar tabs, the Activity has multiple tabs. I want to display a walkthrough when the application starts. In the walkthrough I have to display a message below ...
user1595266's user avatar
0 votes
1 answer
1k views

Remove shadow between actionbar and tabs

I am trying to remove the shadow between my tabs and the actionbar, and I want to have shadow below the slidingTabs. I have implemented my tabs with this approach. Which means it is not possible to ...
Kæmpe Klunker's user avatar
0 votes
2 answers
1k views

Prevent ActionBar tabs from horizontal scrolling

I have 4 tabs in an actionBar. I'm using a RelativeLayout with an ImageView and a TextView as a customView for the tabs. The actionBar overflows the width of the screen and the tabs become ...
manishKungwani's user avatar
-1 votes
1 answer
344 views

Android ActionBarActivity and Google Map interacting between tabs

In my Actionbar activity I got this : @Override public Fragment getItem(int position) { switch (position) { case 0: return new FirstActivity(); case 1: ...
Waroulolz's user avatar
  • 307
0 votes
0 answers
299 views

Android actionbar tabs and indicator width issue

I have an activity with action bar and action bar tabs. I am using appcompat for action bar. I have attached the screen shots. on emulator 4.4 and htc 4.1.1 tabs widths id correct but on nexus 4, 4.4 ...
SAIR's user avatar
  • 1,131
1 vote
1 answer
1k views

How to change selected tab title color

I need to change selected tab color in my tab activity. For example, selected item text color must be #cea939, and unselected items colors have to be #d7ba60. What should I do to change that? ...
Stepan Mazokha's user avatar
2 votes
1 answer
152 views

Android action tab listener makes my layout hide

In my main activity contains actionbar tablistener, when the tab is swipe or tab then i load the fragment based on the selection, now fragment listview hides below the main activity action bar, refer ...
Madhu's user avatar
  • 1,800
3 votes
3 answers
13k views

How to change Viewpager tab colour dynamically?

How to change colour of Tabs like this? When I click/swipe to green or any other tab, the tab colour should change to that appropriate colour and rest of other tabs colour should change to black. ...
Sudheesh Mohan's user avatar

1
2 3 4 5
7