Build: Extension Functions Demo
This screen demonstrates how to use Kotlin extension functions to add new behavior to existing classes without modifying them.
Target UI
------------------------- | Extension Functions Demo | |-----------------------| | Enter text: | | [______________] | | | | [Show Length] | | | | Length: | | | -------------------------
Add an EditText for user input
Add a Button labeled 'Show Length'
Add a TextView to display the length of the input text
Create a Kotlin extension function on String to return its length as a formatted string
When the button is clicked, use the extension function to show the length in the TextView