-
Notifications
You must be signed in to change notification settings - Fork 666
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
Action bar overlay? #168
Comments
I'm not quite sure what you mean by action bar overlay. But it could be a duplicate of #165 |
I'm having the same issue when using an action bar overlay (http://developer.android.com/training/basics/actionbar/overlaying.html). Is there a way we can get the crouton to display below the translucent action bar without messing with custom views? |
Just meet this situation, I change the Manager class, the default Crouton(INFO, ALERT, CONFIRM) will show below the actionbar. see this gist: https://gist.github.com/goodev/10725271 |
@keyboardsurfer This would be nice to include @goodev patch in this library |
Yep I think so, too. @goodev care to make a pull request on develop? |
@keyboardsurfer , I created a pull request: #174 |
I just tried and this still persists. Basically when the ActionBar is overlayed, the crouton is not displayed since it is hidden beneath the actionbar. I am unable to add a margin to the top of the crouton. This I believe would sort the issue out. |
@frostymarvelous which version of Crouton are you using? |
There is a version 1.8.5 available, which is not yet deployed on maven central. The issue should be resolved in this version. |
Alright. Awesome! I am looking forward to it. |
I am still experiencing this. My custom view crouton is going below my custom actionbar overlay. Using version 1.8.5 from maven. |
You could use the new Toolbar API and attach the Crouton to that. |
Hi @keyboardsurfer, how i can attach crouton in Toolbar? |
You'll need to pass it's resource Id to the Crouton constructor as last parameter. |
it will show crouton little bit shifted over right side. |
Not working here. |
Can you post a screenshot of the result when attaching a Crouton to the Toolbar as described in my comment above? |
You probably need to fiddle around with the |
See README for further info. |
How do you handle repositioning of a crouton when action bar overlay is on?
I have a weird case where the crouton goes below my action bar. My hacky solution for now is to add a custom view and add top padding when the action bar is visible?
Is that something that this library doesn't handle automatically? or am I doing something wrong?
Thanks
The text was updated successfully, but these errors were encountered: