Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madhu314/scrollermenu
Android Scroller Menu
https://github.com/madhu314/scrollermenu
Last synced: 19 days ago
JSON representation
Android Scroller Menu
- Host: GitHub
- URL: https://github.com/madhu314/scrollermenu
- Owner: madhu314
- Created: 2014-01-10T10:51:16.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-23T11:07:38.000Z (almost 11 years ago)
- Last Synced: 2023-03-27T14:52:16.923Z (over 1 year ago)
- Language: Java
- Size: 17.8 MB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Scroller Menu is an implementation of [snapseed](https://play.google.com/store/apps/details?id=com.niksoftware.snapseed) style menu chooser
1. Scroll vertically to choose a menu option
2. Scroll left/right to decrement/increment selected menu option valueSee [demo](http://youtu.be/b343A_jnh04)
###Usage
Wrap your view below the scroller menu in a frame layout. In the below example, I am placing scroller menu on top of my image view
`````
`````
Note that scrollerMenuItems is a mandatory attribute that refers to a string array resource form which menu items are populated.###Callbacks
ScrollerMenu provides two callbacks
`````java
public void onMenuItemSelected(String[] menuItems, int index);
public void onMenuItemProgressed(String[] menuItems, int index, int progressedBy);
`````
you can listen to these callbacks by registering
`````java
yourScrollerMenuInstance.setMenuListener(..)
`````###Customization
1. scrollerMenuItemHeight: height of the menu item
2. scrollerMenuItemWidth: width of the menu item
3. scrollerMenuItemTextColor: menu item text color
4. scrollerMenuItemDefaultBackground: default background to be used for non selected menu item
5. scrollerMenuItemSelectedBackground: background for a selected menu item
6. scrollerMenuPanelBackground: background for the panel that holds set of menu itemsCheck out included sample for a detailed code level understanding
###LICENSE
````
Copyright 2014 Madhusudhan SambojhuLicensed 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.
````