├── .gitignore ├── .idea ├── encodings.xml ├── gradle.xml ├── misc.xml ├── modules.xml └── runConfigurations.xml ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── rany │ │ └── albeg │ │ └── wein │ │ └── springfabmenudemo │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── rany │ │ │ └── albeg │ │ │ └── wein │ │ │ └── springfabmenudemo │ │ │ └── ScrollingActivity.java │ └── res │ │ ├── drawable-hdpi │ │ ├── ic_action_attach.png │ │ ├── ic_action_chat.png │ │ ├── ic_action_chat_bubble.png │ │ ├── ic_action_cloud.png │ │ ├── ic_action_colorize.png │ │ ├── ic_action_crop_original.png │ │ ├── ic_action_crop_rotate.png │ │ ├── ic_action_edit.png │ │ ├── ic_action_folder.png │ │ ├── ic_action_hdr.png │ │ └── ic_action_share.png │ │ ├── drawable-mdpi │ │ ├── ic_action_attach.png │ │ ├── ic_action_chat.png │ │ ├── ic_action_chat_bubble.png │ │ ├── ic_action_cloud.png │ │ ├── ic_action_colorize.png │ │ ├── ic_action_crop_original.png │ │ ├── ic_action_crop_rotate.png │ │ ├── ic_action_edit.png │ │ ├── ic_action_folder.png │ │ ├── ic_action_hdr.png │ │ └── ic_action_share.png │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable-xhdpi │ │ ├── ic_action_attach.png │ │ ├── ic_action_chat.png │ │ ├── ic_action_chat_bubble.png │ │ ├── ic_action_cloud.png │ │ ├── ic_action_colorize.png │ │ ├── ic_action_crop_original.png │ │ ├── ic_action_crop_rotate.png │ │ ├── ic_action_edit.png │ │ ├── ic_action_folder.png │ │ ├── ic_action_hdr.png │ │ └── ic_action_share.png │ │ ├── drawable-xxhdpi │ │ ├── ic_action_attach.png │ │ ├── ic_action_chat.png │ │ ├── ic_action_chat_bubble.png │ │ ├── ic_action_cloud.png │ │ ├── ic_action_colorize.png │ │ ├── ic_action_crop_original.png │ │ ├── ic_action_crop_rotate.png │ │ ├── ic_action_edit.png │ │ ├── ic_action_folder.png │ │ ├── ic_action_hdr.png │ │ └── ic_action_share.png │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ ├── activity_scrolling.xml │ │ └── content_scrolling.xml │ │ ├── menu │ │ └── menu_scrolling.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── rany │ └── albeg │ └── wein │ └── springfabmenudemo │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle ├── spring-fab-menu.gif └── spring-fab-menu ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src ├── androidTest └── java │ └── com │ └── rany │ └── albeg │ └── wein │ └── springfabmenu │ └── ExampleInstrumentedTest.java ├── main ├── AndroidManifest.xml ├── java │ └── com │ │ └── rany │ │ └── albeg │ │ └── wein │ │ └── springfabmenu │ │ ├── DensityUtils.java │ │ └── SpringFabMenu.java └── res │ ├── drawable-hdpi │ └── ic_action_add.png │ ├── drawable-mdpi │ └── ic_action_add.png │ ├── drawable-xhdpi │ └── ic_action_add.png │ ├── drawable-xxhdpi │ └── ic_action_add.png │ └── values │ ├── attrs.xml │ └── strings.xml └── test └── java └── com └── rany └── albeg └── wein └── springfabmenu └── ExampleUnitTest.java /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | Java 36 | 37 | 38 | Probable bugsJava 39 | 40 | 41 | RELAX NG 42 | 43 | 44 | 45 | 46 | Android > Lint > Correctness 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 58 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SpringFabMenu 2 | --- 3 | 4 | A menu of `FloatingActionButton` items, designed to be anchored on an `AppBarLayout`. 5 | 6 | ![alt text](spring-fab-menu.gif "Example") 7 | 8 | ### Usage 9 | 10 | --- 11 | 12 | [ ![Download](https://api.bintray.com/packages/ranyalbegwein/maven/spring-fab-menu/images/download.svg) ](https://bintray.com/ranyalbegwein/maven/spring-fab-menu/_latestVersion) 13 | [![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-SpringFabMenu-green.svg?style=flat )]( https://android-arsenal.com/details/1/6384 ) 14 | 15 | Buy Me a Coffee at ko-fi.com 16 | 17 | 1. Edit your *build.gradle* to include the library and sync. 18 | 19 | ``` 20 | dependencies { 21 | implementation 'com.rany.albeg.wein:spring-fab-menu:1.0.1' 22 | } 23 | ``` 24 | Or with Maven: 25 | ```xml 26 | 27 | com.rany.albeg.wein 28 | spring-fab-menu 29 | 1.0.0 30 | pom 31 | 32 | ``` 33 | 2. Create a `SpringFabMenu` in XML: 34 | ```xml 35 | 41 | 42 | 47 | 48 | 53 | 54 | 59 | 60 | 61 | ``` 62 | 63 | All available attributes ( following values are defaults ): 64 | ```xml 65 | 82 | ``` 83 | 84 | * `app:sfm_collapse_duration` : The time ( in ms ) it takes for the menu to collapse. 85 | * `app:sfm_collapse_on_item_selected` : Will the menu collapse when a menu-item is clicked. 86 | * `app:sfm_delay_expanding_menu_items` : Delay ( in ms ) between expanding menu items. 87 | * `app:sfm_expand_duration` : The time ( in ms ) it takes for the menu to expand. 88 | * `app:sfm_expand_item_rotation_degrees` : Degrees of rotation for expanding menu item. 89 | * `app:sfm_expand_menu_button_rotation_degrees` : Degrees of rotation for the menu button. 90 | * `app:sfm_menu_button_color` : The color of the menu button. 91 | * `app:sfm_menu_button_ripple_color` : The ripple color of the menu button. 92 | * `app:sfm_size_menu_button` : The size of the menu button. 93 | * `app:sfm_spacing_menu_items` : Spacing ( in dp ) between menu items. 94 | * `app:sfm_src_icon` : The icon for the menu button. 95 | 96 | **Note:** 97 | If you decide to anchor `SpringFabMenu` to an `AppBarLayout`, don't forget to apply a behavior to hide or show the menu: 98 | 99 | `app:layout_behavior="@string/appbar_springfabmenu_behavior"` 100 | 101 | 3. Listen for item clicks: 102 | 103 | ```java 104 | SpringFabMenu sfm = (SpringFabMenu)findViewById(R.id.sfm); 105 | 106 | sfm.setOnSpringFabMenuItemClickListener(new SpringFabMenu.OnSpringFabMenuItemClickListener() { 107 | @Override 108 | public void onSpringFabMenuItemClick(View view) { 109 | switch (view.getId()) { 110 | case R.id.fab_share: 111 | break; 112 | case R.id.fab_send: 113 | break; 114 | case R.id.fab_delete: 115 | } 116 | } 117 | }); 118 | ``` 119 | 120 | AUTHOR 121 | ------- 122 | 123 | **Rany Albeg Wein** 124 | 125 | 126 | LICENSE 127 | -------- 128 | Licensed under the Apache License, Version 2.0 (the "License"); 129 | you may not use this file except in compliance with the License. 130 | You may obtain a copy of the License at 131 | 132 | http://www.apache.org/licenses/LICENSE-2.0 133 | 134 | Unless required by applicable law or agreed to in writing, software 135 | distributed under the License is distributed on an "AS IS" BASIS, 136 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 137 | See the License for the specific language governing permissions and 138 | limitations under the License. 139 | 140 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 26 5 | defaultConfig { 6 | applicationId "com.rany.albeg.wein.springfabmenudemo" 7 | minSdkVersion 19 8 | targetSdkVersion 26 9 | versionCode 2 10 | versionName "1.1" 11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | implementation fileTree(dir: 'libs', include: ['*.jar']) 23 | implementation 'com.android.support:appcompat-v7:26.1.0' 24 | implementation 'com.android.support:design:26.1.0' 25 | compile project(':spring-fab-menu') 26 | testImplementation 'junit:junit:4.12' 27 | androidTestImplementation 'com.android.support.test:runner:1.0.1' 28 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 29 | } 30 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/rany/albeg/wein/springfabmenudemo/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.rany.albeg.wein.springfabmenudemo; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.rany.albeg.wein.springfabmenudemo", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/java/com/rany/albeg/wein/springfabmenudemo/ScrollingActivity.java: -------------------------------------------------------------------------------- 1 | package com.rany.albeg.wein.springfabmenudemo; 2 | 3 | import android.os.Bundle; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.support.v7.widget.Toolbar; 6 | import android.view.Menu; 7 | 8 | public class ScrollingActivity extends AppCompatActivity { 9 | 10 | @Override 11 | protected void onCreate(Bundle savedInstanceState) { 12 | super.onCreate(savedInstanceState); 13 | setContentView(R.layout.activity_scrolling); 14 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 15 | setSupportActionBar(toolbar); 16 | getSupportActionBar().setTitle(null); 17 | } 18 | 19 | @Override 20 | public boolean onCreateOptionsMenu(Menu menu) { 21 | // Inflate the menu; this adds items to the action bar if it is present. 22 | getMenuInflater().inflate(R.menu.menu_scrolling, menu); 23 | return true; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_attach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-hdpi/ic_action_attach.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_chat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-hdpi/ic_action_chat.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_chat_bubble.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-hdpi/ic_action_chat_bubble.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_cloud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-hdpi/ic_action_cloud.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_colorize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-hdpi/ic_action_colorize.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_crop_original.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-hdpi/ic_action_crop_original.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_crop_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-hdpi/ic_action_crop_rotate.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-hdpi/ic_action_edit.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-hdpi/ic_action_folder.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_hdr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-hdpi/ic_action_hdr.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-hdpi/ic_action_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_attach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-mdpi/ic_action_attach.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_chat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-mdpi/ic_action_chat.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_chat_bubble.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-mdpi/ic_action_chat_bubble.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_cloud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-mdpi/ic_action_cloud.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_colorize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-mdpi/ic_action_colorize.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_crop_original.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-mdpi/ic_action_crop_original.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_crop_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-mdpi/ic_action_crop_rotate.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-mdpi/ic_action_edit.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-mdpi/ic_action_folder.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_hdr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-mdpi/ic_action_hdr.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-mdpi/ic_action_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_attach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xhdpi/ic_action_attach.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_chat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xhdpi/ic_action_chat.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_chat_bubble.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xhdpi/ic_action_chat_bubble.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_cloud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xhdpi/ic_action_cloud.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_colorize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xhdpi/ic_action_colorize.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_crop_original.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xhdpi/ic_action_crop_original.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_crop_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xhdpi/ic_action_crop_rotate.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xhdpi/ic_action_edit.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xhdpi/ic_action_folder.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_hdr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xhdpi/ic_action_hdr.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xhdpi/ic_action_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_attach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xxhdpi/ic_action_attach.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_chat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xxhdpi/ic_action_chat.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_chat_bubble.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xxhdpi/ic_action_chat_bubble.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_cloud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xxhdpi/ic_action_cloud.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_colorize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xxhdpi/ic_action_colorize.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_crop_original.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xxhdpi/ic_action_crop_original.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_crop_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xxhdpi/ic_action_crop_rotate.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xxhdpi/ic_action_edit.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xxhdpi/ic_action_folder.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_hdr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xxhdpi/ic_action_hdr.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/drawable-xxhdpi/ic_action_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 11 | 16 | 21 | 26 | 31 | 36 | 41 | 46 | 51 | 56 | 61 | 66 | 71 | 76 | 81 | 86 | 91 | 96 | 101 | 106 | 111 | 116 | 121 | 126 | 131 | 136 | 141 | 146 | 151 | 156 | 161 | 166 | 171 | 172 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_scrolling.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 17 | 18 | 26 | 27 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 51 | 52 | 57 | 58 | 63 | 64 | 65 | 66 | 80 | 81 | 87 | 88 | 94 | 95 | 96 | 97 | 111 | 112 | 118 | 119 | 125 | 126 | 132 | 133 | 134 | 135 | 150 | 151 | 157 | 158 | 164 | 165 | 171 | 172 | 173 | 174 | 191 | 192 | 198 | 199 | 205 | 206 | 212 | 213 | 219 | 220 | 221 | 222 | 223 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_scrolling.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_scrolling.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RanyAlbegWein/SpringFabMenu/98996826eb799dcc098c3cbb64db549264347479/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 180dp 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SpringFabMenuDemo 3 | 4 | "Material is the metaphor.\n\n" 5 | 6 | "A material metaphor is the unifying theory of a rationalized space and a system of motion." 7 | "The material is grounded in tactile reality, inspired by the study of paper and ink, yet " 8 | "technologically advanced and open to imagination and magic.\n" 9 | "Surfaces and edges of the material provide visual cues that are grounded in reality. The " 10 | "use of familiar tactile attributes helps users quickly understand affordances. Yet the " 11 | "flexibility of the material creates new affordances that supercede those in the physical " 12 | "world, without breaking the rules of physics.\n" 13 | "The fundamentals of light, surface, and movement are key to conveying how objects move, " 14 | "interact, and exist in space and in relation to each other. Realistic lighting shows " 15 | "seams, divides space, and indicates moving parts.\n\n" 16 | 17 | "Bold, graphic, intentional.\n\n" 18 | 19 | "The foundational elements of print based design typography, grids, space, scale, color, " 20 | "and use of imagery guide visual treatments. These elements do far more than please the " 21 | "eye. They create hierarchy, meaning, and focus. Deliberate color choices, edge to edge " 22 | "imagery, large scale typography, and intentional white space create a bold and graphic " 23 | "interface that immerse the user in the experience.\n" 24 | "An emphasis on user actions makes core functionality immediately apparent and provides " 25 | "waypoints for the user.\n\n" 26 | 27 | "Motion provides meaning.\n\n" 28 | 29 | "Motion respects and reinforces the user as the prime mover. Primary user actions are " 30 | "inflection points that initiate motion, transforming the whole design.\n" 31 | "All action takes place in a single environment. Objects are presented to the user without " 32 | "breaking the continuity of experience even as they transform and reorganize.\n" 33 | "Motion is meaningful and appropriate, serving to focus attention and maintain continuity. " 34 | "Feedback is subtle yet clear. Transitions are efficient yet coherent.\n\n" 35 | 36 | "3D world.\n\n" 37 | 38 | "The material environment is a 3D space, which means all objects have x, y, and z " 39 | "dimensions. The z-axis is perpendicularly aligned to the plane of the display, with the " 40 | "positive z-axis extending towards the viewer. Every sheet of material occupies a single " 41 | "position along the z-axis and has a standard 1dp thickness.\n" 42 | "On the web, the z-axis is used for layering and not for perspective. The 3D world is " 43 | "emulated by manipulating the y-axis.\n\n" 44 | 45 | "Light and shadow.\n\n" 46 | 47 | "Within the material environment, virtual lights illuminate the scene. Key lights create " 48 | "directional shadows, while ambient light creates soft shadows from all angles.\n" 49 | "Shadows in the material environment are cast by these two light sources. In Android " 50 | "development, shadows occur when light sources are blocked by sheets of material at " 51 | "various positions along the z-axis. On the web, shadows are depicted by manipulating the " 52 | "y-axis only. The following example shows the card with a height of 6dp.\n\n" 53 | 54 | "Resting elevation.\n\n" 55 | 56 | "All material objects, regardless of size, have a resting elevation, or default elevation " 57 | "that does not change. If an object changes elevation, it should return to its resting " 58 | "elevation as soon as possible.\n\n" 59 | 60 | "Component elevations.\n\n" 61 | 62 | "The resting elevation for a component type is consistent across apps (e.g., FAB elevation " 63 | "does not vary from 6dp in one app to 16dp in another app).\n" 64 | "Components may have different resting elevations across platforms, depending on the depth " 65 | "of the environment (e.g., TV has a greater depth than mobile or desktop).\n\n" 66 | 67 | "Responsive elevation and dynamic elevation offsets.\n\n" 68 | 69 | "Some component types have responsive elevation, meaning they change elevation in response " 70 | "to user input (e.g., normal, focused, and pressed) or system events. These elevation " 71 | "changes are consistently implemented using dynamic elevation offsets.\n" 72 | "Dynamic elevation offsets are the goal elevation that a component moves towards, relative " 73 | "to the component’s resting state. They ensure that elevation changes are consistent " 74 | "across actions and component types. For example, all components that lift on press have " 75 | "the same elevation change relative to their resting elevation.\n" 76 | "Once the input event is completed or cancelled, the component will return to its resting " 77 | "elevation.\n\n" 78 | 79 | "Avoiding elevation interference.\n\n" 80 | 81 | "Components with responsive elevations may encounter other components as they move between " 82 | "their resting elevations and dynamic elevation offsets. Because material cannot pass " 83 | "through other material, components avoid interfering with one another any number of ways, " 84 | "whether on a per component basis or using the entire app layout.\n" 85 | "On a component level, components can move or be removed before they cause interference. " 86 | "For example, a floating action button (FAB) can disappear or move off screen before a " 87 | "user picks up a card, or it can move if a snackbar appears.\n" 88 | "On the layout level, design your app layout to minimize opportunities for interference. " 89 | "For example, position the FAB to one side of stream of a cards so the FAB won’t interfere " 90 | "when a user tries to pick up one of cards.\n\n" 91 | 92 | Settings 93 | 94 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |