This application draws on prior coursework (ITEC 2140, ITEC 2150 and ITEC 2110) to build a simple mobile application that allows a user to enter a text into a single text field. The application detects when text is entered and evaluates the text, providing both graphical and textual feedback which indicates if the text is a palindrome.
I utilized some existing code, with the source link provided below. The Palindrome.java class includes a three-arg, private, recursive check method, which is wrapped by an overloaded, one-arg, public check method. External callers, like myself, call the one-arg check method, which returns a boolean when passed a string. That boolean is then processed and the feedback is provided, as described previously.
- One activity is needed
- EditText component is provided for text entry
- Feedback is provided as text and by updating an image
Sample screens were provided as follows:
- Please see the demo video
Notes and Instructions
- This app was tested on an emulated Pixel 3 running API 29 (Android 10/Q).
- This gist