https://github.com/LongDinhF/Hamburger-Button
A library about Android hamburger button
https://github.com/LongDinhF/Hamburger-Button
Last synced: 7 months ago
JSON representation
A library about Android hamburger button
- Host: GitHub
- URL: https://github.com/LongDinhF/Hamburger-Button
- Owner: LongDinhF
- License: apache-2.0
- Created: 2017-02-21T03:17:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-19T08:52:00.000Z (over 7 years ago)
- Last Synced: 2024-11-09T10:38:30.910Z (12 months ago)
- Language: Java
- Size: 96.7 KB
- Stars: 33
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - Hamburger-Button - 完全定制的汉堡按钮 (按钮)
README
# Hamburger Button
A hamburger button with full customization. Inspired by [VinhLe's idea on the Dribble](https://dribbble.com/shots/1626236-Dribbble-Menu)
![Preview]
(http://i.imgur.com/5paqZ3d.gif)
# Installation
From jCenter
```
compile 'conma.studio:hamburger-button:1.1'
```
# How to use it
You can config the looks of the button through XML layout
```
```
Or Java code
```
HBButton hbButton = new HBButton(this);
hbButton.setBorderThickness(10);
hbButton.setBorderCornersRadius(15);
hbButton.setBorderColor(Color.parseColor("#6aacff"));
hbButton.setBackgroundColor(Color.parseColor("#f8888b"));
hbButton.setLineThickness(8);
hbButton.setLineCornersRadius(10);
hbButton.setLineColor(Color.parseColor("#314fff"));
hbButton.setLineWidthPadding(5);
hbButton.setSlideLeftToRight(true);
hbButton.setAnimationDuration(500);
```
## License
Copyright 2017 Long Dinh (mr.ribbon@gmail.com)
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.