Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xenione/tab-digit
A Flip Digit Libray
https://github.com/xenione/tab-digit
Last synced: about 2 months ago
JSON representation
A Flip Digit Libray
- Host: GitHub
- URL: https://github.com/xenione/tab-digit
- Owner: xenione
- Created: 2016-10-22T15:50:26.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-13T07:19:28.000Z (over 5 years ago)
- Last Synced: 2024-07-31T18:16:52.339Z (4 months ago)
- Language: Java
- Homepage:
- Size: 1.32 MB
- Stars: 611
- Watchers: 17
- Forks: 83
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- -awesome-android-ui - Tab Digit - 2.0) | <img src="/art/tab-digit.gif" width="49%"> <img src="/art/tab-digit2.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - Tab Digit - 2.0) | <img src="/art/tab-digit.gif" width="49%"> <img src="/art/tab-digit2.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-github-android-ui - tab-digit - 一个Flip Clock 库 (其他)
- awesome-android-ui - Tab Digit - 2.0) | <img src="/art/tab-digit.gif" width="49%"> <img src="/art/tab-digit2.gif" width="49%"> (Index)
README
# Tab Digit
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Tab%20digit-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/4786) [![Download](https://api.bintray.com/packages/xenione/maven/tab-digit/images/download.svg) ](https://bintray.com/xenione/maven/tab-digit/_latestVersion)
A Flip Clock Libray.Have a look at the demo app available on [google play](https://play.google.com/store/apps/details?id=com.xenione.libs.digit)
![tab-digit](https://cloud.githubusercontent.com/assets/4138527/20869273/258ed640-ba6f-11e6-892c-a5986896134c.gif)
this is what you can do with Tab digit
![clock](https://cloud.githubusercontent.com/assets/4138527/20869514/f503a208-ba73-11e6-800b-802d493e1a86.gif)
Add it on your project:
Gradle:
```java
compile 'com.xenione.libs:tab-digit:1.0.2'
```Add tabdigit in your layout, you can set attributes like background or text color, text size and padding through xml as shown.
```java
```start animation calling start().
```java
tabDigit1.start();
```
Increase digit every second:```java
ViewCompat.postOnAnimationDelayed(tabDigit1, this, 1000);@Override
public void run() {
tabDigit1.start();
ViewCompat.postOnAnimationDelayed(tabDigit1, this, 1000);
}
```# License
-------
Copyright 2016 Eugeni Josep Senent i GabrielLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.