How to add a awesome Circle menu in your android application simple and useful

Hey, welcome guys today I found a library which can help us to add circle menu to our application its look pretty cool This library is made by Ramotion So let’s do some coding…

So first create a new project or you can use it in your existing project open it. And then open the app level build file then paste this dependency under the dependency. then sync the project.

dependency{
    implementation 'com.ramotion.circlemenu:circle-menu:0.3.1'
}

Now open your string.xml file and add two arrays one is for colors and one is for icons… like bellow…

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <array name="icons">
        <item>@drawable/ic_home_white_24dp</item>
        <item>@drawable/ic_search_white_24dp</item>
        <item>@drawable/ic_notifications_white_24dp</item>
        <item>@drawable/ic_settings_white_24dp</item>
        <item>@drawable/ic_place_white_24dp</item>
    </array>
    <array name="colors">
        <item>@android:color/holo_blue_light</item>
        <item>@android:color/holo_green_dark</item>
        <item>@android:color/holo_red_light</item>
        <item>@android:color/holo_purple</item>
        <item>@android:color/holo_orange_light</item>
    </array>
</resources>

Now open your activity_main.xml or any XML where you want to add this menu. And then paste this code.

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.ramotion.circlemenu.example.simple.MainActivity">

    <com.ramotion.circlemenu.CircleMenuView
        android:id="@+id/circle_menu"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:button_colors="@array/colors"
        app:button_icons="@array/icons"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintHorizontal_bias="0.5"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"/>

</android.support.constraint.ConstraintLayout>

Now Open your MainActivity.java file and add this code under the onCreate method.

final CircleMenuView menu = (CircleMenuView) findViewById(R.id.circle_menu);
menu.setEventListener(new CircleMenuView.EventListener() {
    @Override
    public void onMenuOpenAnimationStart(@NonNull CircleMenuView view) {
        Log.d("D", "onMenuOpenAnimationStart");
    }

    @Override
    public void onMenuOpenAnimationEnd(@NonNull CircleMenuView view) {
        Log.d("D", "onMenuOpenAnimationEnd");
    }

    @Override
    public void onMenuCloseAnimationStart(@NonNull CircleMenuView view) {
        Log.d("D", "onMenuCloseAnimationStart");
    }

    @Override
    public void onMenuCloseAnimationEnd(@NonNull CircleMenuView view) {
        Log.d("D", "onMenuCloseAnimationEnd");
    }

    @Override
    public void onButtonClickAnimationStart(@NonNull CircleMenuView view, int index) {
        Log.d("D", "onButtonClickAnimationStart| index: " + index);
    }

    @Override
    public void onButtonClickAnimationEnd(@NonNull CircleMenuView view, int index) {
        Log.d("D", "onButtonClickAnimationEnd| index: " + index);
    }
});

And now you can run it and check it… You can get events by using the index.

If you have any issues you can follow the GitHub repo to check _> https://github.com/Ramotion/circle-menu-android

Posts created 41

88 thoughts on “How to add a awesome Circle menu in your android application simple and useful

  1. Great beat ! I wish to apprentice while you amend your web
    site, how can i subscribe for a blog web site?
    The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear concept

  2. I have been exploring for a little for any high-quality articles or blog posts
    on this sort of area . Exploring in Yahoo I finally stumbled upon this web site.
    Studying this information So i am glad to exhibit that
    I have an incredibly just right uncanny feeling I
    discovered just what I needed. I so much surely will make
    sure to don?t omit this web site and provides it a look on a relentless basis.

  3. Have you ever considered creating an e-book or guest authoring on other blogs?
    I have a blog based on the same topics you discuss and would really
    like to have you share some stories/information. I know my
    subscribers would appreciate your work. If you’re even remotely
    interested, feel free to send me an e mail.

  4. I believe that is one of the so much vital information for me.

    And i am glad reading your article. However want to remark
    on some common things, The web site taste is great, the articles is in point of fact great :
    D. Good activity, cheers

  5. Very nice post. I just stumbled upon your weblog and wanted
    to mention that I’ve really loved browsing your blog posts.
    After all I will be subscribing for your feed and I am hoping
    you write once more soon!

  6. Very nice post. I just stumbled upon your weblog and wished to say that I’ve truly
    loved browsing your blog posts. After all I’ll be subscribing to your rss feed and I am
    hoping you write again very soon!

  7. I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored material stylish.

    nonetheless, you command get got an shakiness over that you
    wish be delivering the following. unwell unquestionably come further
    formerly again since exactly the same nearly a lot often inside case you shield this increase.

  8. Hi! This post couldn’t be written any better!
    Reading through this post reminds me of my good old room
    mate! He always kept chatting about this. I will forward this
    page to him. Pretty sure he will have a good read.
    Many thanks for sharing!

  9. I absolutely love your blog and find almost all of your post’s to be
    exactly I’m looking for. Do you offer guest writers to write content for you personally?
    I wouldn’t mind publishing a post or elaborating
    on a number of the subjects you write about here. Again, awesome blog!

  10. I truly love your website.. Pleasant colors & theme. Did you develop this site yourself?
    Please reply back as I’m attempting to create my
    very own blog and would love to learn where you got this from or what the theme
    is called. Thanks!

  11. Hello, i read your blog occasionally and i own a similar one and i was just wondering if you
    get a lot of spam remarks? If so how do you protect against it, any plugin or anything you can recommend?
    I get so much lately it’s driving me crazy so any assistance is
    very much appreciated.

  12. Hello there I am so thrilled I found your web site, I really found you by accident,
    while I was researching on Digg for something else, Nonetheless I am here now
    and would just like to say kudos for a fantastic post and a all round thrilling blog (I
    also love the theme/design), I don’t have time to look over it all at the moment but
    I have saved it and also included your RSS feeds, so when I have time
    I will be back to read much more, Please do keep up the fantastic b.

  13. I’m impressed, I must say. Seldom do I encounter
    a blog that’s both educative and entertaining, and
    let me tell you, you have hit the nail on the head.
    The issue is an issue that not enough men and women are speaking
    intelligently about. I am very happy that I came across this during my search for something regarding this.

  14. I’ve been exploring for a bit for any high-quality articles or blog posts on this sort of area .
    Exploring in Yahoo I eventually stumbled upon this site.
    Reading this info So i’m happy to express that I have an incredibly
    good uncanny feeling I came upon just what
    I needed. I so much no doubt will make sure to do not forget this website and provides it
    a glance on a continuing basis.

  15. This is really interesting, You are a very skilled blogger.
    I’ve joined your rss feed and look forward to seeking more
    of your magnificent post. Also, I’ve shared your web site in my social
    networks!

  16. I just want to say I am just new to blogging and absolutely liked this web-site. Very likely I’m likely to bookmark your website . You definitely have fabulous stories. Thanks a lot for revealing your web-site.

  17. I simply want to mention I am just new to blogging and definitely savored you’re blog site. Most likely I’m likely to bookmark your blog . You certainly come with very good stories. Regards for sharing your website page.

  18. I’m not that much of a internet reader to be honest but your blogs really nice, keep
    it up! I’ll go ahead and bookmark your website to come back down the road.
    All the best

  19. With havin so much content and articles do you ever run into any issues of plagorism
    or copyright violation? My website has a lot of completely unique content I’ve either
    authored myself or outsourced but it appears a lot of it is popping it up all
    over the web without my agreement. Do you know any methods to help
    reduce content from being stolen? I’d genuinely appreciate it.
    31muvXS cheap flights

  20. I’ve been exploring for a bit for any high-quality articles or weblog posts on this sort of area .
    Exploring in Yahoo I at last stumbled upon this web site.

    Reading this information So i am happy to express that I have a very just right uncanny
    feeling I discovered exactly what I needed. I most surely will make certain to don?t put out of your mind this website and give
    it a look on a continuing basis. 31muvXS cheap flights

  21. I blog frequently and I seriously appreciate your content. Your
    article has really peaked my interest. I’m going to bookmark your website and
    keep checking for new information about once per week.

    I subscribed to your RSS feed too.

  22. The next time I review a blog site, I hope that it does not disappoint me as long as this one. I suggest, I know it was my selection to check out, but I in fact thought youd have something intriguing to claim. All I hear is a number of yawping concerning something that you can deal with if you werent also busy seeking attention.

  23. Having read this I thought it was extremely enlightening.

    I appreciate you spending some time and effort to put this short
    article together. I once again find myself spending way too much time both reading and leaving comments.
    But so what, it was still worthwhile!

  24. When I originally commented I clicked the -Inform me when brand-new comments are added- checkbox as well as now each time a comment is added I get 4 emails with the same remark. Is there any way you can remove me from that solution? Thanks!

  25. Youre so great! I don’t intend Ive review anything similar to this before. So good to discover somebody with some original thoughts on this subject. realy thanks for starting this up. this web site is something that is required on the web, a person with a little creativity. helpful task for bringing something new to the internet!

  26. The next time I review a blog, I really hope that it does not dissatisfy me as long as this. I suggest, I recognize it was my choice to read, but I really assumed youd have something intriguing to claim. All I listen to is a number of whimpering regarding something that you can take care of if you werent as well busy seeking interest.

  27. I?m amazed, I must claim. Really hardly ever do I experience a blog site that?s both instructional and also enjoyable, and let me inform you, you have actually struck the nail on the head. Your suggestion is superior; the concern is something that not nearly enough individuals are talking intelligently around. I am very satisfied that I came across this in my look for something relating to this.

  28. There are absolutely a great deal of information like that to take into consideration. That is a great indicate bring up. I use the ideas over as basic inspiration but plainly there are questions like the one you bring up where the most important point will be working in truthful good faith. I don?t recognize if ideal methods have arised around things like that, yet I make sure that your task is clearly identified as a fair game. Both children and also ladies feel the impact of simply a moment?s satisfaction, for the rest of their lives.

  29. Great article! This is the kind of information that are meant to be shared aroundthe internet. Disgrace on Google for now not positioning this submit higher!Come on over and consult with my site . Thank you =)

  30. Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your website? My blog site is in the very same niche as yours and my users would genuinely benefit from some of the information you present here. Please let me know if this okay with you. Many thanks!

  31. I?m impressed, I have to say. Really rarely do I run into a blog that?s both instructional and also amusing, as well as let me tell you, you have struck the nail on the head. Your idea is outstanding; the issue is something that insufficient people are speaking smartly around. I am really delighted that I came across this in my look for something associating with this.

  32. Hi there, just was alert to your weblog via Google, and located that it is truly informative. I’m gonna watch out for brussels. I will appreciate in the event you continue this in future. Many folks can be benefited out of your writing. Cheers!

  33. An excellent share, I simply given this onto an associate who was doing a little evaluation on this. And he as a matter of fact acquired me breakfast since I located it for him. smile. So let me rephrase that: Thnx for the treat! Yet yeah Thnkx for spending the moment to discuss this, I really feel highly about it as well as like reading more on this subject. Ideally, as you come to be competence, would certainly you mind upgrading your blog site with even more details? It is very helpful for me. Huge thumb up for this blog post!

  34. I like the helpful info you provide in your articles. I will bookmark your weblog and check again here frequently. I am quite sure I’ll learn lots of new stuff right here! Good luck for the next!

  35. This is the right blog for any individual who intends to learn about this subject. You recognize a lot its practically difficult to suggest with you (not that I really would want?HaHa). You definitely put a brand-new spin on a topic thats been written about for many years. Fantastic stuff, simply excellent!

  36. Thanks for these tips. One thing I should also believe is always that credit cards providing a 0 monthly interest often bait consumers with zero monthly interest, instant endorsement and easy online balance transfers, nonetheless beware of the real factor that will void your own 0 easy street annual percentage rate and throw you out into the bad house rapidly.

  37. I?m pleased, I must claim. Truly rarely do I run into a blog site that?s both informative and also enjoyable, as well as let me inform you, you have actually hit the nail on the head. Your concept is exceptional; the issue is something that not enough people are speaking wisely about. I am extremely happy that I stumbled across this in my look for something relating to this.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top