Created
May 16, 2021 16:21
-
-
Save pauloaapereira/4220b68b12a3f936592d56bdca74e52a to your computer and use it in GitHub Desktop.
Android SOLID Error Handling
This file contains 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
@Parcelize | |
class ServerError : ErrorView { | |
override fun setupView(binding: FragmentErrorBinding) { | |
binding.apply { | |
errorTitle.setText(R.string.key_error) | |
errorDescription.setText(R.string.key_server_error) | |
errorImage.setImageResource(R.drawable.ic_server) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment