Demo app demonstrating how to consume and cache data from REST API's in android with Retofit, Moshi, Coroutines, LiveData, Flows and Jetpacks (Room, ViewModel). FxConverter provides exchange rate information for various currencies around the world (over 100 currencies) it also lets you calculate the exchange value between two currencies.
- View rates and currencies
- Search rates and currencies
- Convert currencies
- Cache rates and currencies
- Clear rates and currencies cache
- Dynamically switch between linear and grid view while still maintaining scroll position.
- Favorite currencies
- Pin currencies
- Get notifications for pinned currencies
- Sort currencies
- Filter currencies
- Rates history and charts
- Crypto currencies
- Custom moshi Adapters
- Dependency Inject with Hilt
- Data binding
- Two-way binding
- How to implement settings
- Form validation
Go to the Releases to download the latest APK.
Go to Google play
- API source ExchangeRate-API
- Minimum SDK level 21
- Kotlin
- Coroutines
- Uses both Kotlin Flows and Java Live Data
- Jetpack
- Lifecycle: Observe Android lifecycles and handle UI states upon the lifecycle changes.
- ViewModel: Manages UI-related data holder and lifecycle aware. Allows data to survive configuration changes such as screen rotations.
- DataBinding: Binds UI components in your layouts to data sources in your app using a declarative format rather than programmatically.
- Room: Constructs Database by providing an abstraction layer over SQLite to allow fluent database access.
- Hilt: for dependency injection.
- Architecture
- MVVM Architecture (View - DataBinding - ViewModel - Model)
- Repository Pattern
- Retrofit2 & OkHttp3: Construct the REST APIs and paging network data.
- Moshi: A modern JSON library for Kotlin and Java.
- Material-Components for ui design.
- Glide Loading images from network.
- Timber: A logger with a small, extensible API.