Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save laurentyhuel/b5b0aa1d12fa1003e6d282e7486bec25 to your computer and use it in GitHub Desktop.
Save laurentyhuel/b5b0aa1d12fa1003e6d282e7486bec25 to your computer and use it in GitHub Desktop.
2xScreen : DefaultPresentation
class DefaultPresentation(
display: Display,
context: Context
) : Presentation(context, display) {
private lateinit var binding: PresentationDefaultBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
requestWindowFeature(Window.FEATURE_NO_TITLE)
binding = DataBindingUtil.inflate(LayoutInflater.from(context), R.layout.presentation_default, null, false)
setContentView(binding.root)
}
fun setImage(imageUri: Uri?) {
imageUri?.let {
binding.presentationImage.setImageURI(it)
} ?: run {
binding.presentationImage.setImageResource(R.drawable.logo_innovorder_inline)
}
}
}
@pworswick
Copy link

What is fun ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment