This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * at your activity/fragment just add onTextChanged Listener and use the fun. setPassword | |
| */ | |
| edPassword.onTextChanged { | |
| passwordStrenghtView.setPassword(it) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PaymentChoiceViewHolder( | |
| val context: Context, | |
| private val binding: ItemPaymentBinding, | |
| val callback: (item: PaymentOption, view: View, position: Int) -> Unit | |
| ) : RecyclerViewHolder(binding.root) { | |
| var selectedItem = -1 | |
| override fun onBindView(`object`: Any, position: Int) { | |
| val data = `object` as PaymentOption | |
| binding.item = data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2019 Google LLC | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * https://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |