Skip to content

Instantly share code, notes, and snippets.

@shahharshil0
Created June 14, 2020 08:48

Revisions

  1. shahharshil0 created this gist Jun 14, 2020.
    5 changes: 5 additions & 0 deletions Activity.kt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    if(TextInputEditText.isNotNullOrEmpty("This field is required") and
    (TextInputEditText.isNotNullOrEmpty("This field is required")) {
    //this will be executed only if the TextInputEditText contains
    // some text else error will be displayed by the extension function itself
    }