Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbigflower/timedown
https://github.com/mbigflower/timedown
Last synced: about 7 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/mbigflower/timedown
- Owner: mBigFlower
- License: apache-2.0
- Created: 2016-01-21T09:38:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-24T08:25:44.000Z (almost 9 years ago)
- Last Synced: 2023-03-02T00:41:46.677Z (over 1 year ago)
- Language: Java
- Size: 85.9 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"); // inittextSwitcherView.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"##