How to Programmatically inflated layout with Kotlin Android Extensions | Android Kotlin inflated layout

Published by inkskull on

Checkout the How to Programmatically inflated layout with Kotlin Android Extensions | Android Kotlin inflated layout

You can find the best tutorial from here

If we want to call the synthetic properties on View (useful in adapter classes), we should also import

kotlinx.android.synthetic.main.activity_main.view.*.
val view = LayoutInflater.from(context).inflate(...)
view.tvTitle.text = "test"
Categories: AndroidKotlin

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Social Media Auto Publish Powered By : XYZScripts.com