Implementing clean architecture in android and using some of the new ConcatAdapter:
private val moviesAdapter: MovieAdapter by lazy {
MovieAdapter(ItemViewHolder.ItemClick {
viewModel.onContentClicked(it)
})
}
private val tvAdapter: TvAdapter by lazy {
TvAdapter(ItemViewHolder.ItemClick {
viewModel.onContentClicked(it)
})
}
private val principalAdapter: ConcatAdapter = ConcatAdapter()
...
principalAdapter.addAdapter(moviesAdapter)
principalAdapter.addAdapter(tvAdapter)
Below you will find the libraries used to build the template and according to my criteria the most used in android development so far.
- Android Architecture Component:
- Koin - dependencie provider:
- Retrofit - networking:
- Moshi - json parser:
- Glide with image loader:
- Kotlin coroutines