Skip to content
The library provides a custom TextView and Helper for Android to convert timestamp to time String
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
gradle/wrapper
.gitignore
LICENSE.md
README.MD
build.gradle
gradle.properties
gradlew
gradlew.bat
howitworks.png
screenshot.png
settings.gradle

README.MD

Zaman

Android Arsenal GPL Maintenance

The library provides a custom TextView and Helper for Android to convert timestamp to time String. The library also provides a singleton thread that automatically updates the TextView . Zaman also provides a helper that returns the relative time according to the timestamp sent. Zaman means Time in Arabic and we named it that since our library works with time and the developers first language is Arabic.

Screenshot

Zaman

Download

Download via Gradle:

compile 'morxander.zaman:Zaman:1.0.0'

Usage

Using ZamanTextView

<morxander.zaman.ZamanTextView
        android:id="@+id/ztv"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

In activity class:

ZamanTextView ztv = (ZamanTextView) findViewById(R.id.ztv);
ztv.setTimeStamp(1481554570);

Using ZamanUtil ( The Helper )

ZamanUtil zamanUtil = new ZamanUtil(1481554570);
zamanUtil.getTime(); // Returns the time string

How It Works

How

License

GNU GENERAL PUBLIC LICENSE 3

You can’t perform that action at this time.