yalantis / guillotinemenu-android Goto Github PK
View Code? Open in Web Editor NEWNeat library, that provides a simple way to implement guillotine-styled animation
Home Page: https://yalantis.com/
Neat library, that provides a simple way to implement guillotine-styled animation
Home Page: https://yalantis.com/
Thanks for this library, i use this menu in my project. but now i have close this menu with BackButtonPress in android.
how can i this?
I want to have menu button on right side, the problem is animation starts from bottom to top and doesn't seem correct.
problem solved when I changed "GUILLOTINE_CLOSED_ANGLE" value from -90.0F to 90.0F.
at start when we initialize have @BindView error.
@BindView(R.id.toolbar)
@BindView(R.id.root)
FrameLayout root;
@BindView(R.id.content_hamburger)
and in override method
ButterKnife.bind(this);
I have a question and i implement a view where only was the toolbar with the GuillotineMenu animation. Works fine...but..i also put a recyclerView under this toolbar and the guillotine menu does not display in my view. I have make no changes so i don't know if there is any problem with other views (recyclerView) or something like that.
Hope someone can help me.
Thanks!
First of all, nice library and great animation. However, I think the interpolators at the moment is created based on some pre-calculated constants. For example, in ActionBarInterpolator
:
private static final float FIRST_BOUNCE_PART = 0.375f;
private static final float SECOND_BOUNCE_PART = 0.625f;
@Override
public float getInterpolation(float t) {
if (t < FIRST_BOUNCE_PART) {
return (-28.4444f) * t * t + 10.66667f * t;
} else if (t < SECOND_BOUNCE_PART) {
return (21.33312f) * t * t - 21.33312f * t + 4.999950f;
} else {
return (-9.481481f) * t * t + 15.40741f * t - 5.925926f;
}
}
The constants used in getInterpolation
(e.g., -28.4444f) are pre-calculated based on the values of FIRST_BOUNCE_PART
and SECOND_BOUNCE_PART
. If either or both of these values are changed, the constant values need to be recalculated.
This limit users of this library from changing the value of FIRST_BOUNCE_PART
and/or SECOND_BOUNCE_PART
to whatever they want because if they change these values, they have to do their own math to work out formulas for the interpolators.
So I think it would be nicer to provide generic formulas for interpolators with perhaps FIRST_BOUNCE_PART
and SECOND_BOUNCE_PART
are variables to avoid users being worrying about the formulas themselves.
What do you think?
I know that this is not an issue, but i would really appreciate if you give me this information.
Thank you!
I like it! It was beautiful. But I think it was not convenient cause I must click the menu icon.
I think it will be better that you rotate the drawer 90 degrees in clockwise direction and add sliding gesture like Navigating Drawer.
First of all, this library is great :). When do you plan to implement handling right-to-left layouts functionality? It is just changing GUILLOTINE_CLOSED_ANGLE constant to positive value
I am inflating a layout for Guillotinemenu which contain a recycleview with gridlayout which contatin an image and text so when i click on menu button it open menu with not smooth animation...its stuck in between for few milliseconds and than open the menu..while in simple textview with drawble in your example work smoothly
Hi, Thanks for awesome library. I found one issue. After opening animation, little bit of behind layout is visible.You can see in sample example if you change background of root element in activity layout.
Please see attached image.red color is activity background color and slightly visible in right side.
I found solution of that issue. You can verify from your side.
Change in GuillotineInterpolator class:
private float secondBounce(float t) {
return 0.625f * t * t - 1.083f * t + 1.458f;
}
I'm trying to implement this menu in my code and set everything up the same way as the example code provided, but when inflating the menu in the MainActivity onCreate() method, the app stops.
The following message is displayed
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.CanaroTextView" on path: DexPathList[[zip file "/data/app/com.example.guillotinemenu.testapp-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
But I can't understand where the program is trying to get the android.view.CanaroTextView class, since throughout my program I'm always specifying the CanaroTextView class in my own package
There seems to be a problem with the Open angel of the menu.
I can see a bit from the main view from the right of the screen.
So its like over opened.
Issue 2 :
if i use setClosedOnStart() to true, the hamburger button animation doesn't work
I have just implemented "GuillotineMenu-Android" in my android project. In my menu xml files I have some button which perform some actions, for that actions I have to write click listeners for that buttons.The java file which I am attaching with that xml is not working. How can I make it operational?
Please write change log for 1.2 version
I am faceing this issue in when i had updtae project gradle 2.2.1 to 3.1.3
Cannot choose between the following configurations of project :library:
Access
Originally posted by @kytheone in #39 (comment)
Is there any way I could get this to work on Unity3d? Look's great!
Hello,
I have copy this to my APP. But i have this error :
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.FrameLayout.addView(android.view.View)' on a null object reference at com.yalantis.guillotine.sample.activity.MainActivity.onCreate(MainActivity.java:43)
Do you know why i have this error ?
Thanks
hi , i have an issue loading this project on android studio
when i load this project my android studio shows this error :
Failed to resolve: com.jakewharton:butterknife:6.1.0
is it because my sdk is not upgraded?
what can i do to fix this error ?
how to check menu is open or close?
I'm getting an error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'. in res/values/styles.xml
i used this menu in my application . this is so good and good looking in UI . But the problem occurs on 4.2.2 . when i tried to run app on 4.2.2 the menu crashed . if you have a solution to this problem kindly reply .
Yes, We can do this!
I'll work on it.
How to implement listener for menu icons like navigation drawer ?
Hi,
I added compile 'com.jakewharton:butterknife:8.0.1'
to my app.gradle but the class GuillotineAnimation
cannot be resolved. Why ?
How do I close the menu and go back to my activity when one of the menu items is clicked. Please help.
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
so I used this guillotine menu library in my project, but I have an issue
I have a recyclerview and when I click it, it will go to another activity...
so when I open guillotine menu, I can click my recyclerview which is beneath guillotine menu on empty space in guillotine menu
is there any solution on this?
Thanks for cool menu.
I think it's not an issue, but how can I disable buttons on Main, when open Guillotine menu?
Thanks again
hi
how to open/close menu by code?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.