android-actionbar-compat Questions
4
Solved
I've just updated my app from using SDK 23 to SDK 24.
A problem has arisen for my activities that have show the Up/Home arrow (i.e., getSupportActionBar().setDisplayHomeAsUpEnabled(true)) in that ...
Meperidine asked 16/6, 2016 at 12:51
22
Solved
I'm trying to add a menu to the ToolBar.
onCreateOptionsMenu method of my Activity is called, but no menu appears.
This is dashboard.xml (from menu folder)
<?xml version="1.0" encoding="utf-8"...
Mummer asked 4/2, 2015 at 9:33
27
Solved
I'm migrating from ActionBar to Toolbar in my application.
But I don't know how to display and set click event on Back Arrow on Toolbar like I did on Actionbar.
With ActionBar, I call mActionb...
Behind asked 30/10, 2014 at 11:19
11
Solved
I am working on android application where I am using ActionBar so there one is navigation drawer icon to open it and title of ActionBar in ActionBar. I want to set a click listener on title of Acti...
Mourner asked 19/7, 2014 at 8:2
5
I have a Fragment with action bar back button enabled in it.
Code :
@Override
public void onAttach(Activity activity) {
super.onAttach(activity);
setHasOptionsMenu(true);
actionBar = ((MainAc...
Osteal asked 19/3, 2015 at 6:44
6
Solved
I'm using the Showcase library to explain my application feature to
the user. In some point I need to dim the whole ActionBar to present
another feature to the user.
For that I'm using the setAlp...
Hemihedral asked 16/11, 2013 at 20:27
22
Solved
I am using a custom actionbar view, and as you can see in the screenshot below, there is a blank gray space in the actionbar. I want to remove it.
What have I done:
res/values-v11/styles.xml
...
Millar asked 8/12, 2014 at 9:19
13
Solved
I'm using the new v7 appcompat library available starting from Android 4.3 (API level 18).
Regardless of what is specified in showAsAction for a menu item, it's not shown - it always creates the o...
Bangka asked 28/7, 2013 at 23:24
9
Solved
I have a Navigation Drawer which should appear in all my activities.
I saw many questions similar to this & found a solution like Extending the MainActivity with the Other Activities .
So i e...
Vadavaden asked 28/1, 2014 at 12:48
11
I am using appcompat library with a toolbar and I have implemented a search view in my app. But i want to remove the search view icon when its expanded.
here is my menu xml file:
<item
andro...
Stlouis asked 3/12, 2014 at 6:36
7
Solved
For some reason in my application, when using "Theme.AppCompat" as my style, it makes my Menus black text (which I set since I want black text) on a dark grey background, as shown here:
I have t...
Miraculous asked 26/3, 2015 at 16:4
10
Solved
I have an xml that I use with so many activities with fragments file but my problem is that I can't display the text I want in the toolbar, I use that xml that way because I have a navigation drawe...
Lutyens asked 25/12, 2014 at 0:11
7
Solved
I'm starting a new project that uses the AppCompat/ActionBarCompat in v7 support library. I'm trying to figure out how to use the getSupportActionBar from within a fragment. My activity that hosts ...
Ceremonial asked 19/8, 2013 at 18:36
4
Solved
Background
I wish to show an ActionBar on PreferenceActivity, as it's not available for pre-Honeycomb devices (even in the support library).
Because such a class isn't available on the support li...
Depew asked 21/10, 2014 at 20:18
3
My android app runs on a sdk 23 emulator just perfectly, but when I tried to run it on a tablet with sdk version 21, I got this exception:
java.lang.RuntimeException: Unable to start activity Com...
Sabu asked 3/12, 2015 at 12:56
4
In my Activity (that extends android.support.v7.app.ActionBarActivity) I have a fragment that is normally include into my views like this:
<?xml version="1.0" encoding="utf-8"?>
<FrameLay...
Tope asked 20/11, 2013 at 11:7
11
Solved
I just implemented the v7 AppCompat support library but the MenuItemCompat.getActionView always return null in every Android version I tested (4.2.2, 2.3.4 ....)
The SearchView is displayed in act...
Myrnamyrobalan asked 26/8, 2013 at 7:32
17
Solved
I used ActionBar Style Generator, and now trying to use into my app, but getting :
error: Error retrieving parent for item: No resource found that matches the given name '@style/
Theme.AppComp...
Convoy asked 20/2, 2014 at 7:19
4
Solved
I am using Action Bar Compat so that my action bar with navigation drawer was backward compatible down to API level 9 and I want to change the background of the action bar.
I copied the code from...
Brandeebranden asked 26/8, 2013 at 8:37
5
The used theme for the actionbar is Theme.AppCompat.Light when using Theme.Holo the issue does not exists.
I am using a custom view for the support v7 actionbar:
<?xml version="1.0" encoding=...
Pharyngo asked 11/9, 2013 at 9:27
7
Solved
I was recommended to extend my Activity class from ActionBarActivity
Here is the previous code:
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarActivity;
public ...
Showdown asked 27/7, 2013 at 0:49
5
I am using ActionBarCompat. When I load a child fragment, I want the home button to work as the up button. So I called this from the child fragment:
((ActionBarActivity) getActivity()).getSupport...
Mclendon asked 2/2, 2014 at 17:37
2
Solved
The procedure in the question linked below does not appear to work for me either with the standard or the support ActionMode. ACTION_UP never appears as a parameter although ACTION_DOWN does but re...
Chronological asked 20/9, 2015 at 19:6
4
Solved
I've been trying to find solution but none worked for me.
Activity theme:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/w...
Pengelly asked 2/12, 2016 at 12:52
4
Solved
I'm trying to set the customview of my app and the layout i made does not fill the entire actionbar.
I've tried so many style settings but none has worked for me.
here's my code in activity
View vi...
Dartmoor asked 3/12, 2014 at 2:18
1 Next >
© 2022 - 2024 — McMap. All rights reserved.