An android custom view which looks like the menu in Path 2.0 (for iOS).

Related tags

Menu ArcMenu
Overview

ArcMenu & RayMenu

ArcMenu

An android custom view which looks like the menu in Path 2.0 (for iOS).

Preview Preview

RayMenu

Preview

About

The user experience in Path 2.0 (for iOS) is amazing, but the android version miss much.

Just for fun, I try to realize the amazing menu for android, which could be equal to the iOS version's.

Usage

If you want to use this library you must before all indicate to your application that you want to use it by launching the following command from the root directory of your application

$ android update project --library ../relative/path/to/the/library --path .

where the path is the relative path to the library directory in this repository.

To setup the menu:

ArcMenu menu = (ArcMenu) findViewById(R.id.arc_menu);

final int itemCount = ITEM_DRAWABLES.length;
for (int i = 0; i < itemCount; i++) {
	ImageView item = new ImageView(this);
	item.setImageResource(ITEM_DRAWABLES[i]);

	final int position = i;
	menu.addItem(item, new OnClickListener() {

		@Override
		public void onClick(View v) {
			Toast.makeText(MainActivity.this, "position:" + position, Toast.LENGTH_SHORT).show();
		}
	});// Add a menu item
}

If you want to change the default appearence for ArcMenu:

in arc_menu.xml

custom:childSize="50px"
custom:fromDegrees="0.0"
custom:toDegrees="300.0"

or in ArcMenu.java

arcLayout.setChildSize(50);
arcLayout.setArc(0.0f, 300.0f);    
Comments
  • Menu icons not under center image

    Menu icons not under center image

    Hi, I tryed to place the center icon in the upper left corner, it worked, but this is the problem: The array with all the menu icons is not under the "center image"! device-2013-08-05-171021

    device-2013-08-05-170822

    opened by matthijs2704 5
  • ArcMenu & ListView

    ArcMenu & ListView

    hey there, i'm trying to add ArcMenu to every item in a ListView...

    problem: for each item, it adds the whole set of menu-items again and again. i tried to filter, if this position is already added but it doesn't work.

    any clues? thanks in advance

    opened by ghost 5
  • How to set initial button's margin and menu's margin together

    How to set initial button's margin and menu's margin together

    I tried to move the whole arc menu to the right bottom corner so I set margin:

    <com.example.ArcMenu android:id="@+id/arc_menu" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="150dp" android:layout_marginTop="250dp" />

    However, the red "+" sign is off, it is not moving together with the menu. What should I set?

    opened by nologinatgit 4
  • Not clear on how to add this to my project.

    Not clear on how to add this to my project.

    I copied the libary folder to my project's libs folder, and I ran the android update command, but how do I import the items? It says the import com.capricorn cannot be resolved.

    Thanks very much.

    opened by Steph-Fongo 4
  • Problem using the arc without the center button

    Problem using the arc without the center button

    Hi, I'm trying to use the arc but without the composer button being visible. I tried lot of different things and nothing simple is working.

    I tried changing the png's file to empty png's and it changed the animation and showed the selected item instead of "nothing" I tried changing the selector xml and many other "simple" method

    Any suggestion ?

    opened by Shailevy 4
  • Arc Menu is too small for xhdpi devices

    Arc Menu is too small for xhdpi devices

    Hi i am using arc menu and its really cool!.. But the problem is its very small on xhdpi. I am testing on Samsung galaxy s3 and i have images around 64X64. pleas help me through this.

    opened by ManojMM026 2
  • ArcMenu button move position, based on number of menu items

    ArcMenu button move position, based on number of menu items

    Thanks for this library!

    I had no trouble integrating it into my project, but am having some trouble figuring this out: If I add 1, 2, or 3 items to the ArcMenu, the central button stags fixed. If I add more, then it moves a significant (and not predicable, yet) amount in both X and Y.

    My menu is loaded dynamically, and it's not necessarily predicable how many items will be added.

    Do you have any pointers as to where I should look?

    The layout I am using is:

            <com.capricorn.ArcMenu
                android:id="@+id/arc_menu"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentTop="true"
                android:layout_alignParentLeft="true"
                app:childSize="30dp"
                app:fromDegrees="10.0"
                app:toDegrees="80.0" />
    

    as I need the menu to be in the top left of the fragment for my purposes.

    UPDATE: So if I change the layout width and height to fixed values, then it behaves more as I expect (because the ArcLayout depends highly on getWidth() and getHeight()). However, then I also need to make sure that the width is large enough to cope with the largest number of items I expect AND put a large negative left/top margin to cope with the extra "size".

    Will have a bit more of a read through ArcLayout to see if I can retain "wrap_content" and have the behaviour I expect.

    opened by kootsoop 1
  • Keeping the expanded item expanded

    Keeping the expanded item expanded

    Hi.

    Currently when the menu items are expanded, clicking on any expanded child will result in the closure of the children. Is it possible to change the behavior so that they stay open on clicks till one clicks on the center item?

    Thanks.

    opened by naddaf 1
  • Let's embed the ImageView as direct child of ArcMenu

    Let's embed the ImageView as direct child of ArcMenu

    This is not intended to be merged as is, but rather a proof of concept in order to have indications about its correctness: I don't know the code very well so maybe some changes are against author's intent.

    With these changes is possible to indicate the buttons for the ArcMenu directly in the XML like this

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" >
        <com.capricorn.ArcMenu
            android:id="@+id/arc_menu"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >
            <ImageView
                android:id="@+id/camera_button"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@drawable/composer_camera"
                android:onClick="on_click_camera"
            />
            <ImageView
                android:id="@+id/music_button"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@drawable/composer_music"
                android:onClick="on_click_music"
            />
            <ImageView
                android:id="@+id/place_button"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@drawable/composer_place"
                android:onClick="on_click_place"
            />
        </com.capricorn.ArcMenu>
    </LinearLayout>
    

    where the on_click_* functions are defined in the Activity or Fragment. These functions are intended to be like the following

        public void on_click_camera(View v) {
            Toast.makeText(MainActivity.this, "Hi!", Toast.LENGTH_SHORT).show();
            mArcMenu.offMenuAnimation(v);
        }
    

    where offMenuAnimation (bad name I know, someone can suggest one?) dismiss the main menu.

    opened by gipi 1
  • Fix broken headings in Markdown files

    Fix broken headings in Markdown files

    GitHub changed the way Markdown headings are parsed, so this change fixes it.

    See bryant1410/readmesfix for more information.

    Tackles bryant1410/readmesfix#1

    opened by bryant1410 0
  • How change  postion arc layout ?

    How change postion arc layout ?

    <FrameLayout
        android:id="@+id/control_layout"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:layout_gravity="bottom|center_horizontal"
        android:background="@drawable/tab_bar_registration_selector" >
    
        <ImageView
            android:id="@+id/control_hint"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom|center_horizontal" />
    </FrameLayout>
    

    this is my change on xml i want to make menu at buttom of layout but whan i run app there is still margin from buttom , How to solve this issue ?

    opened by mahmodmasoud2009 0
  • ArcMenu BGColor Remains White

    ArcMenu BGColor Remains White

    I am trying to implement your arcMenu in my application and everything looks fine but there is a white colored square background behind the button and its animation that I cant remove. Please help. screen shot 2015-04-19 at 12 11 00 pm

    best regards, Mohsin

    opened by mohsinhussain 0
  • method void addItem is never used warning

    method void addItem is never used warning

    hw to rectify tis problem i followed everything which was gv in the repository i thnk its bcuz of tis warning tat arc menu app has stopped responding any help guyzz

    opened by tamizh3110 0
  • Modify Main Drawable

    Modify Main Drawable

    I didn't see it in the docs anywhere. But it would be cool to change the drawable for the initial item.

    Anyone want to tackle this with an xml attr? maybe: arc:button="@drawable/..."

    opened by jpshelley 4
Owner
daCapricorn
daCapricorn
Floating Action Menu for Android. Inspired by the Google Plus floating menu

android-floating-action-menu Floating Action Menu for Android. Inspired by the Google Plus floating menu. Demo Setup The simplest way to use this libr

Alessandro Crugnola 242 Nov 10, 2022
Classic Power Menu is a Power Menu Replacement for Android 11+

Classic Power Menu is a Power Menu Replacement for Android 11+, with the main aim being restoring power menu options (Device Controls & Quick Access Wallet) on Android 12.

Kieron Quinn 385 Dec 31, 2022
🚀 A very customizable library that allows you to present menu items (from menu resource and/or other sources) to users as a bottom sheet.

SlidingUpMenu A library that allows you to present menu items (from menu resource and/or other sources) to users as a bottom sheet. Gradle Dependency

Rasheed Sulayman 26 Jul 17, 2022
Android-NewPopupMenu 3.9 0.0 Java is an android library to create popup menu with GoogleMusic app-like style.

Android-NewPopupMenu Android-NewPopupMenu is an android library to create popup menu with GoogleMusic app-like style. Requirements Tested with APIv4 H

u1aryz 159 Nov 21, 2022
imitate Tumblr's menu, dragging animations look like a snake

android-snake-menu imitate Tumblr's menu, dragging animations look like a snake unexpected episode I found another repository some time ago which impl

stone 586 Nov 10, 2022
A menu which can ... BOOM! - Android

BoomMenu 2.0.0 Comes Finally Approximately 8 months ago, I got an inspiration to creating something that can boom and show menu, which I named it Boom

Nightonke 5.8k Dec 27, 2022
** A slide-out menu implementation, which allows users to navigate between views in your app.

MenuDrawer A slide-out menu implementation, which allows users to navigate between views in your app. Most commonly the menu is revealed by either dra

Simon Vig Therkildsen 2.6k Dec 8, 2022
an animated circular menu for Android

CircularFloatingActionMenu An animated, customizable circular floating menu for Android, inspired by Path app. Getting Started Requirements API >= 15

OÄŸuz Bilgener 2.7k Dec 24, 2022
Android Satellite Menu

#Satellite Menu 'Path' has a very attractive menu sitting on the left bottom corner of the screen. Satellite Menu is the open version of this menu. Fo

Siyamed SINIR 1.4k Nov 15, 2022
(UNMAINTAINED) An implemention of Filter Menu concept for android

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

Lin Zhang 824 Nov 28, 2022
Navigation menu for Android (based off Google+ app)

RibbonMenu Navigation menu for Android (based on Google+ app). Usage Menus are created in xml as normal, adding text and an icon. In the layout you wa

David Scott 487 Nov 24, 2022
Simple and easy to use circular menu widget for Android.

Deprecated This project is no longer maintained. No new issues or pull requests will be accepted. You can still use the source or fork the project to

Anup Cowkur 420 Nov 25, 2022
A multicard menu that can open and close with animation on android

MultiCardMenu A multicard menu that can open and close with animation on android,require API level >= 11 Demo ##Usage <net.wujingchao.android.view.

null 562 Nov 10, 2022
Implementation of "Side Navigation" or "Fly-in app menu" pattern for Android (based on Google+ app)

Android SideNavigation Library Implementation of "Side Navigation" or "Fly-in app menu" pattern for Android (based on Google+ app). Description The Go

Evgeny Shishkin 319 Nov 25, 2022
An Android Library that allows users to pull down a menu and select different actions. It can be implemented inside ScrollView, GridView, ListView.

AndroidPullMenu AndroidPullMenu is an Open Source Android library that allows developers to easily create applications with pull menu. The aim of this

Armando TBA 181 Nov 29, 2022
Android Overlay Menu

Overlay Menu Android Overlay Menu Demo: Installation: Add this dependency to your gradle script: compile 'it.sephiroth.android.library.overlaymenu:ove

Alessandro Crugnola 122 Nov 10, 2022
A floating menu library for Android.

Hover Hover is a floating menu implementation for Android. Goals The goals of Hover are to: Provide an easy-to-use, out-of-the-box floating menu imple

Google 2.7k Dec 27, 2022
A powerful & customizable menu implementation for android.

A powerful & customizable menu implementation for android. It supports any level of nested menu structures along with custom header and footer views, and much more. Follow the steps below to import the library to your project. You will also find some sample codes.

Nowrose Muhammad Ragib 5 Nov 8, 2022