Below is example of EditText, it can be used to enter text. Example demonstrates usage of other attributes and methods.
I used Eclipse as development tool and tested the sample in Emulator for Android 4.0.3.
There are resources are used to develop android app like image files etc. but for this example, we are using three basis components like code base file, layout file and string file.
- "Select All" selects text entered in text field
- "Set Selection" selects first 4 characters of entered text
- "Set Text" sets value like "Hello World!!!" to edit text
- "Close" will close the application