Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 80 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,81 @@
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
/.idea
/gradle
# Built application files
*.apk
*.aar
*.ap_
*.aab

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# IntelliJ
*.iml
.idea/

# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/

# Google Services (e.g. APIs or Firebase)
# google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json

# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# Version control
vcs.xml

# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/

# Android Profiling
*.hprof

# Custom
/gooeybits/
19 changes: 0 additions & 19 deletions GooeyMenu.iml

This file was deleted.

42 changes: 19 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,42 @@
Option menu with gooey effects.

Option menu with gooey effectes.
Inspired by [this dribbble](https://dribbble.com/shots/1936758-GIF-of-the-Tap-Bar-Concept):

<img src="dribble.gif" width="600">)

Inspired by this [dribbble](https://dribbble.com/shots/1936758-GIF-of-the-Tap-Bar-Concept):
### What this Lib can do :

**1. Tab on each menu you get call with menu number.**

![](dribble.gif)
**2. You can customize the number of the menu.**

### What this Lib cab do :
**3. Distance between super menu and sub men can be customize.**

**1.Tab on each menu you get call with menu number.**
**4. Customize menu icon.**

**2.You can customize the number of the menu.**
<img src="gooeyeffect.gif" width="400">

**3.Distance between super menu and sub men can be customize.**

**4.Customize menu icon.**

![](gooeyeffect.gif)


also,you can set the menu's icon:
Also, you can set the menu's icon.

# Download

Include `jitpack.io` inside of **root** project `build.gradle`:

```groovy
```gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
repositories {
...
maven { url "https://jitpack.io" }
}
}
```

After that you can easily include the library in your **app** `build.gradle`:

```groovy
```gradle
dependencies {
compile 'com.github.anshulagarwal06:GooeyMenu:-SNAPSHOT'
}
implementation 'com.github.anshulagarwal06:GooeyMenu:-SNAPSHOT'
}
```

That's it. build your project.
That's it. Build your project.
Binary file removed app/GooeyMenu.apk
Binary file not shown.
122 changes: 0 additions & 122 deletions app/app.iml

This file was deleted.

15 changes: 7 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
compileSdkVersion 29
buildToolsVersion "29.0.3"

defaultConfig {
applicationId "android.anshul.com.gooeymenu"
minSdkVersion 14
targetSdkVersion 22
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
}
Expand All @@ -20,8 +20,7 @@ android {
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.4.0'
// compile 'com.github.anshulagarwal06:GooeyMenu:module-SNAPSHOT'
compile project(':gooeymenu')
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation project(':gooeymenu')
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package android.anshul.com.gooeymenu;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;

import com.anshul.gooey.GooeyMenu;
import androidx.appcompat.app.AppCompatActivity;

import com.anshul.gooey.GooeyMenu;

public class MainActivity extends ActionBarActivity implements GooeyMenu.GooeyMenuInterface {
public class MainActivity extends AppCompatActivity implements GooeyMenu.GooeyMenuInterface {

private GooeyMenu mGooeyMenu;
private Toast mToast;
Expand Down Expand Up @@ -48,7 +48,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
@Override
public void menuOpen() {
showToast("Menu Open");

}

@Override
Expand All @@ -59,7 +58,6 @@ public void menuClose() {
@Override
public void menuItemClicked(int menuNumber) {
showToast( "Menu item clicked : " + menuNumber);

}

private void showToast(String msg){
Expand Down
Binary file removed app/src/main/res/drawable-hdpi/ic_audio.png
Binary file not shown.
Binary file added app/src/main/res/drawable-hdpi/ic_audio.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-hdpi/ic_doc.png
Binary file not shown.
Binary file added app/src/main/res/drawable-hdpi/ic_doc.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-hdpi/ic_photo.png
Binary file not shown.
Binary file added app/src/main/res/drawable-hdpi/ic_photo.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-hdpi/ic_video.png
Binary file not shown.
Binary file added app/src/main/res/drawable-hdpi/ic_video.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-hdpi/plus.png
Binary file not shown.
Binary file added app/src/main/res/drawable-hdpi/plus.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-mdpi/ic_audio.png
Binary file not shown.
Binary file added app/src/main/res/drawable-mdpi/ic_audio.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-mdpi/ic_doc.png
Binary file not shown.
Binary file added app/src/main/res/drawable-mdpi/ic_doc.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-mdpi/ic_photo.png
Binary file not shown.
Binary file added app/src/main/res/drawable-mdpi/ic_photo.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-mdpi/ic_video.png
Binary file not shown.
Binary file added app/src/main/res/drawable-mdpi/ic_video.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-xhdpi/ic_audio.png
Binary file not shown.
Binary file added app/src/main/res/drawable-xhdpi/ic_audio.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-xhdpi/ic_doc.png
Binary file not shown.
Binary file added app/src/main/res/drawable-xhdpi/ic_doc.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-xhdpi/ic_photo.png
Binary file not shown.
Binary file added app/src/main/res/drawable-xhdpi/ic_photo.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-xhdpi/ic_video.png
Binary file not shown.
Binary file added app/src/main/res/drawable-xhdpi/ic_video.webp
Binary file removed app/src/main/res/drawable-xxhdpi/ic_audio.png
Diff not rendered.
Binary file added app/src/main/res/drawable-xxhdpi/ic_audio.webp
Binary file removed app/src/main/res/drawable-xxhdpi/ic_doc.png
Diff not rendered.
Binary file added app/src/main/res/drawable-xxhdpi/ic_doc.webp
Binary file removed app/src/main/res/drawable-xxhdpi/ic_photo.png
Diff not rendered.
Binary file added app/src/main/res/drawable-xxhdpi/ic_photo.webp
Binary file removed app/src/main/res/drawable-xxhdpi/ic_video.png
Diff not rendered.
Binary file added app/src/main/res/drawable-xxhdpi/ic_video.webp
Binary file removed app/src/main/res/drawable-xxhdpi/plus.png
Diff not rendered.
Binary file added app/src/main/res/drawable-xxhdpi/plus.webp
Binary file removed app/src/main/res/drawable-xxxhdpi/ic_audio.png
Diff not rendered.
Binary file added app/src/main/res/drawable-xxxhdpi/ic_audio.webp
Binary file removed app/src/main/res/drawable-xxxhdpi/ic_doc.png
Diff not rendered.
Binary file added app/src/main/res/drawable-xxxhdpi/ic_doc.webp
Binary file removed app/src/main/res/drawable-xxxhdpi/ic_photo.png
Diff not rendered.
Binary file added app/src/main/res/drawable-xxxhdpi/ic_photo.webp
Binary file removed app/src/main/res/drawable-xxxhdpi/ic_video.png
Diff not rendered.
Binary file added app/src/main/res/drawable-xxxhdpi/ic_video.webp
Binary file removed app/src/main/res/drawable-xxxhdpi/plus.png
Diff not rendered.
Binary file added app/src/main/res/drawable-xxxhdpi/plus.webp
Binary file removed app/src/main/res/drawable/alarm_done.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/alarm_done_pressed.png
Diff not rendered.
Binary file removed app/src/main/res/drawable/alarm_snooze_pressed.png
Diff not rendered.
3 changes: 0 additions & 3 deletions app/src/main/res/values/array.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>


<array name="drawable_array">

<item>@drawable/item_selector</item>
<item>@drawable/selector_video</item>
<item>@drawable/selector_audio</item>
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="GooeyMenu">

<attr name="no_of_menu" format="integer" />
<attr name="fab_radius" format="dimension" />
<attr name="menu_radius" format="dimension" />
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/color.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<color name="default_color">#02a6d8</color>
<color name="default_color_dark">#52a6b8</color>
<color name="color_red">#FF0000</color>
</resources>
Loading