All Projects → mancj → Slideup Android

mancj / Slideup Android

Licence: mit
SlideUp is a small library that allows you to add sweet slide effect to any view.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Slideup Android

Appintro
Make a cool intro for your Android app.
Stars: ✭ 9,989 (+508.71%)
Mutual labels:  material-design, slide
Shotang App
The New Home Screen is designed in a modular way with the core focus on product discovery. Search, Deals, Products everything has been brought upfront. The hamburger menu has been replaced with a bottom navigation bar for easy reachability. On the tech side too, this design allows us to run new deals and other experiments in an agile manner which wasn't possible in the previous version.
Stars: ✭ 132 (-91.96%)
Mutual labels:  material-design
Material.avalonia
Material design in AvaloniaUI
Stars: ✭ 126 (-92.32%)
Mutual labels:  material-design
Iterm2 Material Design
A theme / color scheme for iTerm2 based on Google's Material Design Color Palette
Stars: ✭ 1,741 (+6.09%)
Mutual labels:  material-design
Light Push
轻量级推送服务和实时在线监控平台,同时用于开发即时通信系统,基于node的socket.io,支持web、android、ios客户端,支持移动端离线推送,可进行分布式部署
Stars: ✭ 128 (-92.2%)
Mutual labels:  material-design
Framework7 React
Build full featured iOS & Android apps using Framework7 & React
Stars: ✭ 130 (-92.08%)
Mutual labels:  material-design
Vectoriconsroundup
A comparison between popular vectorial icon fonts
Stars: ✭ 126 (-92.32%)
Mutual labels:  material-design
Dynamic Toasts
Custom toasts with color and icon for Android.
Stars: ✭ 132 (-91.96%)
Mutual labels:  material-design
Splitties
A collection of hand-crafted extensions for your Kotlin projects.
Stars: ✭ 1,945 (+18.53%)
Mutual labels:  material-design
Material design icons flutter
The Material Design Icons (https://materialdesignicons.com/) Icon pack available as set of Flutter Icons.
Stars: ✭ 130 (-92.08%)
Mutual labels:  material-design
Drooltip.js
🔥 💦 Minimalistic, powerful and extensible Vanilla JS tooltip library
Stars: ✭ 129 (-92.14%)
Mutual labels:  material-design
Jtmaterialspinner
An iOS material design spinner view
Stars: ✭ 127 (-92.26%)
Mutual labels:  material-design
Android Icon Pack
Material Open Source's Android Icon Pack Running on Adian Follestad's Polar Dashboard
Stars: ✭ 130 (-92.08%)
Mutual labels:  material-design
Todayx
🌈Flutter App:🎊「今日份的X」(每天推荐一个:图片、诗歌、名言、音乐、乐评、高等数学、两种配色、化学方程式、Github Repo、知乎问题、文章)
Stars: ✭ 128 (-92.2%)
Mutual labels:  material-design
Rmdi
React Material Design Icons – built with Pixo, Styled Components, and Styled System
Stars: ✭ 132 (-91.96%)
Mutual labels:  material-design
Photonoter
📓Material Design风格的开源照片笔记。(MVP+Dagger2+RxJava+AspectJ+Dex处理)
Stars: ✭ 1,592 (-2.99%)
Mutual labels:  material-design
Devextreme Reactive
Business React components for Bootstrap and Material-UI
Stars: ✭ 1,800 (+9.69%)
Mutual labels:  material-design
Verticalslidefragment
vertical slide to switch to the next fragment page, looks like vertical viewpager
Stars: ✭ 1,615 (-1.58%)
Mutual labels:  slide
Navbar
增强版BottomNavigationView
Stars: ✭ 132 (-91.96%)
Mutual labels:  material-design
Motion
A library used to create beautiful animations and transitions for iOS.
Stars: ✭ 1,726 (+5.18%)
Mutual labels:  material-design

NOT MAINTAINED ANYMORE

SlideUp-Android

SlideUp is a small library that allows you to add sweet slide effect to any view. Slide your views up, down, left or right with SlideUp!

Release

Example gif 1

Example gif 2


Usage

Get SlideUp library

Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:

allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}

Add the dependency

dependencies {
    compile "com.github.mancj:SlideUp-Android:$current_version"
    compile 'ru.ztrap:RxSlideUp2:2.x.x' //optional, for reactive listeners based on RxJava-2
    compile 'ru.ztrap:RxSlideUp:1.x.x' //optional, for reactive listeners based on RxJava
}

To add the SlideUp into your project, follow these three simple steps:

Step 1:

create any type of layout

<LinearLayout
  android:id="@+id/slideView"
  android:layout_width="match_parent"
  android:layout_height="match_parent"/>

Step 2:

Find that view in your activity/fragment

View slideView = findViewById(R.id.slideView);

Step 3:

Create a SlideUp object and pass in your view

slideUp = new SlideUpBuilder(slideView)
                .withStartState(SlideUp.State.HIDDEN)
                .withStartGravity(Gravity.BOTTOM)

                //.withSlideFromOtherView(anotherView)
                //.withGesturesEnabled()
                //.withHideSoftInputWhenDisplayed()
                //.withInterpolator()
                //.withAutoSlideDuration()
                //.withLoggingEnabled()
                //.withTouchableAreaPx()
                //.withTouchableAreaDp()
                //.withListeners()
                //.withSavedState()
                .build();

Enjoy!

Reactive extensions

  • RxSlideUp - Listening events in reactive style

Advanced example

SlideUpViewActivity.java

rootView = findViewById(R.id.rootView);
slideView = findViewById(R.id.slideView);
dim = findViewById(R.id.dim);
fab = (FloatingActionButton) findViewById(R.id.fab);


slideUp = new SlideUpBuilder(slideView)
         .withListeners(new SlideUp.Listener.Events() {
             @Override
             public void onSlide(float percent) {
                 dim.setAlpha(1 - (percent / 100));
                 if (percent < 100 && fab.isShown()) {
                    // slideUp started showing
                    fab.hide();
                 }
             }

             @Override
             public void onVisibilityChanged(int visibility) {
                 if (visibility == View.GONE){
                     fab.show();
                 }
             }
         })
         .withStartGravity(Gravity.TOP)
         .withLoggingEnabled(true)
         .withStartState(SlideUp.State.HIDDEN)
         .withSlideFromOtherView(rootView)
         .build();

fab.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {
        slideUp.show();
    }
});

The player is designed by Jauzee

Migration

Documentation

Changelog

Contract

Please let us know, if you use the library in your applications. We want to collect and publish this list.

License

MIT License

Copyright (c) 2018 Mansur

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].