Skip to content

(check) Ticket when the number is correct? #481

Discussion options

You must be logged in to vote

I have done it programmatically as in the example:

ccpGetNumber.setPhoneNumberValidityChangeListener { isValidNumber ->
			if (isValidNumber) {
				imgValidity.setImageDrawable(getDrawable(context!!, R.drawable.ic_assignment_turned_in_black_24dp))
				tvValidity.text = "Valid Number"
			} else {
				imgValidity.setImageDrawable(getDrawable(context!!, R.drawable.ic_assignment_late_black_24dp))
				tvValidity.text = "Invalid Number"
			}
		}

The layout: Image from mega.nz

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SalvatoreScalia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant