This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<!-- https://medium.com/over-engineering/setting-up-a-material-components-theme-for-android-fbf7774da739 --> | |
<style name="AppTheme" parent="Theme.MaterialComponents.NoActionBar"> | |
<item name="colorPrimary">@color/primary</item> | |
<item name="colorPrimaryVariant">@color/primaryLight</item> | |
<item name="colorOnPrimary">@color/primaryText</item> | |
<item name="colorSecondary">@color/secondary</item> | |
<item name="colorSecondaryVariant">@color/secondaryLight</item> | |
<item name="colorOnSecondary">@color/secondaryText</item> | |
<item name="colorError">@color/error</item> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
recyclerView.addItemDecoration( | |
LinearSpacingItemDecoration( | |
spacingInPixels = resources.getDimensionPixelSize(R.dimen.item_spacing), | |
excludeItem = { item -> | |
item is RadioButtonItem || item is CheckBoxItem | |
} | |
) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [<tag>] (If applied, this commit will...) <subject> (Max 72 char) | |
# |<---- Preferably using up to 50 chars --->|<------------------->| | |
# Example: | |
# [feat] Implement automated commit messages | |
# (Optional) Explain why this change is being made | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# (Optional) Provide links or keys to any relevant tickets, articles or other resources | |
# Example: Github issue #23 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GetPosts @Inject constructor( | |
uiExecutor: UiExecutor, | |
@Named("ioExecutor") backgroundExecutor: BackgroundExecutor, | |
private val redditRepository: RedditRepository | |
) : ReactiveUseCase<List<RedditLink>>(uiExecutor, backgroundExecutor) { | |
fun execute(onNext: (List<RedditLink>) -> Unit, | |
onError: (Throwable) -> Unit, | |
onCompleted: () -> Unit) { |