# Side-Menu.Android **Repository Path**: gybin/Side-Menu.Android ## Basic Information - **Project Name**: Side-Menu.Android - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-02-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Side--Menu.Android-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1388) Side Menu ============== Side menu with some categories to choose. Made in Yalantis.
Check this project on dribbble.
Check this project on Behance. God bless Ukraine! Sample ====== Sample & .aar file Note ==== depends on Ozodrukh's animation util for CircularReveal animation for 2.3+ version Using ====== First of all you have to upload animation submodule with `git submodule update --init` command

Or you can add gradle dependency with command:
```groovy dependencies { compile 'com.yalantis:sidemenu:1.0'` } ``` .
and command:
```groovy repositories { maven { url "https://jitpack.io" } } dependencies { compile 'com.github.ozodrukh:CircularReveal:(latest-release)@aar' } ```
for CircularReveal module After you have to create special overlay layout to show in behind current `Circular Reveal` animated view. And to add all items to menu you have to add all of them into `LinearLayout` ```xml ``` ```java ViewAnimator viewAnimator = new ViewAnimator<>(ActionBarActivity.this, new ArrayList(), (LinearLayout) findViewById(R.id.left_drawer), contentFragment, drawerLayout); //to open menu you have to override ActionBarDrawerToggle method @Override public void onDrawerSlide(View drawerView, float slideOffset) { super.onDrawerSlide(drawerView, slideOffset); if (slideOffset > 0.6 && viewAnimator.getLinearLayout().getChildCount() == 0) viewAnimator.showMenuContent(); } public void onDrawerClosed(View view) { super.onDrawerClosed(view); viewAnimator.getLinearLayout().removeAllViews(); viewAnimator.getLinearLayout().invalidate(); } ``` All menu items should implement `Resourceble` interface to get menu item name and drawable res And all fragments should implement `ScreenShotable` to get screenshot of a fragment ## License Copyright 2015, Yalantis 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.