to demo how to create a simple Android APP, which provides one Plain Text field and few radio buttons.
* the plain text button is designed for user input (presumption: ASCII string)
* those radio buttons are designed to convert case of content inside Plain Text field
Action
1. create one project with Basic Activity2. add one edit text field, one radio group and five radio buttons
3. select Android SDK API whose version is lower than 24 (i.e. 23)
3.1 otherwise, you might get message such as Rendering Problems ... (updated @ 2016/8/27)
Problem
Workaround
refer:
http://stackoverflow.com/questions/38544129/exception-raised-during-renderingbinary-xml-file-line-1error-inflating-class
4. append logic (code) to those radio buttons
5. debug and solve problems
5.1 inner class; Cannot assign a value to final variable
5.2 tracking when editText changed by
refer: http://stackoverflow.com/questions/21973892/detect-if-content-of-edittext-was-changed-by-user-or-programmatically
5.3 once user is typing, state of radio buttons should be reset.
RadioGroup.clearCheck();
RadioGroup.check(R.id.radioButtonId);
5.4 use logcat for debug
Follow-Up
How to Test it in view point of Test Engineer?
tbaHow to Test it in view point of Developer?
tba.
沒有留言:
張貼留言