``` private var instructionsView: DialogInterfa...
# anko
b
Copy code
private var instructionsView: DialogInterface? = null

    private fun showInstructionView() {
        instructionsView?.dismiss()
        instructionsView =
            context.alert {
                customView {
                    include<View>(R.layout.instruction_view)
                }
                onCancelled { App.unwindToMainMenu() }
            }.show()
Is there any way to animate this so it fades into/out of view?
m
Just like with any Android AlertDialog, by setting animations.
b
@miha-x64 I don’t have an
AlertDialog
, I have a
DialogInterface
l
@bryan
alert { ... }
should return an
AlertDialog
b
@louiscad
@louiscad It actually returns an
AlertBuilder<DialogInterface>
l
@bryan I personally use Splitties alterdialog-appcompat, which returns the dialog directly. You can try it, it is similar to Anko's (full disclosure: I made the library)
b
@louiscad I’ll check it out.