Git Product home page Git Product logo

floatingactionbutton's Introduction

THIS IS A FORK OF CLANS FLOATING ACTION BUTTON

This library is Clans floating action button library which I have forked in order to add the ability to open menus left and right, and to make the button take into account default styles. I wont be submitting a pull request as labels arent quite right

FloatingActionButton

Everything clans did with this library works I haven't broken anything in his implementation, but I have added left and right opening and labels do not work for this,

for full details about this library, how it works, how to style it, and licences please see clans library here https://github.com/Clans/FloatingActionButton

just add it to your project like this

implementation 'com.github.martipello:FloatingActionButton:v2.0'

and check out the examples, again all done by clans, with very slight tweak by me

change app:menu_openDirection="left" to up, down, left or right

example

<com.github.sealstudios.fab.FloatingActionMenu android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/speak_fab" app:layout_anchor="@id/sentence_container" app:layout_anchorGravity="bottom|right|end" app:menu_icon="@drawable/ic_play_arrow_white_24dp" app:fab_colorNormal="@color/primary_blue" app:menu_openDirection="left" android:layout_margin="@dimen/fab_margin">

<com.github.sealstudios.fab.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" app:fab_size="mini" app:menu_icon="@drawable/ic_play_arrow_white_24dp" app:fab_colorNormal="@color/primary_blue"/>

<com.github.sealstudios.fab.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" app:fab_size="mini" app:menu_icon="@drawable/ic_play_arrow_white_24dp" app:fab_colorNormal="@color/primary_blue"/>

<com.github.sealstudios.fab.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" app:fab_size="mini" app:menu_icon="@drawable/ic_play_arrow_white_24dp" app:fab_colorNormal="@color/primary_blue"/>

</com.github.sealstudios.fab.FloatingActionMenu>

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.