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
guillotine activity #12
Comments
Hey @joaosardinha |
Hey absolutely! MainActivity.java:
The guillotine.xml and activity.xml layouts are just like in the original sample, with the hamburgers in the right side of the ActionBar and the GUILLOTINE_CLOSED_ANGLE as 90f. I created an activity class for the guillotine.xml layout:
My problem is, simple things as a button calling startActivity won't work inside the Guillotine activity making it nothing more than a layout instead of an activity. |
Well, if I understand correctly, what you want is to encapsulate some logic inside class of navigation menu, so it won't be just a layout. If this is the case, then you can extend View, use this layout and put all the logic you need inside. Then add your custom View to your MainActivity instead of inflating layout. But if you want both elements to be activities and have this kind of animation, then this lib won't satisfy your needs completely. You can look into http://developer.android.com/training/material/animations.html to achieve similar behaviour |
Hi, I'm implementing your beautiful menu is a way that the guillotine layout will be full of interactions, and they don't seem to react at all, I've create a GuillotineActivity.java for it, and can't change simple things like the backgroundColor programmatically, how do I do it ?
Thanks
The text was updated successfully, but these errors were encountered: