Code Monkey home page Code Monkey logo

fitbutton's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fitbutton's Issues

Button is not resized when set text dynamically

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.

Set Font of Button's text in xml

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);

Images Look pixelated

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?

Minimum version

Hi,

What is the minimum version of android to use your library? Can you add this info into your README?

Thanks.

android studio 4.2

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...!

Usage

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.