Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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

screenshot
- 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 linroid

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.