-
-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppCompat v21 support? #9
Comments
Ok, I managed it by adding a toolbar to the activity layout and setting it as the ActionBar. This toolbar contains an ImageView and a TextView to replace the former ActionBar's icon and title. |
Hi, please can you explain me how you solve it?? Thank you so much |
Sure :) That's what I did: In TransparentTheme style:
Add this toolbar at the end of the activity_main.xml but inside the main root FrameLayout. Of course you can tweak it:
Then, in the MainActivity.java:
And I think that's all. |
Hi, I do all but now I have NullPointerException on line 156 of MainActivity why?? Thanks again |
Hmm... don't know why. I have made all the modifications again, thinking I could forget anything but it just works fine for me. You can post the trace of the exception to try to find the problem. |
thanks... its perfectly working |
Thank you @nitrico, I can also confirm that this work around does rectify the issues with AppCompat v21 |
I can confirm that this fix does not work anymore... 07-07 09:56:15.633 3430-3430/com.bah.is.esd.zoneapp E/AndroidRuntime﹕ FATAL EXCEPTION: main |
Is there any way to get it working with the new appcompat support library? They introduced many changes on it and I don't find how to solve the problem of getActionBarIconView() always returning null.
The text was updated successfully, but these errors were encountered: