├── .gitignore ├── .idea ├── compiler.xml ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── gradle.xml ├── misc.xml ├── modules.xml ├── runConfigurations.xml └── vcs.xml ├── LICENSE ├── README.md ├── _config.yml ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── vpaliy │ │ └── vasya │ │ └── fab_toolbar_example │ │ ├── MainActivity.java │ │ └── utils │ │ ├── MarginDecoration.java │ │ └── SquareImage.java │ └── res │ ├── 10.jpg │ ├── 11.jpg │ ├── 12.jpg │ ├── 13.jpg │ ├── 14.jpg │ ├── 15.jpg │ ├── 16.jpg │ ├── 17.jpg │ ├── 4.jpg │ ├── 5.jpg │ ├── 6.jpg │ ├── 7.jpg │ ├── 8.jpg │ ├── 9.jpg │ ├── drawable │ ├── drawable-hdpi │ │ ├── ic_add_white_24dp.png │ │ ├── ic_arrow_back_white_24dp.png │ │ ├── ic_chat_white_24dp.png │ │ ├── ic_clear_black_24dp.png │ │ ├── ic_content_copy_white_24dp.png │ │ ├── ic_create_white_24dp.png │ │ ├── ic_done_white_24dp.png │ │ └── ic_email_white_24dp.png │ ├── drawable-ldrtl-hdpi │ │ ├── ic_arrow_back_white_24dp.png │ │ └── ic_content_copy_white_24dp.png │ ├── drawable-ldrtl-mdpi │ │ ├── ic_arrow_back_white_24dp.png │ │ └── ic_content_copy_white_24dp.png │ ├── drawable-ldrtl-xhdpi │ │ ├── ic_arrow_back_white_24dp.png │ │ └── ic_content_copy_white_24dp.png │ ├── drawable-ldrtl-xxhdpi │ │ ├── ic_arrow_back_white_24dp.png │ │ └── ic_content_copy_white_24dp.png │ ├── drawable-ldrtl-xxxhdpi │ │ ├── ic_arrow_back_white_24dp.png │ │ └── ic_content_copy_white_24dp.png │ ├── drawable-mdpi │ │ ├── ic_content_copy_white_24dp.png │ │ └── ic_create_white_24dp.png │ ├── drawable-xhdpi │ │ ├── ic_add_white_24dp.png │ │ ├── ic_arrow_back_white_24dp.png │ │ ├── ic_chat_white_24dp.png │ │ ├── ic_clear_black_24dp.png │ │ ├── ic_content_copy_white_24dp.png │ │ ├── ic_create_white_24dp.png │ │ ├── ic_done_white_24dp.png │ │ └── ic_email_white_24dp.png │ ├── drawable-xxhdpi │ │ ├── ic_add_white_24dp.png │ │ ├── ic_arrow_back_white_24dp.png │ │ ├── ic_chat_white_24dp.png │ │ ├── ic_clear_black_24dp.png │ │ ├── ic_content_copy_white_24dp.png │ │ ├── ic_create_white_24dp.png │ │ ├── ic_done_white_24dp.png │ │ └── ic_email_white_24dp.png │ ├── drawable-xxxhdpi │ │ ├── ic_add_white_24dp.png │ │ ├── ic_arrow_back_white_24dp.png │ │ ├── ic_chat_white_24dp.png │ │ ├── ic_clear_black_24dp.png │ │ ├── ic_content_copy_white_24dp.png │ │ ├── ic_create_white_24dp.png │ │ ├── ic_done_white_24dp.png │ │ └── ic_email_white_24dp.png │ ├── eleven.jpg │ ├── facebook.xml │ ├── fifteen.jpg │ ├── five.jpg │ ├── four.jpg │ ├── fourteen.jpg │ ├── gmail.xml │ ├── location.xml │ ├── message.xml │ ├── seven.jpg │ ├── seventeen.jpg │ ├── share.xml │ ├── six.jpg │ ├── sixteen.jpg │ ├── ten.jpg │ ├── thirt.jpg │ ├── three.jpg │ ├── twelve.jpg │ ├── twitter.xml │ └── two.jpg │ ├── layout │ ├── activity_main.xml │ └── image.xml │ ├── mipmap-hdpi │ └── ic_launcher.png │ ├── mipmap-mdpi │ └── ic_launcher.png │ ├── mipmap-xhdpi │ └── ic_launcher.png │ ├── mipmap-xxhdpi │ └── ic_launcher.png │ ├── mipmap-xxxhdpi │ └── ic_launcher.png │ ├── values-w820dp │ └── dimens.xml │ └── values │ ├── colors.xml │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml ├── build.gradle ├── expandable-button ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── popularmovies │ │ └── vpaliy │ │ └── bottomtoolbar │ │ ├── ButtonItem.java │ │ ├── ExpandAnimationAdapterListener.java │ │ ├── ExpandAnimationListener.java │ │ ├── ExpandableButtonView.java │ │ ├── core │ │ ├── AnimatorPath.java │ │ ├── PathEvaluator.java │ │ └── PathPoint.java │ │ └── scroller │ │ └── ScrollListener.java │ └── res │ └── values │ ├── attrs.xml │ ├── colors.xml │ ├── dimens.xml │ ├── strings.xml │ └── style.xml ├── gifs ├── ezgif.com-video-to-gif (1).gif ├── ezgif.com-video-to-gif (2).gif └── ezgif.com-video-to-gif.gif ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 19 | 20 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 19 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | 47 | 48 | 49 | 50 | 51 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Vasyl Paliy 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Expandable Action Button 2 | 3 | # How does it work? # 4 | 5 | This sample shows transforming of floating action button into a toolbar upon press or from a toolbar upon scroll. The toolbar can contain different items, such as text, buttons, search fields, or any other items that would be useful at hand. 6 | 7 | Moreover, this sample has implmentation of FAB animation(fading in and out) when the user scrolls down or upwards. 8 | 9 | When the user presses the button, it goes down and inflates another layout which contains all important stuff. You can add listeners and work with the inflated layout as with plain `ViewGroup`. 10 | 11 | # Screenshot # 12 | ![](https://github.com/vpaliyX/Expandable-Action-Button/blob/master/gifs/ezgif.com-video-to-gif.gif) 13 | 14 | ## Video [example](https://www.youtube.com/watch?v=rfXL3zzjkHg&feature=youtu.be) ## 15 | 16 | ## This is based on Google's Material Design guidelines:## 17 | 18 | ![](https://github.com/vpaliyX/Expandable-Action-Button/blob/master/gifs/ezgif.com-video-to-gif%20(1).gif) 19 | ![](https://github.com/vpaliyX/Expandable-Action-Button/blob/master/gifs/ezgif.com-video-to-gif%20(2).gif) 20 | 21 | 22 | In order to imitate motion of the button, when it goes down or up, I used a curved motion concept, you can check it out in this [video](https://www.youtube.com/watch?v=JVGg4zPRHNE). 23 | 24 | ## How to use the ExpandableButtonView? ## 25 | 26 | First of all, import the expandable-button module into your project, then follow these steps: 27 | 28 | 1. Specify the view in your XML file: 29 | ```xml 30 | ` 41 | 42 | ``` 43 | You need to specify the margins of the button. 44 | Also note that `layout_width` and `layout_height` should be `wrap_content`.
45 | You can specify the width and height of the button by using: 46 | `app:button_width` and `app:button_height` 47 | 48 | 2. Then go ahead and add some buttons, for example: 49 | ```java 50 | 51 | ButtomItem item=new ButtonItem.Builder(context) 52 | .setImageResource(R.id.image) 53 | .setClickListener(listener).build(); 54 | expandableButtonView.addItem(item); 55 | 56 | ``` 57 | Or 58 | 59 | ```java 60 | 61 | expandableButtonView.addItem(new ButtonItem(context) 62 | .setImageResource(R.id.image) 63 | .setClickListener(listener)); 64 | ``` 65 | 66 | The items which have been added to the `ExpandableButtonView` will always be in the center. 67 | 68 | 3. So far I have written only a listener for a `RecyclerView` so it works only with that. 69 | 70 | ```java 71 | recyclerView.addOnScrollListener(new ScrollListener(expandableButtonView)); 72 | ``` 73 | However, there is a method `removeBottomToolbar` which folds the toolbar back, 74 | so you use that every time you need to return to the button view. 75 | 76 | 77 | ## How to download? ## 78 | 79 | ### Step 1 ### 80 | 81 | Add it in your root build.gradle at the end of repositories: 82 | 83 | ``` gradle 84 | allprojects { 85 | repositories { 86 | maven { url 'https://jitpack.io' } 87 | } 88 | } 89 | 90 | ``` 91 | ### Step 2 ### 92 | 93 | Add the dependency 94 | 95 | ``` gradle 96 | dependencies { 97 | compile 'com.github.vpaliyX:Expandable-Action-Button:v1.0' 98 | } 99 | 100 | ``` 101 | You're good to go! 102 | 103 | 104 | ## License ## 105 | 106 | `````` 107 | MIT License 108 | 109 | Copyright (c) 2017 Vasyl Paliy 110 | 111 | Permission is hereby granted, free of charge, to any person obtaining a copy 112 | of this software and associated documentation files (the "Software"), to deal 113 | in the Software without restriction, including without limitation the rights 114 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 115 | copies of the Software, and to permit persons to whom the Software is 116 | furnished to do so, subject to the following conditions: 117 | 118 | The above copyright notice and this permission notice shall be included in all 119 | copies or substantial portions of the Software. 120 | 121 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 122 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 123 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 124 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 125 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 126 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 127 | SOFTWARE. 128 | `````` 129 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-architect -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.2" 6 | 7 | 8 | defaultConfig { 9 | applicationId "com.vpaliy.vasya.fab_toolbar_example" 10 | minSdkVersion 15 11 | targetSdkVersion 25 12 | versionCode 1 13 | versionName "1.0" 14 | 15 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 16 | 17 | } 18 | buildTypes { 19 | release { 20 | minifyEnabled false 21 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 22 | } 23 | } 24 | 25 | } 26 | 27 | dependencies { 28 | compile project (':expandable-button') 29 | 30 | compile 'com.jakewharton:butterknife:8.5.1' 31 | annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1' 32 | compile 'com.android.support:design:25.3.1' 33 | compile 'com.github.bumptech.glide:glide:3.7.0' 34 | compile 'com.android.support:recyclerview-v7:25.3.1' 35 | } 36 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/vasya/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/java/com/vpaliy/vasya/fab_toolbar_example/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.vpaliy.vasya.fab_toolbar_example; 2 | 3 | import android.content.Context; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.os.Bundle; 6 | import android.support.v7.widget.GridLayoutManager; 7 | import android.support.v7.widget.RecyclerView; 8 | import android.view.LayoutInflater; 9 | import android.view.View; 10 | import android.view.ViewGroup; 11 | import com.bumptech.glide.Glide; 12 | import com.popularmovies.vpaliy.bottomtoolbar.ButtonItem; 13 | import com.popularmovies.vpaliy.bottomtoolbar.ExpandableButtonView; 14 | import com.popularmovies.vpaliy.bottomtoolbar.scroller.ScrollListener; 15 | import com.vpaliy.vasya.fab_toolbar_example.utils.MarginDecoration; 16 | import com.vpaliy.vasya.fab_toolbar_example.utils.SquareImage; 17 | import java.util.Arrays; 18 | import java.util.List; 19 | import butterknife.ButterKnife; 20 | 21 | import butterknife.BindView; 22 | 23 | public class MainActivity extends AppCompatActivity { 24 | 25 | @BindView(R.id.expandableButton) 26 | protected ExpandableButtonView expandableButtonView; 27 | 28 | @BindView(R.id.recyclerView) 29 | protected RecyclerView recyclerView; 30 | 31 | 32 | @Override 33 | protected void onCreate(Bundle savedInstanceState) { 34 | super.onCreate(savedInstanceState); 35 | setContentView(R.layout.activity_main); 36 | ButterKnife.bind(this); 37 | setUI(); 38 | } 39 | 40 | 41 | private void setUI() { 42 | if(getSupportActionBar()!=null){ 43 | getSupportActionBar().setDisplayShowHomeEnabled(true); 44 | getSupportActionBar().setDisplayHomeAsUpEnabled(true); 45 | } 46 | List rawDrawableList = Arrays.asList(R.drawable.eleven, R.drawable.fifteen, R.drawable.five, 47 | R.drawable.four, R.drawable.fourteen, R.drawable.seven, R.drawable.seventeen, 48 | R.drawable.six, R.drawable.sixteen, R.drawable.ten, R.drawable.thirt, R.drawable.three, R.drawable.twelve, 49 | R.drawable.two); 50 | 51 | recyclerView.setLayoutManager(new GridLayoutManager(this, 3, GridLayoutManager.VERTICAL, false)); 52 | recyclerView.setAdapter(new GalleryAdapter(this, rawDrawableList)); 53 | recyclerView.addItemDecoration(new MarginDecoration(this)); 54 | recyclerView.addOnScrollListener(new ScrollListener(expandableButtonView)); 55 | 56 | ButtonItem.Builder builder=new ButtonItem.Builder(this); 57 | 58 | for (int index = 0; index < 5; index++) { 59 | ButtonItem item; 60 | switch (index){ 61 | case 1: 62 | item=builder.setImageResource(R.drawable.message) 63 | .build(); 64 | break; 65 | case 2: 66 | item=builder.setImageResource(R.drawable.location) 67 | .build(); 68 | break; 69 | case 3: 70 | item=builder.setImageResource(R.drawable.facebook) 71 | .build(); 72 | break; 73 | case 4: 74 | item=builder.setImageResource(R.drawable.gmail) 75 | .build(); 76 | break; 77 | default: 78 | item=builder.setImageResource(R.drawable.twitter) 79 | .build(); 80 | 81 | } 82 | expandableButtonView.addItem(item); 83 | } 84 | 85 | } 86 | 87 | 88 | /* Adapter for RecyclerView */ 89 | @SuppressWarnings("WeakerAccess") 90 | public class GalleryAdapter extends 91 | RecyclerView.Adapter { 92 | 93 | 94 | private List imageList; 95 | private LayoutInflater inflater; 96 | 97 | public GalleryAdapter(Context context, List imageList) { 98 | this.inflater=LayoutInflater.from(context); 99 | this.imageList=imageList; 100 | } 101 | 102 | public class ImageViewHolder extends RecyclerView.ViewHolder { 103 | 104 | @BindView(R.id.image) 105 | SquareImage image; 106 | 107 | public ImageViewHolder(View itemView) { 108 | super(itemView); 109 | ButterKnife.bind(this,itemView); 110 | } 111 | 112 | void onBindData() { 113 | Glide.with(itemView.getContext()) 114 | .load(imageList.get(getAdapterPosition()%imageList.size())) 115 | .asBitmap() 116 | .centerCrop() 117 | .into(image); 118 | } 119 | } 120 | 121 | @Override 122 | public ImageViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 123 | View root=inflater.inflate(R.layout.image,parent,false); 124 | return new ImageViewHolder(root); 125 | } 126 | 127 | @Override 128 | public void onBindViewHolder(ImageViewHolder holder, int position) { 129 | holder.onBindData(); 130 | } 131 | 132 | @Override 133 | public int getItemCount() { 134 | return Integer.MAX_VALUE; 135 | } 136 | } 137 | 138 | } 139 | -------------------------------------------------------------------------------- /app/src/main/java/com/vpaliy/vasya/fab_toolbar_example/utils/MarginDecoration.java: -------------------------------------------------------------------------------- 1 | package com.vpaliy.vasya.fab_toolbar_example.utils; 2 | 3 | import android.content.Context; 4 | import android.graphics.Rect; 5 | import android.support.v7.widget.RecyclerView; 6 | import android.view.View; 7 | 8 | import com.vpaliy.vasya.fab_toolbar_example.R; 9 | 10 | 11 | public class MarginDecoration extends RecyclerView.ItemDecoration { 12 | private int margin; 13 | 14 | public MarginDecoration(Context context) { 15 | margin = context.getResources().getDimensionPixelSize(R.dimen.item_margin); 16 | } 17 | 18 | @Override 19 | public void getItemOffsets( 20 | Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { 21 | outRect.set(margin, margin, margin, margin); 22 | } 23 | } -------------------------------------------------------------------------------- /app/src/main/java/com/vpaliy/vasya/fab_toolbar_example/utils/SquareImage.java: -------------------------------------------------------------------------------- 1 | package com.vpaliy.vasya.fab_toolbar_example.utils; 2 | 3 | import android.content.Context; 4 | import android.support.v7.widget.AppCompatImageView; 5 | import android.util.AttributeSet; 6 | 7 | public class SquareImage extends AppCompatImageView { 8 | 9 | public SquareImage(Context context, AttributeSet attrs) { 10 | super(context, attrs); 11 | } 12 | 13 | public SquareImage(Context context) { 14 | super(context); 15 | } 16 | 17 | public SquareImage(Context context, AttributeSet attr, int defStyle) { 18 | super(context, attr, defStyle); 19 | } 20 | 21 | @Override 22 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { 23 | setMeasuredDimension(widthMeasureSpec, widthMeasureSpec); 24 | } 25 | } -------------------------------------------------------------------------------- /app/src/main/res/10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/10.jpg -------------------------------------------------------------------------------- /app/src/main/res/11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/11.jpg -------------------------------------------------------------------------------- /app/src/main/res/12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/12.jpg -------------------------------------------------------------------------------- /app/src/main/res/13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/13.jpg -------------------------------------------------------------------------------- /app/src/main/res/14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/14.jpg -------------------------------------------------------------------------------- /app/src/main/res/15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/15.jpg -------------------------------------------------------------------------------- /app/src/main/res/16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/16.jpg -------------------------------------------------------------------------------- /app/src/main/res/17.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/17.jpg -------------------------------------------------------------------------------- /app/src/main/res/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/4.jpg -------------------------------------------------------------------------------- /app/src/main/res/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/5.jpg -------------------------------------------------------------------------------- /app/src/main/res/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/6.jpg -------------------------------------------------------------------------------- /app/src/main/res/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/7.jpg -------------------------------------------------------------------------------- /app/src/main/res/8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/8.jpg -------------------------------------------------------------------------------- /app/src/main/res/9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/9.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-hdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-hdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-hdpi/ic_arrow_back_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-hdpi/ic_arrow_back_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-hdpi/ic_chat_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-hdpi/ic_chat_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-hdpi/ic_clear_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-hdpi/ic_clear_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-hdpi/ic_content_copy_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-hdpi/ic_content_copy_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-hdpi/ic_create_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-hdpi/ic_create_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-hdpi/ic_done_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-hdpi/ic_done_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-hdpi/ic_email_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-hdpi/ic_email_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-ldrtl-hdpi/ic_arrow_back_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-ldrtl-hdpi/ic_arrow_back_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-ldrtl-hdpi/ic_content_copy_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-ldrtl-hdpi/ic_content_copy_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-ldrtl-mdpi/ic_arrow_back_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-ldrtl-mdpi/ic_arrow_back_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-ldrtl-mdpi/ic_content_copy_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-ldrtl-mdpi/ic_content_copy_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-ldrtl-xhdpi/ic_arrow_back_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-ldrtl-xhdpi/ic_arrow_back_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-ldrtl-xhdpi/ic_content_copy_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-ldrtl-xhdpi/ic_content_copy_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-ldrtl-xxhdpi/ic_arrow_back_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-ldrtl-xxhdpi/ic_arrow_back_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-ldrtl-xxhdpi/ic_content_copy_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-ldrtl-xxhdpi/ic_content_copy_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-ldrtl-xxxhdpi/ic_arrow_back_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-ldrtl-xxxhdpi/ic_arrow_back_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-ldrtl-xxxhdpi/ic_content_copy_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-ldrtl-xxxhdpi/ic_content_copy_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-mdpi/ic_content_copy_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-mdpi/ic_content_copy_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-mdpi/ic_create_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-mdpi/ic_create_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xhdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xhdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xhdpi/ic_arrow_back_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xhdpi/ic_arrow_back_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xhdpi/ic_chat_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xhdpi/ic_chat_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xhdpi/ic_clear_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xhdpi/ic_clear_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xhdpi/ic_content_copy_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xhdpi/ic_content_copy_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xhdpi/ic_create_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xhdpi/ic_create_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xhdpi/ic_done_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xhdpi/ic_done_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xhdpi/ic_email_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xhdpi/ic_email_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxhdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxhdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxhdpi/ic_arrow_back_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxhdpi/ic_arrow_back_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxhdpi/ic_chat_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxhdpi/ic_chat_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxhdpi/ic_clear_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxhdpi/ic_clear_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxhdpi/ic_content_copy_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxhdpi/ic_content_copy_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxhdpi/ic_create_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxhdpi/ic_create_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxhdpi/ic_done_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxhdpi/ic_done_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxhdpi/ic_email_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxhdpi/ic_email_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxxhdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxxhdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxxhdpi/ic_arrow_back_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxxhdpi/ic_arrow_back_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxxhdpi/ic_chat_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxxhdpi/ic_chat_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxxhdpi/ic_clear_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxxhdpi/ic_clear_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxxhdpi/ic_content_copy_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxxhdpi/ic_content_copy_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxxhdpi/ic_create_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxxhdpi/ic_create_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxxhdpi/ic_done_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxxhdpi/ic_done_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawable-xxxhdpi/ic_email_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/drawable-xxxhdpi/ic_email_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/eleven.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/eleven.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/facebook.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/fifteen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/fifteen.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/five.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/five.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/four.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/four.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/fourteen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/fourteen.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/gmail.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/location.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/message.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/seven.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/seven.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/seventeen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/seventeen.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/share.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/six.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/six.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/sixteen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/sixteen.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/ten.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/ten.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/thirt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/thirt.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/three.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/three.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/twelve.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/twelve.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/twitter.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/two.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/drawable/two.jpg -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 15 | 16 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /app/src/main/res/layout/image.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #fafafa 4 | #e0e0e0 5 | #03a9f4 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 2dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Example 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.3.2' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /expandable-button/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /expandable-button/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.2" 6 | 7 | defaultConfig { 8 | minSdkVersion 14 9 | targetSdkVersion 25 10 | versionCode 1 11 | versionName "1.0" 12 | 13 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 14 | 15 | } 16 | buildTypes { 17 | release { 18 | minifyEnabled false 19 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 20 | } 21 | } 22 | } 23 | 24 | dependencies { 25 | compile 'com.android.support:appcompat-v7:25.3.1' 26 | compile 'com.android.support:design:25.3.1' 27 | } 28 | -------------------------------------------------------------------------------- /expandable-button/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/vpaliy/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /expandable-button/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /expandable-button/src/main/java/com/popularmovies/vpaliy/bottomtoolbar/ButtonItem.java: -------------------------------------------------------------------------------- 1 | package com.popularmovies.vpaliy.bottomtoolbar; 2 | 3 | 4 | import android.content.Context; 5 | import android.graphics.Bitmap; 6 | import android.graphics.drawable.BitmapDrawable; 7 | import android.graphics.drawable.Drawable; 8 | import android.support.v7.widget.AppCompatImageButton; 9 | 10 | import android.support.annotation.DrawableRes; 11 | import android.support.annotation.NonNull; 12 | 13 | public class ButtonItem extends AppCompatImageButton{ 14 | 15 | 16 | public ButtonItem(@NonNull Context context) { 17 | super(context); 18 | } 19 | 20 | public ButtonItem(@NonNull Builder builder){ 21 | super(builder.context); 22 | setOnClickListener(builder.listener); 23 | if(builder.resourceId!=-1) { 24 | setImage(builder.resourceId); 25 | }else if(builder.drawable!=null){ 26 | setImage(builder.drawable); 27 | } 28 | } 29 | 30 | 31 | public ButtonItem setImage(@DrawableRes int resource){ 32 | setImageResource(resource); 33 | return this; 34 | } 35 | 36 | public ButtonItem setImage(@NonNull Drawable drawable){ 37 | setImageDrawable(drawable); 38 | return this; 39 | } 40 | 41 | public ButtonItem setImage(@NonNull Bitmap bitmap){ 42 | setImageBitmap(bitmap); 43 | return this; 44 | } 45 | 46 | public ButtonItem setClickListener(OnClickListener onClickListener){ 47 | setOnClickListener(onClickListener); 48 | return this; 49 | } 50 | 51 | 52 | public static class Builder { 53 | 54 | @DrawableRes 55 | private int resourceId=-1; 56 | private Drawable drawable; 57 | private OnClickListener listener; 58 | private Context context; 59 | 60 | public Builder(Context context){ 61 | this.context=context; 62 | } 63 | 64 | public Builder setImageResource(@DrawableRes int resourceId){ 65 | this.resourceId=resourceId; 66 | return this; 67 | } 68 | 69 | public Builder setImageDrawable(@NonNull Drawable drawable){ 70 | this.drawable=drawable; 71 | return this; 72 | } 73 | 74 | public Builder setImageBitmap(@NonNull Bitmap bitmap){ 75 | drawable=new BitmapDrawable(bitmap); 76 | return this; 77 | } 78 | 79 | public Builder setClickListener(OnClickListener onClickListener){ 80 | this.listener=onClickListener; 81 | return this; 82 | } 83 | 84 | public ButtonItem build(){ 85 | return build(this); 86 | } 87 | 88 | public static ButtonItem build(@NonNull Builder builder){ 89 | return new ButtonItem(builder); 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /expandable-button/src/main/java/com/popularmovies/vpaliy/bottomtoolbar/ExpandAnimationAdapterListener.java: -------------------------------------------------------------------------------- 1 | package com.popularmovies.vpaliy.bottomtoolbar; 2 | 3 | import java.util.List; 4 | 5 | public class ExpandAnimationAdapterListener implements ExpandAnimationListener { 6 | 7 | @Override 8 | public void beforeButtonAnimation(List buttons) { 9 | 10 | } 11 | 12 | @Override 13 | public void afterButtonAnimation(List buttons) { 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /expandable-button/src/main/java/com/popularmovies/vpaliy/bottomtoolbar/ExpandAnimationListener.java: -------------------------------------------------------------------------------- 1 | package com.popularmovies.vpaliy.bottomtoolbar; 2 | 3 | 4 | import java.util.List; 5 | 6 | public interface ExpandAnimationListener { 7 | void beforeButtonAnimation(List buttons); 8 | void afterButtonAnimation(List buttons); 9 | 10 | } 11 | -------------------------------------------------------------------------------- /expandable-button/src/main/java/com/popularmovies/vpaliy/bottomtoolbar/ExpandableButtonView.java: -------------------------------------------------------------------------------- 1 | package com.popularmovies.vpaliy.bottomtoolbar; 2 | 3 | /** 4 | * Vasyl Paliy 2017 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import android.animation.Animator; 19 | import android.animation.AnimatorListenerAdapter; 20 | import android.animation.AnimatorSet; 21 | import android.animation.ObjectAnimator; 22 | import android.content.Context; 23 | import android.content.res.ColorStateList; 24 | import android.content.res.TypedArray; 25 | import android.graphics.Color; 26 | import android.graphics.Rect; 27 | import android.graphics.drawable.Drawable; 28 | import android.os.Build; 29 | import android.support.design.widget.FloatingActionButton; 30 | import android.util.AttributeSet; 31 | import android.view.Gravity; 32 | import android.view.View; 33 | import android.view.ViewGroup; 34 | import android.view.ViewTreeObserver; 35 | import android.view.animation.DecelerateInterpolator; 36 | import android.widget.FrameLayout; 37 | import android.widget.LinearLayout; 38 | import com.popularmovies.vpaliy.bottomtoolbar.core.AnimatorPath; 39 | import com.popularmovies.vpaliy.bottomtoolbar.core.PathEvaluator; 40 | import com.popularmovies.vpaliy.bottomtoolbar.core.PathPoint; 41 | import java.util.LinkedList; 42 | import java.util.List; 43 | 44 | import android.support.annotation.AttrRes; 45 | import android.support.annotation.NonNull; 46 | import android.support.annotation.Nullable; 47 | import android.support.annotation.StyleRes; 48 | import android.annotation.TargetApi; 49 | 50 | import static com.popularmovies.vpaliy.bottomtoolbar.ExpandableButtonView.State.FINISHED; 51 | import static com.popularmovies.vpaliy.bottomtoolbar.ExpandableButtonView.State.RUNNING; 52 | 53 | 54 | public class ExpandableButtonView extends FrameLayout{ 55 | 56 | 57 | private FloatingActionButton actionButton; 58 | private LinearLayout toolbarLayout; 59 | 60 | private List itemList=new LinkedList<>(); 61 | private List wrappedItems=new LinkedList<>(); 62 | private List listenerList; 63 | 64 | private final int DEFAULT_MARGIN=-1; 65 | private final long ANIMATION_DELAY=50; 66 | private final long ANIMATION_DURATION=300; 67 | 68 | private int rightMargin; 69 | private int bottomMargin; 70 | private int topMargin; 71 | private int leftMargin; 72 | 73 | private State state; 74 | private long duration=ANIMATION_DURATION; 75 | private long buttonAnimationDelay=ANIMATION_DELAY; 76 | private long reverseButtonDelay=ANIMATION_DELAY; 77 | private long reverseDuration=ANIMATION_DURATION; 78 | 79 | private ObjectAnimator actionButtonAnimator; 80 | private Drawable fabDrawable; 81 | 82 | public enum State { 83 | IDLE,RUNNING,FINISHED 84 | } 85 | 86 | public ExpandableButtonView(@NonNull Context context) { 87 | super(context); 88 | init(context); 89 | } 90 | 91 | public ExpandableButtonView(@NonNull Context context, 92 | @Nullable AttributeSet attrs) { 93 | this(context, attrs, 0); 94 | } 95 | 96 | public ExpandableButtonView(@NonNull Context context, 97 | @Nullable AttributeSet attrs, 98 | @AttrRes int defStyleAttr) { 99 | super(context, attrs, defStyleAttr); 100 | init(context); 101 | initAttrs(attrs); 102 | } 103 | 104 | @TargetApi(Build.VERSION_CODES.LOLLIPOP) 105 | public ExpandableButtonView(@NonNull Context context, @Nullable AttributeSet attrs, 106 | @AttrRes int defStyleAttr, @StyleRes int defStyleRes) { 107 | super(context, attrs, defStyleAttr, defStyleRes); 108 | init(context); 109 | initAttrs(attrs); 110 | } 111 | 112 | private void initAttrs(@Nullable AttributeSet attrs) { 113 | if (attrs == null) 114 | return; 115 | 116 | float density = getResources().getDisplayMetrics().density; 117 | TypedArray array = getContext().obtainStyledAttributes(attrs, 118 | R.styleable.ExpandableButtonView); 119 | 120 | for(int index=0;index0){ 168 | this.reverseDuration=duration; 169 | }else{ 170 | reverseDuration=ANIMATION_DURATION; 171 | } 172 | } 173 | 174 | 175 | 176 | private void onButtonClick(){ 177 | setOffContainerMargin(); 178 | final Rect oldButtonLocation=new Rect(); 179 | final float oldContainerTop=getTop(); 180 | actionButton.getGlobalVisibleRect(oldButtonLocation); 181 | 182 | getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() { 183 | @Override 184 | public boolean onPreDraw() { 185 | getViewTreeObserver().removeOnPreDrawListener(this); 186 | 187 | final float SCALE_X=2*((float)(getWidth())/(actionButton.getWidth())); 188 | final float SCALE_Y=4f*((float)(getHeight())/(actionButton.getHeight())); 189 | 190 | final Rect currentContainerLocation=new Rect(); 191 | final Rect currentButtonLocation=new Rect(); 192 | actionButton.getGlobalVisibleRect(currentButtonLocation); 193 | getGlobalVisibleRect(currentContainerLocation); 194 | 195 | final float deltaX=currentButtonLocation.left-oldButtonLocation.left; 196 | final float deltaY=currentButtonLocation.top-oldButtonLocation.top-bottomMargin; 197 | 198 | actionButton.animate() 199 | .translationY(-deltaY) 200 | .translationX(-deltaX) 201 | .setDuration(0) 202 | .setListener(new AnimatorListenerAdapter() { 203 | 204 | @Override 205 | public void onAnimationStart(Animator animation) { 206 | super.onAnimationStart(animation); 207 | animate().setDuration(0) 208 | .translationY(-(getTop()-oldContainerTop)).start(); 209 | } 210 | 211 | @Override 212 | public void onAnimationEnd(Animator animation) { 213 | super.onAnimationEnd(animation); 214 | 215 | actionButton.setImageDrawable(null); 216 | 217 | final AnimatorPath animatorPath=new AnimatorPath(); 218 | animatorPath.moveTo(-deltaX,-deltaY); 219 | animatorPath.curveTo(-deltaX,actionButton.getTranslationY(), 220 | -deltaX-actionButton.getWidth()/2f,0, 221 | actionButton.getTranslationX()-actionButton.getWidth(),0); 222 | 223 | 224 | actionButtonAnimator=ObjectAnimator.ofObject(ExpandableButtonView.this,"Location", 225 | new PathEvaluator(),animatorPath.getPoints().toArray()); 226 | 227 | ObjectAnimator containerDownAnimator=ObjectAnimator.ofFloat(ExpandableButtonView.this, View.TRANSLATION_Y,0f); 228 | 229 | AnimatorSet downAnimatorSet=new AnimatorSet(); 230 | downAnimatorSet.setDuration(duration/2); 231 | downAnimatorSet.setInterpolator(new DecelerateInterpolator()); 232 | downAnimatorSet.playTogether(actionButtonAnimator,containerDownAnimator); 233 | 234 | downAnimatorSet.addListener(new AnimatorListenerAdapter() { 235 | @Override 236 | public void onAnimationEnd(Animator animation) { 237 | super.onAnimationEnd(animation); 238 | state=RUNNING; 239 | actionButton.animate() 240 | .setListener(HOOK_UP_TOOLBAR).setDuration(2*duration) 241 | .setInterpolator(new DecelerateInterpolator()) 242 | .scaleX(SCALE_X).scaleY(SCALE_Y).start(); 243 | 244 | } 245 | }); 246 | downAnimatorSet.start(); 247 | } 248 | 249 | }).start(); 250 | 251 | return true; 252 | } 253 | }); 254 | } 255 | 256 | private void setOffContainerMargin(){ 257 | if(getLayoutParams() instanceof MarginLayoutParams){ 258 | 259 | MarginLayoutParams params=MarginLayoutParams.class.cast(getLayoutParams()); 260 | params.width=ViewGroup.LayoutParams.MATCH_PARENT; 261 | this.rightMargin=checkAndAssign(params.rightMargin); 262 | this.bottomMargin=checkAndAssign(params.bottomMargin); 263 | this.topMargin=checkAndAssign(params.topMargin); 264 | this.leftMargin= checkAndAssign(params.leftMargin); 265 | 266 | params.bottomMargin=0; 267 | params.leftMargin=0; 268 | params.topMargin=0; 269 | params.rightMargin=0; 270 | 271 | setLayoutParams(params); 272 | } 273 | } 274 | 275 | public void setLocation(PathPoint point) { 276 | actionButton.setTranslationY(point.mY); 277 | actionButton.setTranslationX(point.mX); 278 | } 279 | 280 | public void addListener(ExpandAnimationListener listener){ 281 | if(listener!=null){ 282 | if(listenerList==null) listenerList=new LinkedList<>(); 283 | listenerList.add(listener); 284 | } 285 | } 286 | 287 | private int checkAndAssign(int margin){ 288 | switch (margin){ 289 | case DEFAULT_MARGIN: 290 | return 0; 291 | case 0: 292 | return DEFAULT_MARGIN; 293 | default: 294 | return margin; 295 | } 296 | } 297 | 298 | public void setButtonAnimationDelay(long buttonAnimationDelay) { 299 | if(buttonAnimationDelay>0) this.buttonAnimationDelay = buttonAnimationDelay; 300 | } 301 | 302 | public void setReverseButtonDelay(long reverseButtonDelay) { 303 | if(reverseButtonDelay>0) this.reverseButtonDelay = reverseButtonDelay; 304 | } 305 | 306 | public void addItem(ButtonItem...items){ 307 | for(ButtonItem item:items) { 308 | if(!itemList.contains(item)){ 309 | item.setScaleX(0); 310 | item.setScaleY(0); 311 | item.setBackgroundColor(Color.TRANSPARENT); 312 | LinearLayout layout=new LinearLayout(getContext()); 313 | itemList.add(item); 314 | layout.setGravity(Gravity.CENTER); 315 | layout.addView(item); 316 | wrappedItems.add(layout); 317 | } 318 | 319 | } 320 | 321 | } 322 | 323 | private void inflateToolbarLayout(){ 324 | addView(toolbarLayout, ViewGroup.LayoutParams.MATCH_PARENT,actionButton.getHeight()); 325 | for(View view:wrappedItems){ 326 | toolbarLayout.addView(view); 327 | LinearLayout.LayoutParams childParams= 328 | LinearLayout.LayoutParams.class.cast(view.getLayoutParams()); 329 | childParams.width=0; 330 | childParams.weight=1; 331 | view.setLayoutParams(childParams); 332 | } 333 | } 334 | 335 | 336 | 337 | private FrameLayout.LayoutParams getChildParams(View view){ 338 | return FrameLayout.LayoutParams.class.cast(view.getLayoutParams()); 339 | } 340 | 341 | public void removeBottomToolbar() { 342 | if(listenerList!=null) { 343 | for(int index=0;index0) { 481 | this.duration = duration; 482 | } 483 | } 484 | 485 | public void setState(State state) { 486 | this.state=state; 487 | } 488 | 489 | public State getState() { 490 | return state; 491 | } 492 | } 493 | -------------------------------------------------------------------------------- /expandable-button/src/main/java/com/popularmovies/vpaliy/bottomtoolbar/core/AnimatorPath.java: -------------------------------------------------------------------------------- 1 | package com.popularmovies.vpaliy.bottomtoolbar.core; 2 | 3 | /* 4 | * Copyright (C) 2013 The Android Open Source Project 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | 20 | import java.util.ArrayList; 21 | import java.util.Collection; 22 | 23 | /** 24 | * A simple Path object that holds information about the points along 25 | * a path. The API allows you to specify a move location (which essentially 26 | * jumps from the previous point in the path to the new one), a line location 27 | * (which creates a line segment from the previous location) and a curve 28 | * location (which creates a B�zier curve from the previous location). 29 | */ 30 | public class AnimatorPath { 31 | 32 | // The points in the path 33 | ArrayList mPoints = new ArrayList(); 34 | 35 | 36 | /** 37 | * Move from the current path point to the new one 38 | * specified by x and y. This will create a discontinuity if this point is 39 | * neither the first point in the path nor the same as the previous point 40 | * in the path. 41 | */ 42 | public void moveTo(float x, float y) { 43 | mPoints.add(PathPoint.moveTo(x, y)); 44 | } 45 | 46 | /** 47 | * Create a straight line from the current path point to the new one 48 | * specified by x and y. 49 | */ 50 | public void lineTo(float x, float y) { 51 | mPoints.add(PathPoint.lineTo(x, y)); 52 | } 53 | 54 | /** 55 | * Create a quadratic B�zier curve from the current path point to the new one 56 | * specified by x and y. The curve uses the current path location as the first anchor 57 | * point, the control points (c0X, c0Y) and (c1X, c1Y), and (x, y) as the end anchor. 58 | */ 59 | public void curveTo(float c0X, float c0Y, float c1X, float c1Y, float x, float y) { 60 | mPoints.add(PathPoint.curveTo(c0X, c0Y, c1X, c1Y, x, y)); 61 | } 62 | 63 | /** 64 | * Returns a Collection of PathPoint objects that describe all points in the path. 65 | */ 66 | public Collection getPoints() { 67 | return mPoints; 68 | } 69 | } -------------------------------------------------------------------------------- /expandable-button/src/main/java/com/popularmovies/vpaliy/bottomtoolbar/core/PathEvaluator.java: -------------------------------------------------------------------------------- 1 | package com.popularmovies.vpaliy.bottomtoolbar.core; 2 | 3 | /* 4 | * Copyright (C) 2013 The Android Open Source Project 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | import android.animation.TypeEvaluator; 20 | 21 | /** 22 | * This evaluator interpolates between two PathPoint values given the value t, the 23 | * proportion traveled between those points. The value of the interpolation depends 24 | * on the operation specified by the endValue (the operation for the interval between 25 | * PathPoints is always specified by the end point of that interval). 26 | */ 27 | public class PathEvaluator implements TypeEvaluator { 28 | @Override 29 | public PathPoint evaluate(float t, PathPoint startValue, PathPoint endValue) { 30 | float x, y; 31 | 32 | if (endValue.mOperation == PathPoint.CURVE) { 33 | float oneMinusT = 1 - t; 34 | x = oneMinusT * oneMinusT * oneMinusT * startValue.mX + 35 | 3 * oneMinusT * oneMinusT * t * endValue.mControl0X + 36 | 3 * oneMinusT * t * t * endValue.mControl1X + 37 | t * t * t * endValue.mX; 38 | y = oneMinusT * oneMinusT * oneMinusT * startValue.mY + 39 | 3 * oneMinusT * oneMinusT * t * endValue.mControl0Y + 40 | 3 * oneMinusT * t * t * endValue.mControl1Y + 41 | t * t * t * endValue.mY; 42 | } else if (endValue.mOperation == PathPoint.LINE) { 43 | x = startValue.mX + t * (endValue.mX - startValue.mX); 44 | y = startValue.mY + t * (endValue.mY - startValue.mY); 45 | } else { 46 | x = endValue.mX; 47 | y = endValue.mY; 48 | } 49 | return PathPoint.moveTo(x, y); 50 | } 51 | } -------------------------------------------------------------------------------- /expandable-button/src/main/java/com/popularmovies/vpaliy/bottomtoolbar/core/PathPoint.java: -------------------------------------------------------------------------------- 1 | package com.popularmovies.vpaliy.bottomtoolbar.core; 2 | /* 3 | * Copyright (C) 2013 The Android Open Source Project 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | /** 18 | * A class that holds information about a location and how the path should get to that 19 | * location from the previous path location (if any). Any PathPoint holds the information for 20 | * its location as well as the instructions on how to traverse the preceding interval from the 21 | * previous location. 22 | */ 23 | public class PathPoint { 24 | 25 | /** 26 | * The possible path operations that describe how to move from a preceding PathPoint to the 27 | * location described by this PathPoint. 28 | */ 29 | public static final int MOVE = 0; 30 | public static final int LINE = 1; 31 | public static final int CURVE = 2; 32 | 33 | /** 34 | * The location of this PathPoint 35 | */ 36 | public float mX, mY; 37 | 38 | /** 39 | * The first control point, if any, for a PathPoint of type CURVE 40 | */ 41 | public float mControl0X, mControl0Y; 42 | 43 | /** 44 | * The second control point, if any, for a PathPoint of type CURVE 45 | */ 46 | public float mControl1X, mControl1Y; 47 | 48 | /** 49 | * The motion described by the path to get from the previous PathPoint in an AnimatorPath 50 | * to the location of this PathPoint. This can be one of MOVE, LINE, or CURVE. 51 | */ 52 | public int mOperation; 53 | 54 | 55 | 56 | /** 57 | * Line/Move constructor 58 | */ 59 | private PathPoint(int operation, float x, float y) { 60 | mOperation = operation; 61 | mX = x; 62 | mY = y; 63 | } 64 | 65 | /** 66 | * Curve constructor 67 | */ 68 | private PathPoint(float c0X, float c0Y, float c1X, float c1Y, float x, float y) { 69 | mControl0X = c0X; 70 | mControl0Y = c0Y; 71 | mControl1X = c1X; 72 | mControl1Y = c1Y; 73 | mX = x; 74 | mY = y; 75 | mOperation = CURVE; 76 | } 77 | 78 | /** 79 | * Constructs and returns a PathPoint object that describes a line to the given xy location. 80 | */ 81 | public static PathPoint lineTo(float x, float y) { 82 | return new PathPoint(LINE, x, y); 83 | } 84 | 85 | /** 86 | * Constructs and returns a PathPoint object that describes a curve to the given xy location 87 | * with the control points at c0 and c1. 88 | */ 89 | public static PathPoint curveTo(float c0X, float c0Y, float c1X, float c1Y, float x, float y) { 90 | return new PathPoint(c0X, c0Y, c1X, c1Y, x, y); 91 | } 92 | 93 | /** 94 | * Constructs and returns a PathPoint object that describes a discontinuous move to the given 95 | * xy location. 96 | */ 97 | public static PathPoint moveTo(float x, float y) { 98 | return new PathPoint(MOVE, x, y); 99 | } 100 | } -------------------------------------------------------------------------------- /expandable-button/src/main/java/com/popularmovies/vpaliy/bottomtoolbar/scroller/ScrollListener.java: -------------------------------------------------------------------------------- 1 | package com.popularmovies.vpaliy.bottomtoolbar.scroller; 2 | 3 | /** Vasyl Paliy 2017 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import android.support.annotation.NonNull; 18 | import android.support.v7.widget.RecyclerView; 19 | import android.view.animation.AccelerateInterpolator; 20 | import android.view.animation.DecelerateInterpolator; 21 | 22 | import com.popularmovies.vpaliy.bottomtoolbar.ExpandableButtonView.State; 23 | import com.popularmovies.vpaliy.bottomtoolbar.ExpandableButtonView; 24 | 25 | public class ScrollListener extends RecyclerView.OnScrollListener { 26 | 27 | private float offsetY=0.f; 28 | private boolean hasStopped=true; 29 | 30 | private static final long LIMIT=150L; 31 | private static final long FADE_IN_OUT_DURATION=200L; 32 | 33 | private ExpandableButtonView expandableButton; 34 | private long duration=FADE_IN_OUT_DURATION; 35 | 36 | public ScrollListener(@NonNull ExpandableButtonView expandableButton) { 37 | this.expandableButton = expandableButton; 38 | } 39 | 40 | @Override 41 | public void onScrollStateChanged(RecyclerView recyclerView, final int newState) { 42 | super.onScrollStateChanged(recyclerView, newState); 43 | if (RecyclerView.SCROLL_STATE_IDLE == newState || RecyclerView.SCROLL_STATE_SETTLING == newState) { 44 | if (Math.abs(offsetY) >= LIMIT) { 45 | if (expandableButton.getState() == ExpandableButtonView.State.FINISHED) { 46 | expandableButton.removeBottomToolbar(); 47 | expandableButton.setState(State.IDLE); 48 | hasStopped = false; 49 | } else if (hasStopped && expandableButton.getState() == State.IDLE) { 50 | if (expandableButton.getScaleX() > 0f) { 51 | expandableButton.setClickable(false); 52 | expandableButton.animate().setInterpolator(new AccelerateInterpolator()) 53 | .scaleY(0.f).scaleX(0.f).setDuration(FADE_IN_OUT_DURATION).start(); 54 | } 55 | } 56 | 57 | if (!hasStopped) { 58 | hasStopped = (newState == RecyclerView.SCROLL_STATE_IDLE) 59 | || (Math.abs(offsetY) >= 8 * LIMIT); 60 | } 61 | offsetY = 0; 62 | } 63 | 64 | if (newState == RecyclerView.SCROLL_STATE_IDLE) { 65 | if (expandableButton.getScaleX() < 1.f) { 66 | expandableButton.setClickable(true); 67 | expandableButton.animate().scaleX(1.f).setListener(null). 68 | setInterpolator(new DecelerateInterpolator()).scaleY(1.f). 69 | setDuration(FADE_IN_OUT_DURATION / 2).start(); 70 | } 71 | } 72 | } 73 | } 74 | 75 | public void setFadeInOutDuration(long duration){ 76 | if(duration>0){ 77 | this.duration=duration; 78 | }else{ 79 | this.duration=FADE_IN_OUT_DURATION; 80 | } 81 | } 82 | 83 | 84 | @Override 85 | public void onScrolled(RecyclerView recyclerView, int dx, int dy) { 86 | offsetY+=dy; 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /expandable-button/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /expandable-button/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /expandable-button/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6dp 5 | 6dp 6 | 24dp 7 | 56dp 8 | 40dp 9 | 0.5dp 10 | -------------------------------------------------------------------------------- /expandable-button/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | bottomToolbar 3 | 4 | -------------------------------------------------------------------------------- /expandable-button/src/main/res/values/style.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 13 | 14 | -------------------------------------------------------------------------------- /gifs/ezgif.com-video-to-gif (1).gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/gifs/ezgif.com-video-to-gif (1).gif -------------------------------------------------------------------------------- /gifs/ezgif.com-video-to-gif (2).gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/gifs/ezgif.com-video-to-gif (2).gif -------------------------------------------------------------------------------- /gifs/ezgif.com-video-to-gif.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/gifs/ezgif.com-video-to-gif.gif -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpaliy/Expandable-Action-Button/7842fe06306b38431a406128ac443bf351aca171/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Apr 09 16:29:41 EDT 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip 7 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':expandable-button' 2 | --------------------------------------------------------------------------------