Popularity
2.8
Stable
Activity
0.0
Stable
129
4
21

Programming language: Java
Tags: Button Widget    

SubmitDemo alternatives and similar packages

Based on the "Button Widget" category.
Alternatively, view SubmitDemo alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of SubmitDemo or a related project?

Add another 'Button Widget' Package

README

This is library project with a custom view that implements concept of Submit Button (https://dribbble.com/shots/1426764-Submit-Button?list=likes&offset=3) made by Colin Garven.

Demo

[](gifs/submitview.gif)

Usage

 <com.tuesda.submit.SubmitView
        android:layout_centerInParent="true"
        android:id="@+id/submit"
        android:layout_width="200dp"
        android:layout_height="200dp" />
mSubmit.setOnProgressStart(new SubmitView.OnProgressStart() {
            @Override
            public void progressStart() {
                // do something when progress start
            }
        });

        mSubmit.setOnProgressDone(new SubmitView.OnProgressDone() {
            @Override
            public void progressDone() {
                // do something when progress is done
            }
        });

public interface

函数名 作用
setBackColor(int color) 设置图标背景色,默认是绿色(0xff00cd97),上图Demo设置为蓝色(0xff0097cd)
setText(String str) 设置按钮名字,默认是Submit
reset() 将按钮重置到初始状态
setProgress(float progress) 设置正在执行工作的执行进程
isProgressDone() 正在执行工作是否完成
setOnProgressStart(OnProgressStart listener) 设置progress开始回调
setOnProgressDone(OnProgressDone listener) 设置progress完成回调