CircleMenu

General

Category
Free
Tag
Menus
License
MIT License
Min SDK
1 (Android 1.0)
Registered
Sep 30, 2015
Favorites
1
Link
https://github.com/mattlogan/CircleMenu
See also
ThumbnailMenu
ChromeMenu
BubbleTab
android-satellite-menu
BoomMenu

Additional

Language
Java
Version
N/A
Created
Mar 9, 2014
Updated
Jun 21, 2016 (Retired)
Owner
Matt Logan (mattlogan)
Contributor
Matt Logan (mattlogan)
1
Activity
Badge
Generate
Download
Source code
APK file

Promotion

CircleMenu

How to Use

Add a CircleMenu to your layout:

<com.matthewlogan.circlemenu.library.CircleMenu
        android:id="@+id/circle_menu"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/circle_menu_background" />

To toggle the menu:

circleMenu.toggle();

Implement the CircleMenu.OnItemClickListener to get notified of item clicks:

circleMenu.setOnItemClickListener(this);

Respond to clicks in onItemClick().

@Override
public void onItemClick(int position) {
    // do cool stuff here
}

Customization

You can change the menu background color with the background attribute.

Additionally, you can use the textColor, textSize, and dividerColor to further customize your menu:

<com.matthewlogan.circlemenu.library.CircleMenu
        android:id="@+id/circle_menu"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/circle_menu_background"
        app:textSize="18sp"
        app:textColor="@color/white"
        app:dividerColor="@color/white" />

Sample

See the sample for a common use of this library.

License

The MIT License (MIT)

Copyright (c) 2014 Matthew Logan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.