Good afternoon,
Guys, please help me, I need an example code in Kotlin.
I have the simplest option: no authorization, no subscriptions, no Compose.
Only three products (Consumables), my own layout with three buttons (for each product).
How can I get the price of a product and setOnClickListener so that the process of purchasing this product begins?
val tv_Crystals_100: TextView = findViewById(R.id.tv_Crystals_100)
val tv_Crystals_200: TextView = findViewById(R.id.tv_Crystals_200)
val tv_Crystals_500: TextView = findViewById(R.id.tv_Crystals_500)
tv_Crystals_100.text = "__price_"
tv_Crystals_100.setOnClickListener { ... }
tv_Crystals_200.text = "__price_"
tv_Crystals_200.setOnClickListener { ... }
tv_Crystals_500.text = "__price_"
tv_Crystals_500.setOnClickListener { ... }
Thanks a lot in advance
Denis