Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Mgswipetablecell | 6,906 | 293 | a year ago | 32 | May 17, 2022 | 129 | mit | Objective-C | ||
An easy to use UITableViewCell subclass that allows to display swippable buttons with a variety of transitions. | ||||||||||
Material Sheet Fab | 1,547 | 86 | 5 years ago | 9 | December 31, 2015 | 15 | mit | Java | ||
Android library that provides the floating action button to sheet transition from Google's Material Design. | ||||||||||
Transitionbutton | 1,320 | 23 | a year ago | 7 | October 22, 2018 | 19 | mit | Swift | ||
UIButton sublass for loading and transition animation. | ||||||||||
Jthamburgerbutton | 361 | 5 | 8 years ago | 6 | April 25, 2015 | 1 | mit | Objective-C | ||
An animated hamburger button for iOS. | ||||||||||
Screenmanager | 352 | 10 months ago | 2 | mit | C# | |||||
Flexible way to manage screens with transitions for Unity | ||||||||||
Handorgel | 251 | 2 | 6 | a year ago | 23 | July 19, 2020 | 6 | mit | JavaScript | |
Accessible W3C conform accordion written in ES6. | ||||||||||
Framer Viewnavigationcontroller | 219 | 7 years ago | 3 | mit | CoffeeScript | |||||
A simple controller for FramerJS that allows you to transition between views with just a couple lines of code. | ||||||||||
Hamburgerbutton | 195 | 6 years ago | 2 | Objective-C | ||||||
LBHamburgerButton is an iOS control that displays 3 lines (hamburger) and other icon (back, close...) without using image. It has a beautiful, clean and smooth transition between 2 state like Google Material Design or "close button" of Paper app. | ||||||||||
Qzcirclesegue | 193 | 5 years ago | mit | Swift | ||||||
QZCircleSegue is written in Swift and it is a beatiful transition between circular-shapped buttons and your View Controller. | ||||||||||
Morpherings | 120 | a year ago | SCSS | |||||||
CSS Animations that make buttons morph into forms. |
Legacy
Original prototype Dribbble link
Sample project available in app directory
Not needed to add library dependency
ProgressButton using MotionLayout
Custom button with progress anim and transition to another activity/fragment
Better to use with AsyncTask or Handler() or RxJava doOnSuccess()
Add jitpack repo in your project.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add implementation in your app.gradle
dependencies {
implementation 'com.github.muramrr:ProgressButton:1.2'
}
<com.mmdev.progressbuttonlib.ProgressButton
android:layout_height="50dp"
android:layout_width="match_parent"
android:id="@+id/btn_done"
android:layout_margin="20dp"
app:backgroundColor="#2962FF"
app:progressColor="@android:color/holo_orange_light"
app:text="DONE!"
app:textColor="@android:color/black" />
Available attributes:
private ProgressButton pb_button;
...
pb_button = findViewById(R.id.btn_done);
pb_button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick (View v) {
pb_button.startAnim(); //start progress button loading
/**
* manual stop animation method
* you can handle it with Runnable()
* delay progress loading in Handler()
* or you can use it with AsyncTask class
* startAnim() in preExecute
* stopAnim() in postExecute
*/
new Handler().postDelayed(() -> pb_button.stopAnim(this::startSecondActivity), 760);
}
});
val progressButton = findViewById<ProgressButton>(R.id.btn_done)
progressButton.setOnClickListener {
progressButton.startAnim()
Handler().postDelayed({ progressButton.stopAnim { startMainActivity() }}, 2000)
}
disposables.add(signUp()
.observeOn(AndroidSchedulers.mainThread())
.doOnSubscribe { progressButton.startAnim() }
.doOnSuccess { progressButton.stopAnim { startMainActivity() } }
.subscribe({
//your code
},
{
Toast.makeText(this,"error",
Toast.LENGTH_SHORT).show()
}))
MIT License
Copyright (c) 2019 Andrii Kovalchuk
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.