Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linroid/FilterMenu
(UNMAINTAINED) An implemention of Filter Menu concept for android
https://github.com/linroid/FilterMenu
Last synced: about 6 hours ago
JSON representation
(UNMAINTAINED) An implemention of Filter Menu concept for android
- Host: GitHub
- URL: https://github.com/linroid/FilterMenu
- Owner: linroid
- License: apache-2.0
- Archived: true
- Created: 2015-03-12T12:37:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-13T03:36:12.000Z (over 7 years ago)
- Last Synced: 2024-11-04T18:54:22.327Z (16 days ago)
- Language: Java
- Homepage: https://dribbble.com/shots/1956586-Filter-Menu
- Size: 2.97 MB
- Stars: 816
- Watchers: 23
- Forks: 141
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-android-ui - https://github.com/linroid/FilterMenu
- awesome-android-ui - https://github.com/linroid/FilterMenu
README
# FilterMenu
[![Maven Central](https://img.shields.io/maven-central/v/com.linroid.filtermenu/library.svg)](http://search.maven.org/#search%7Cga%7C1%7Ccom.linroid.filtermenu)
This is a library project with a custom view that implements concept of Filter Menu(https://dribbble.com/shots/1956586-Filter-Menu) made by Anton Aheichanka for android
## Quick Overview
- Download sample [Apk](https://github.com/linroid/FilterMenu/blob/master/sample/sample-release.apk?raw=true)
- Screenshots
- Youtube Video
[![Youtube Video](http://img.youtube.com/vi/HClK9Ams6gM/0.jpg)](http://www.youtube.com/watch?v=HClK9Ams6gM)
## Futures
- Detect edge automatically
- Support for android menu resource
## Getting Started
- Download the source to use it as library project, or grab via Maven
-
```xml
com.linroid.filtermenu
library
{last-version}
aar
```
or Gradle
```
compile 'com.linroid.filtermenu:library:0.2.+@aar'
```
- Declare FilterMenuLayout inside your layout
```xml
custom:fm_expandedRadius
custom:fm_collapsedRadius
custom:fm_center[Left|Top|Right|Bottom]
custom:fm_centerHorizontal
custom:fm_centerVertical
custom:fm_primaryColor
custom:fm_primaryDarkColor
```
- Initial menu items via java code
```java
FilterMenuLayout layout = (FilterMenuLayout) findViewById(R.id.filter_menu);
FilterMenu menu = new FilterMenu.Builder(this)
.addItem(R.drawable....)
//.inflate(R.menu....)//inflate menu resource
.attach(layout)
.withListener(new FilterMenu.OnMenuChangeListener() {
@Override
public void onMenuItemClick(View view, int position) {
}
@Override
public void onMenuCollapse() {
}
@Override
public void onMenuExpand() {
}
})
.build();
```
## ChangeLog
- 0.2.0
- support for android menu resource
- support for centerHorizontal and centerVertical attribute## License
Copyright 2015 linroidLicensed 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.