aashrai / skittles Goto Github PK
View Code? Open in Web Editor NEWMaterial design FAB menu made easy
License: MIT License
Material design FAB menu made easy
License: MIT License
Icon-Only skittles work fine but when using one with text there are 2 problems:
a) the shadow is cropped
b) the text is not centered vertically
with this code:
final SkittleBuilder builder = new SkittleBuilder.Builder(this, fam)
.mainSkittleColor( R.color.accent)
.build();
builder.makeTextSkittle("foo",R.drawable.ic_action_bulb).add();
Provide methods for changing the color of the skittle dynamically and which accepts all typed of color resources ,in response to #4
i cant find how to import builder in your sample app
android studio doesnt recognize this
skittleBuilder = new SkittleBuilder.Builder(this, skittleLayout)
.mainSkittleColor(Color.GREEN)
.mainSkittleIcon(R.drawable.ic_android_white_18dp)
.build();
On MotoE 5.1. is that because the fab_margins values in Skittles/skittles/src/main/res/values/dimens.xml are set to 0.1?
Is there any way to programatically hide bullets? There is no easy to find option and nothing mentioned in readme
There needs to be a way to set the TextColor for TextSkittles
Need to see how the lib looks in lollipop can someone post screenshots, i suspect there are some bugs
Need to support proper animation and flow with Snackbar
java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.v7.widget.RecyclerView$Adapter snow.skittles.SkittleContainer.getAdapter()' on a null object reference
with wild clicking on the skittle example I could produce this crash on emulator sdk 23 with last commit on masterr 3d6cf49:
02-17 04:42:13.868 2884 2884 E AndroidRuntime: java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
02-17 04:42:13.868 2884 2884 E AndroidRuntime: at java.util.ArrayList.get(ArrayList.java:310)
02-17 04:42:13.868 2884 2884 E AndroidRuntime: at snow.skittles.SkittleAdapter$SkittleViewHolder.onClick(SkittleAdapter.java:160)
02-17 04:42:13.868 2884 2884 E AndroidRuntime: at android.view.View.performClick(View.java:5198)
02-17 04:42:13.868 2884 2884 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:21147)
02-17 04:42:13.868 2884 2884 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
02-17 04:42:13.868 2884 2884 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
02-17 04:42:13.868 2884 2884 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
02-17 04:42:13.868 2884 2884 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
02-17 04:42:13.868 2884 2884 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-17 04:42:13.868 2884 2884 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
02-17 04:42:13.868 2884 2884 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
02-17 04:42:13.869 1588 1968 W ActivityManager: Force finishing activity snow.skittlessample/.MainActivity3
Currently the skittle container is a linear layout which does its job but makes things such as spacing and animations a pain, if we want to make the library more customizable recycler view is the way to go,
Hi, it's me again.
I have noticed that when I launch an acitvity from a skittle and then go back, the menu is still open. Would be useful to have a way to force the menu to close.
Currently only the buttons are clickable. thanks!
there is a crash when the main skittle is clicked when there are no mini skittles added
Right now you can create your own skittle but the RecyclerView Adapter doesn't know what to do with them, need to create a way to let others create their own ViewHolders.
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.