Skip to content

Commit

Permalink
OTPView implemented with three types
Browse files Browse the repository at this point in the history
  • Loading branch information
priyal-p-simformsolutions committed Jul 22, 2022
1 parent e633128 commit 778af0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main/java/com/example/myapplication/OtpView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ const val OTP_VIEW_TYPE_NONE = 0
const val OTP_VIEW_TYPE_UNDERLINE = 1
const val OTP_VIEW_TYPE_BOX = 2

/**
* create the otpview.
*/
@Preview
@Composable
fun OtpView(
Expand Down Expand Up @@ -82,6 +85,9 @@ fun OtpView(
})
}

/**
* Set the view of otp character.
*/
@Composable
private fun CharView(
index: Int,
Expand Down

0 comments on commit 778af0c

Please sign in to comment.