All Projects → tizisdeepan → pulldownlayout

tizisdeepan / pulldownlayout

Licence: other
PullDownLayout is a small library that allows you to implement a view that can be dragged down your layout. PullDownLayout can also be used to implement Pull-To-Dismiss feature for your activities and fragments.

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to pulldownlayout

Longshadow
Add a long shadow on any Android View
Stars: ✭ 562 (+3412.5%)
Mutual labels:  view, layout
Kotlinanim
Create fluent animations in a kotlin way
Stars: ✭ 72 (+350%)
Mutual labels:  view, layout
Physicslayout
Android layout that simulates physics using JBox2D
Stars: ✭ 658 (+4012.5%)
Mutual labels:  view, layout
Scalinglayout
With Scaling Layout scale your layout on user interaction.
Stars: ✭ 3,276 (+20375%)
Mutual labels:  view, layout
Android Statefullayout
A custom Android ViewGroup to display different states of screen (CONTENT, PROGRESS, OFFLINE, EMPTY, etc.)
Stars: ✭ 140 (+775%)
Mutual labels:  view, layout
Bouncylayout
Make. It. Bounce.
Stars: ✭ 4,035 (+25118.75%)
Mutual labels:  view, layout
Readablebottombar
Yet another material bottom bar library for Android
Stars: ✭ 977 (+6006.25%)
Mutual labels:  view, layout
FastBanner
🔥快速轮播图,支持自定义布局和使用自有图片显示组件
Stars: ✭ 27 (+68.75%)
Mutual labels:  view, layout
Arclayout
With Arc Layout explore new styles and approaches on material design
Stars: ✭ 1,662 (+10287.5%)
Mutual labels:  view, layout
Bannerlayout
Support unlimited picture rotation BannerLayout, the minimum implementation of the code banner
Stars: ✭ 92 (+475%)
Mutual labels:  view, layout
Stevia
🍃 Concise Autolayout code
Stars: ✭ 3,182 (+19787.5%)
Mutual labels:  view, layout
Android 3d Layout
Wow effect, transform your layout into 3D views
Stars: ✭ 199 (+1143.75%)
Mutual labels:  view, layout
Stacks
⚡ Build React Native views blazingly fast.
Stars: ✭ 281 (+1656.25%)
Mutual labels:  view, layout
Mylinearlayout
MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITab…
Stars: ✭ 4,152 (+25850%)
Mutual labels:  view, layout
Shapeofview
Give a custom shape to any android view, Material Design 2 ready
Stars: ✭ 2,977 (+18506.25%)
Mutual labels:  view, layout
Androidlibs
🔥正在成为史上最全分类 Android 开源大全~~~~(长期更新 Star 一下吧)
Stars: ✭ 7,148 (+44575%)
Mutual labels:  view, layout
table-layout
Styleable plain-text table generator. Useful for formatting console output.
Stars: ✭ 18 (+12.5%)
Mutual labels:  view, layout
bubble-layout
An Android ViewGroup that displays avatar bubbles... similar to the chat bubbles on Facebook Messenger.
Stars: ✭ 46 (+187.5%)
Mutual labels:  view, layout
Kvconstraintkit
An Impressive Auto Layout DSL for iOS, tvOS & OSX. & It is written in pure swift.
Stars: ✭ 91 (+468.75%)
Mutual labels:  view, layout
Expansionpanel
Android - Expansion panels contain creation flows and allow lightweight editing of an element.
Stars: ✭ 1,984 (+12300%)
Mutual labels:  view, layout

PullDownLayout

License

Screenshot 2

What is Pull Down Layout?

PullDownLayout is a small library that allows you to implement a view that can be dragged down your layout. PullDownLayout can also be used to implement Pull-To-Dismiss feature for your activities and fragments.

Implementation

[1] In your app module gradle file

dependencies {
    implementation 'com.github.tizisdeepan:pulldownlayout:1.0.0'
}

[2] In your project level gradle file

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

[3] Use PullBackLayout in your layout.xml

<com.layout.pulldown.PullDownLayout
        android:id="@+id/pullDown"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
  <!--Your Views-->
</com.layout.pulldown.PullDownLayout>

[4] Set Callback for PullBackLayout in your Activity or Fragment

class FragmentClass: Fragment(), PullDownLayout.Callback {
    override fun onPullStart() {
    }

    override fun onPull(progress: Float) {
    }

    override fun onPullCancel() {
    }

    override fun onPullComplete() {
        (ctx as MainActivity).onBackPressed()
    }
    
    ...
    
    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        pullDown.setCallback(this)
    }
}

Note: Check out sample project for cool pull down transitions.

And that's it! You have now successfully implemented a cool PullDownLayout for your android project!

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].