Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devsideal/SquareMenu
SquareMenu is a custom Floating Action Button with a different shape from traditional FABs and with three sub menu buttons.
https://github.com/devsideal/SquareMenu
Last synced: 22 days ago
JSON representation
SquareMenu is a custom Floating Action Button with a different shape from traditional FABs and with three sub menu buttons.
- Host: GitHub
- URL: https://github.com/devsideal/SquareMenu
- Owner: devendroid
- License: apache-2.0
- Created: 2016-10-25T12:11:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-17T07:58:35.000Z (about 6 years ago)
- Last Synced: 2024-08-04T00:07:02.600Z (4 months ago)
- Language: Java
- Homepage: https://android-arsenal.com/details/1/4585#
- Size: 13.4 MB
- Stars: 476
- Watchers: 10
- Forks: 78
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - SquareMenu - 可自定义的浮动动作按钮 (FAB)
README
# SquareMenu
[![](https://jitpack.io/v/devendroid/SquareMenu.svg)](https://jitpack.io/#devendroid/SquareMenu)
[![API](https://img.shields.io/badge/API-9%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=9)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SquareMenu-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/4585)
[![GitHub license](https://img.shields.io/github/license/dcendents/android-maven-gradle-plugin.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)SquareMenu is a custom Floating Action Button with a different shape from traditional FABs and with three sub menu buttons.
##Demo
![SquareMenu Demo](/assets/square_menu_v1.0.0.gif)## Dependency
- Add the dependencies to your app level build.gradle file:#### Gradle
1 >> In Project gradle file``` allprojects {
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:
```xml```
- Inside your java:
```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 [email protected].
Icon | App link
-------------------------------------------------------------------------------------------------------------|-----------
| [ScreenRecorderHD][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 SinghLicensed 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 athttp://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.
```[ScreenRecorderHD]: https://play.google.com/store/apps/details?id=com.it.screenrecorder