-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ActionMode appcompat-v7 (icon and text colors problem after setting up Calligraphy) #120
Comments
@ferrannp Shot in the dark here: I am going to assume this is related to: app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" Can you add a but more code to complete the example, I think I know what this is but if I can replicate it that always helps! Thanks, |
Hello! I'll try to write an example when I have time... yes basically I added those lines you quoted to do something like: https://chris.banes.me/2014/10/17/appcompat-v21/
I have a simple listview that uses CHOICE_MODE_MULTIPLE_MODAL. Unfortunately, there is no much information on how to style that text & icon of the Action Mode. |
@ferrannp yeah that is correct, this is to do with theme context, which isn't generated. I was suspicious this might happen but couldn't reproduce. So if you have a simple example that would be great :) |
The same problem. I try to set the custom font and nothing: with all views is possible except for toolbar widget. The ideal way is to do it through styles.xml not by hard code, it's an ugly workaround. If i want to change the font for the app, so i have to change it on styles.xml and per each java class too, I think that's not the idea. |
@ferrannp try:
Seem's defining |
@castrojr913 the TextView's in the Toolbar get added programatically, If you define the titleStyle and subtitleStyle as per the old action bar impl, those will work. I am get to fully overhaul the deep linking into styles for Menus etc.. It's safe to say its a bit of a pain as they are not inflated traditionally. |
Hi @chrisjenx, your solution didn't work for me. What I see changing Dark.ActionBar for Dark is: So now I can see the arrow but still neither the title or the arrow are white. |
Very odd, as it works fine for me, I'll have to investigate more. On Tue Feb 03 2015 at 10:48:18 PM Ferran Negre notifications@github.com
|
@ferrannp are you able to pull out a broken sample into here? |
A part from the code I posted, I set up the ActionMode using:
And start it using:
(When there is some long click in some button inside the list). Can I see some sample when this is working? Maybe will be faster :) |
Sorry have you tried setting the popup Theme to dark? |
@ferrannp I identified an issue tonight, I might of solved your issue. I'm about to push a snapshot. |
Hello! I tried version 2.0.2 and the issue is not happening anymore. Thank you! You're doing a great job here. |
Hello! |
@roygwsidev and are you using the latest version of |
You can solve with this code : toolbar.setTitleTextColor(0xFFFFFFFF); I found here |
Hello!
I have a Toolbar set up and I am also using an action mode with my color accent as a background.
Toolbar:
Theme:
What I used to see is:
But after setting up Calligraphy and using this into my main activity:
I see it in this way:
Text is black instead of white... And I only see the back arrow when pressing on it (it is the same color as the bar now!). Any ideas on why is this happening? Thank you!
The text was updated successfully, but these errors were encountered: