Skip to content
SquareMenu is a custom Floating Action Button with a different shape from traditional FABs and with three sub menu buttons.
Branch: master
Clone or download
Latest commit b5bb88d Sep 17, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea Fixed #4: Error(338), in library module 1.0.1 Jan 28, 2017
app #5 Feature added Sep 17, 2018
assets updated readme May 24, 2017
build/generated Fixed #4: Error(338), in library module 1.0.1 Jan 28, 2017
gradle/wrapper Initial commit Oct 25, 2016
squaremenu #5 Feature added Sep 17, 2018
.gitignore
LICENSE Initial commit Oct 25, 2016
README.md update readme Sep 17, 2018
SquareMenu.iml
SquareMenuDemo.iml Initial commit Oct 25, 2016
build.gradle updated readme Oct 25, 2016
gradle.properties Initial commit Oct 25, 2016
gradlew Initial commit Oct 25, 2016
gradlew.bat Initial commit Oct 25, 2016
settings.gradle Initial commit Oct 25, 2016

README.md

SquareMenu

API Android Arsenal GitHub license

SquareMenu is a custom Floating Action Button with a different shape from traditional FABs and with three sub menu buttons. ##Demo SquareMenu Demo

Dependency

  • Add the dependencies to your app level build.gradle file:

Gradle

1 >> In Project gradle file

            repositories {
        	...
        	maven { url 'https://jitpack.io' }
        	}
          }

2 >> In app Module gradle file

           dependencies {
   	        implementation 'com.github.devendroid:SquareMenu:1.0.0'
   	       }

Usage

  • Inside your xml:
<com.devs.squaremenu.SquareMenu
        android:id="@+id/square_menu"
        app:fabSize="80"
        app:autoClose:"fales"
        app:fabColor="@color/colorAccent"
        app:menuOpenDirection="top_left"
        app:iconM1="@drawable/ic_delete_forever_white_24dp"
        app:iconM2="@drawable/ic_call_white_24dp"
        app:iconM3="@drawable/ic_chat_white_24dp"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
  • Inside your java:
@Override
public void onCreate() {
     super.onCreate();
    ...
    SquareMenu mSquareMenu = (SquareMenu) findViewById(R.id.square_menu);
        mSquareMenu.setOnMenuClickListener(new OnMenuClickListener(){
            @Override
            public void onMenuOpen() {  }
            @Override
            public void onMenuClose() { }
            @Override
            public void onClickMenu1() { }
            @Override
            public void onClickMenu2() { }
            @Override
            public void onClickMenu3() { }
        });
}

Used by

If you want your app listed here, drop me a message on devendra@idealittechno.com.

Icon App link
ScreenRecorderHD

Contribute:

Simple 3 step to contribute into this repo:

    Fork the project.
    Make required changes and commit.
    Generate pull request. Mention all the required description regarding changes you made.

License

Copyright 2016 Deven Singh

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You can’t perform that action at this time.