Skip to content

mohand1993/Floating-Button

Repository files navigation

#Simple Floating Button For Android you can use this button as repacement For the old options menu

Sample App Apk ###ScreenShots

screenShot screenShot screenShot

###Usage

  <fbutton.muf.com.floating_button_library.FloatingButton
        android:id="@+id/floatingButton"
        floatingButton:main_button_image ="@drawable/yellow_circle"
        floatingButton:dismis_button_image ="@drawable/red_circle"
        floatingButton:vertical_distance ="20dp"
        floatingButton:horizanal_distance ="20dp"
        floatingButton:direction="right"
        floatingButton:button_height="50dp"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

###Adding Options Buttons

        floatingButton.addButton(R.drawable.red_circle,new MakeTostClickListener("I am Red"));
        floatingButton.addButton(R.drawable.yellow_circle,new MakeTostClickListener("I am Yellow"));
        floatingButton.addButton(R.drawable.green_circle,new MakeTostClickListener("I am Green"));
        floatingButton.addButton(R.drawable.blue_circle,new MakeTostClickListener("I am blue"));

###Attaching to ListView

        list = (ListView) findViewById(R.id.list);
        floatingButton.animateWithScroll(list);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages