nikartx / fitbutton Goto Github PK
View Code? Open in Web Editor NEWThe button which can use with icon, text, divider, custom ripple effect, border, corner radius e.t.c.
The button which can use with icon, text, divider, custom ripple effect, border, corner radius e.t.c.
If you don't set the fb_text
attribute or let it with a blank string, then text will not appear when you set it programmatically. My guess is that the button is not resizing when text changes.
https://jitpack.io/com/github/nikartm/FitButton/1.2.1/build.log
i can use jcenter(), but jcenter is at the end of life
how to do following things?
1- Set Opacity
2- Letter Spacing
3- Keep icon most left , margin adding effect to center text as well
In the sample images, there are so many various kinds of buttons. But am not able to understand how to properly use these button. Can you please provide proper documentation over the usage?
This is my fitbutton:
<com.github.nikartm.button.FitButton android:id="@+id/fitButtonEatOut" android:layout_width="0dp" android:layout_height="300dp" android:layout_margin="16dp" android:layout_marginTop="16dp" android:layout_marginEnd="195dp" android:alpha="1" android:gravity="center" app:fb_backgroundColor="#fff" app:fb_cornerRadius="7dp" app:fb_icon="@drawable/ic_shoppingbag" app:fb_iconHeight="100dp" app:fb_iconPosition="top" app:fb_iconWidth="100dp" app:fb_shadow="20dp" app:fb_shape="rectangle" app:fb_text="Take Away" app:fb_textColor="#000" app:fb_textPaddingTop="5dp" app:fb_textSize="30sp">
The icon looks pixelated on big android screens, however it should not since the drawable is a vector icon and indeed it doesn't look pixelated when placed inside an imageview, Any tips?
As far as I know, there is no way to add a gradient background to FitButton
Please add this feature
hi
i'm using this awesome library in many project but when i update my android studio to 4.2 version can't debug it
error is Manifest merger failed with multiple errors, see logs when i comment library every thing work...!
Hi,
What is the minimum version of android to use your library? Can you add this info into your README?
Thanks.
Is there any way to set font of the button's text in by xml attribute that is equivalent to the way doing it in java code:
fitbutton.setTextFont(R.font.share_tech_regular);
I have observed in my log wherever my view contains FitButton, I get this log "W/View: requestLayout() improperly called by com.github.nikartm.button.FitButton{...} during layout: running second layout pass".
Please look into 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.