shamylzakariya / flyoutmenus Goto Github PK
View Code? Open in Web Editor NEWSimple material-style flyout menus for Android. There are many flyout type menus for Android, but this one is mine.
License: MIT License
Simple material-style flyout menus for Android. There are many flyout type menus for Android, but this one is mine.
License: MIT License
when i click flyoutmenu view in recyclerview item show correctly dialog first time but next time after scrolling dosen't update dialog position.
Hi
Thanks for your great work ๐
but I have a question. how to use my custom Item with your lib?
here is my object
`public class MyItem {
private int Id;
private String Shape;
private int Image;
private int Color;
private String Name;
private String Text;
public String getText() {
return Text;
}
public void setText(String text) {
Text = text;
}
public int getId() {
return Id;
}
public void setId(int id) {
Id = id;
}
public String getShape() {
return Shape;
}
public void setShape(String shape) {
Shape = shape;
}
public int getImage() {
return Image;
}
public void setImage(int image) {
Image = image;
}
public int getColor() {
return Color;
}
public void setColor(int color) {
Color = color;
}
public String getName() {
return Name;
}
public void setName(String name) {
Name = name;
}
}`
The minSdkVersion for the library is 17. A lot of developers are still supporting lower versions, i.e they can't use this library.
Perhaps the minSdkVersion should be specified in the README?
Please make minimum API level to 14
I implemented this library and sample with a project having RecyclerView.Adapter.
There is no perfect steps to reproduce but you need to continuously open/close/tap menu item. It has following exception frequently.
android.graphics.Canvas clipPath java.lang.NullPointerException: Attempt to invoke virtual method 'long android.graphics.Path.ni()' on a null object reference
at android.graphics.Canvas.clipPath(Canvas.java:797)
at android.graphics.Canvas.clipPath(Canvas.java:807)
at org.zakariya.flyoutmenu.FlyoutMenuView$MenuOverlayView.drawMenu(FlyoutMenuView.java:1418)
at org.zakariya.flyoutmenu.FlyoutMenuView$MenuOverlayView.onDraw(FlyoutMenuView.java:1396)
at android.view.View.draw(View.java:16184)
at android.view.View.updateDisplayListIfDirty(View.java:15180)
at android.view.View.draw(View.java:15954)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16187)
at com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2690)
at android.view.View.updateDisplayListIfDirty(View.java:15180)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2615)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2434)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2067)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:606)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
An Other questin shy
how to controll overflow the layout when runing this
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.