TimeIt alternatives and similar packages
Based on the "Utility" category.
Alternatively, view TimeIt alternatives based on common mentions on social networks and blogs.
-
timber
A logger with a small, extensible API which provides utility on top of Android's normal Log class. -
ExpirableDiskLruCache
DISCONTINUED. Java implementation of a Disk-based LRU cache which specifically targets Android compatibility. -
Android-Templates-And-Utilities
Collection of source codes, utilities, templates and snippets for Android development. -
secure-preferences
DISCONTINUED. Android Shared preference wrapper than encrypts the values of Shared Preferences. It's not bullet proof security but rather a quick win for incrementally making your android app more secure. -
greenrobot-common
General purpose utilities and hash functions for Android and Java (aka java-common) -
Androl4b
A Virtual Machine For Assessing Android applications, Reverse Engineering and Malware Analysis -
vector-compat
A support library for VectorDrawable and AnimatedVectorDrawable classes introduced in Lollipop -
CastCompanionLibrary-android
DISCONTINUED. CastCompanionLibrary-android is a library project to enable developers integrate Cast capabilities into their applications faster and easier. -
motion
An Android library allowing images to exhibit a parallax effect that reacts to the device's tilt -
Colours
A beautiful set of predefined colors and a set of color methods to make your Android development life easier. -
Reservoir
DISCONTINUED. Android library to easily serialize and cache your objects to disk using key/value pairs.
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of TimeIt or a related project?
README
TimeIt
Now with Timer support!
A simple and easy to use stopwatch and timer library for android
Introduction
A stopwatch can be a very important widget in an app and yet creating it has been very difficult. Creating a stopwatch requires you to create a separate thread to keep track of the time and then post the updates on the UI thread. This process becomes complicated very quickly. Especially if you plan on adding features like pause and split.
Similarly, a timer is another important addon an app may need without going through all the hassle of running threads or handlers.
With TimeIt, you can create a stopwatch or a timer app with very few lines of code!
For example, to create and start a stopwatch and display it with a textView :
Stopwatch stopwatch = new Stopwatch();
stopwatch.setTextView(myTextView);
stopwatch.start();
Pausing a stopwatch and resuming it is as simple as calling stopwatch.pause();
and resume()
respectively.
TimeIt also allows you to keep track of splits with the stopwatch by simply calling stopwatch.split();
Similarly, to set a timer:
Timer timer = new Timer(time_in_ms);
timer.setTextView(myTextView);
timer.start();
The timer provides utility functions to check the current time and current status (running, paused, stopped etc.). Please check the current status of the timer before actually starting/pausing/resuming the timer.
The Timer class provides an OnTickListener
interface which you can register to, to listen for updates every clock cycle and receive a callback when the timer completes.
Features
- NEW : Create Timers with pause and resume support!
- Easy to use stopwatch library
- No need to use separate threads. Multithreading is handled by the library itself
- Supports pause/resume and split methods.
- Supports an
OnTickListener
to listen for updates in clock. - Set the TextView directly with TimeIt (Automatically formats the time).
- Set custom clock delay to update the time more or less frequently!
- Much more to come!
Documentation
TimeIt is very easy to use. If you face any trouble, you can see the javadocs available here. A demo app is included here for your reference. It implements the basic features of the library.
Download
TimeIt is available on jcenter, jitpack and bintray. To download, use the badges above or follow these instructions:
Jcenter
Step 1. Add the JCenter repository to your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jcenter.bintray.com' }
}
}
Step 2 : Add the dependency in your app level build.gradle
implementation 'com.yashovardhan99.timeit:timeit:1.2.0'
Jitpack
Step 1. Add the JitPack repository to your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2 : Add the dependency in your app level build.gradle
dependencies {
implementation 'com.github.yashovardhan99:TimeIt:1.2.0'
}
Bintray
Step 1 : Download or copy the Gradle configuration in your project level build.gradle:
repositories {
maven {
url "https://dl.bintray.com/yashovardhan99/TimeIt"
}
}
Step 2 : Add the dependency in your app level build.gradle
implementation 'com.yashovardhan99.timeit:timeit:1.2.0'
Contributing
Contributing guidelines are available here. Feel free to report any issues or make new pull requests! TimeIt is an open source project and is free for all to use and improve!
License
Copyright 2018 Yashovardhan Dhanania
Licensed 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 at
http://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.
*Note that all licence references and agreements mentioned in the TimeIt README section above
are relevant to that project's source code only.