Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mbigflower/timedown


https://github.com/mbigflower/timedown

Last synced: about 7 hours ago
JSON representation

Awesome Lists containing this project

README

        

# TimeDown

base of textswitcher. You can use it easyly.

## Look
![](http://7xjizl.com1.z0.glb.clouddn.com/timedown.gif)

## Usage

### TextSwitcherView

**extand the TextSwitcher**

in xml

in java

TextSwitcherView textSwitcherView = (TextSwitcherView) findViewById(R.id.textSwitcherView);
textSwitcherView.setCurrentText("123 likes"); // init

textSwitcherView.setText("aim text");

### TimeDownView

**TextSwitcher + CountDownTimer**
you can add the time over listener in it ;

in xml

in java

timeDownView.init(123 * 1000, 1000)
.setOnTimeDownListener(new TimeDownView.OnTimeDownListener() {
@Override
public void onFinish() {
Log.i("MainActivity", "time is over");
}
});
timeDownView.start();

### TimeDownMinute

**TextSwitcher + CountDownTimer**

in xml

in java

timeDownMinute.init(321 * 1000);
timeDownMinute.start();

## TypedArray

xmlns:app="http://schemas.android.com/apk/res-auto"

app:switcherColor="#ff3d943e"
app:switcherSize="14sp"

##