Cool blurred grid menu for Android.

Min SDK   11
Latest Commit   2016-03-23 07:10:10
License   Apache-2.0

Github   https://github.com/gotokatsuya/BlurredGridMenu

         

使用APP客户端扫描二维码运行Demo


...

gotokatsuya
eureka, Inc.
Tokyo, Japan

http://gotokatsuya.github.io/

         

类似的还有....
AndroidResideMenu The idea of ResideMenu is from Dribbble 1 and 2. It has come true and run in iOS devices. iOS ResideMenu This project is the RefsideMenu Android version. The visual effect is partly referred to iOS version of Reside
BoomMenu A menu which can ... BOOM! - Android
MaterialDrawer The flexible, easy to use, all in one drawer library for your Android project.
README

README.md

BlurredGridMenu

![AndroidArsenal](https://img.shields.io/badge/Android%20Arse ak-BlurredGridMenu-brightgreen.svg?style=flat)

Cool grid menu.

How to use

Enable renderscript

Open the build.gradle file in the app folder of your application module. Add the following RenderScript settings to the file in defaultConfig:

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.2'

    defaultConfig {
        minSdkVersion 8
        targetSdkVersion 23

        renderscriptTargetApi 22  
        renderscriptSupportModeEnabled true

    }
}

Code

// Configuration (You can call on Application)
private void makeBlurConfig() {
  BlurredGridMenuConfig
      .build(new BlurredGridMenuConfig.Builder()
              .radius(1)
              .downsample(1)
              .overlayColor(Color.parseColor("#AA000000")));
}

// GridMenuFragment
private void makeGridMenuFragment() {
  // This image will be blurred.
  int backgroundResourceId = ...;
  mGridMenuFragment = GridMenuFragment.newInstance(backgroundResourceId)

  List<GridMenu> menus = new ArrayList<>();
  menus.add(new GridMenu("Home", R.drawable.home));
  ...
  menus.add(new GridMenu("Setting", R.drawable.settings));
  ...
  mGridMenuFragment.setupMenu(menus);

  mGridMenuFragment.setOnClickMenuListener(new GridMenuFragment.OnClickMenuListener() {
      @Override
      public void onClickMenu(GridMenu gridMenu, int position) {
          Toast.makeText(context, "Title:" + gridMenu.getTitle() + ", Position:" + position,
                          Toast.LENGTH_SHORT).show();
      }
  });
}

Check this sample code

Gradle

repositories {
    jcenter()
}

dependencies {
    compile 'com.github.goka.blurredgridmenu:blurredgridmenu:1.0.2'
}

Release

1.0.0 First release.

1.0.1 Modified some class names.

1.0.2 Delete resources we don't need.

Blur

Reference 500px