A counter down timer for android which supports both dark and light mode and Persian text and digit.
English | Perisan |
---|---|
![]() |
![]() |
Step1. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.ArezooNazer:FlipTimerView:v1.0.0'
}
Add it to your layout:
<com.arezoo.fliptimerview.FlipTimerView
android:id="@+id/flipTimerView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
app:digitBottomDrawable="@drawable/shape_timer_bottom"
app:digitTextColor="@color/text_color"
app:digitTextSize="@dimen/title_font_size"
app:digitTopDrawable="@drawable/shape_timer_top"
app:digitWidth="40dp"
app:halfDigitHeight="24dp"/>
Then start the timer and implement callbacks:
private fun initFlipTimer() {
binding.flipTimerView.apply {
startCountDown(REMAINING_TIME_MILLI,
object : com.arezoo.fliptimerview.CounterDownCallback {
override fun countdownAboutToFinish() {
super.countdownAboutToFinish()
// optionl
}
override fun countdownFinished() {
Toast.makeText(
this@MainActivity,
"time is finished",
LENGTH_LONG
).show()
}
})
}
}
Inspired by: https://github.com/anugotta/FlipTimerView
An alternative YouTube front end, for Android. [WIP]
A sample to showcase Kotlin, MVVM, Paging, Dagger, RxJava, Coroutines, Jetpack Compose, Retrofit, DataBinding, MotionLayout, Espresso and Unit test.
Android Persian Calendar / تقویم فارسی اندروید
NMock is an application that you can use to mock your trips with fake locations. This application uses Neshan SDK and Neshan API for Map and location infromation.
Sample Android Clean MVVM architecture ( Retrofit + Okhttp + Moshi + Glide + Room + Navigation Component + Coroutines + Flow + DataStore + ViewModel + Hilt + Data binding )
Guide App for Tehran Metro.
🇮🇷 PrettyPersianNumbers is an Android library for converting a number to word for Persian/Farsi language written in Kotlin
A sample to showcase Kotlin, MVVM, Koin, Coroutines, StateFlow, Room, WorkManager, Retrofit, DataBinding and Unit test.