How to disable a button in android studio using kotlin programmically - Joklinz-Tech

Latest

Home Of Tech news,jobs and android tutorials

Thursday, 4 January 2018

How to disable a button in android studio using kotlin programmically



Val btn=findViewById(R.id.button) as Button

btn.setEnabled(true)



Yes it can be disabled in XML just using

<Button
android:enabled="false"
/>

No comments:

Post a Comment