• Stars
    star
    496
  • Rank 88,211 (Top 2 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Cool blurred grid menu for Android.

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

More Repositories

1

ParkedTextView

A editable text with a constant text/placeholder for Android.
Java
269
star
2

KenBurnsView

Slideshow. Android ImageViews are animated by Ken Burns Effect. (Inspired by Heyday)
Java
212
star
3

FlickableView

Flickable ImageView for Android. It's like a view of twitter's detail image.
Java
150
star
4

walker

Cool walkthrough has good animation for Android.
Java
82
star
5

RSSTS

Report Screenshot To Slack for Android
Java
24
star
6

apidoc

Automatic API Document Generator in Golang
Go
16
star
7

line-pay-sdk-go

LINE Pay API SDK for Go
Go
14
star
8

go-nudely

Nudity Detection
Go
9
star
9

HighlightTextView

Inspired by https://github.com/yusayusa/HighlightTextView
Java
5
star
10

bigquery

bigquery is easy for go developers to use BigQuery API
Go
5
star
11

DribbbleBySwift

Objective-C
4
star
12

speed

logger that trace one api or method duration
Go
4
star
13

break

Go
3
star
14

gosquare

Foursquare API client library for Go.
Go
3
star
15

llm-qa-bot

Python
2
star
16

ipare

Image Compare Toolkit for Go
Go
2
star
17

gae-google

Sample https://qiita.com/gotokatsuya/items/7f3bd1f71aa825264851
Go
2
star
18

goapex

HCL
2
star
19

microcms-liff-handson-project

Ruby
2
star
20

amazon-pay-sdk-go

Go
2
star
21

yahoo

Yahoo! JAPAN YConnect (OAuth2.0 + OpenID Connect)
Go
2
star
22

ShowCase

Objective-C
2
star
23

timetree-sdk-go

Go
2
star
24

drager

ViewDragHelper demo.
Java
2
star
25

dcache

Disk cache for Golang. Algorithm is like LRU cache.
Go
1
star
26

Android-Lib-InAppBilling

Provides a straightforward and simple interface for sending in-app billing requests and managing in-app transactions in Google Play.
Java
1
star
27

daily

Post daily report to slack
JavaScript
1
star
28

PhaseOnlyCorrelation

Java
1
star
29

appsflyer

AppsFlyer API client library for Go.
Go
1
star
30

chanhamrun

Game that chanham is running.
Go
1
star
31

httpstat

Go
1
star
32

Easy

Easy is a mvp (Model-View-Presenter) project.
Java
1
star
33

particle

Particle Filter by Go
Go
1
star
34

MeetupSlack

Swift
1
star
35

Favos

Instagram
Java
1
star
36

collaborators-github

Go
1
star
37

TouchLight

Android Wear Game
Java
1
star
38

DroidLGTM

Java
1
star