glarimy / glarimy-quiz-app

The source code and resources for Glarimy Quiz community project
0 stars 0 forks source link

Externalize all the text into strings.xml #24

Closed glarimy closed 6 years ago

glarimy commented 6 years ago

Externalize all the strings that are to be displayed into res/values/strings.xml. Support only English.

glarimy commented 6 years ago

The UI part of the application shows lot of text on the screen. Look at the latest mockup flow PDF that was shared. Some of the string from the mockup include "Welcome", "Glarimy", "Quiz", "Score", "OOPS" and etc., These are static texts. There are some dynamic texts like the questions, options and etc.,

Separating the static texts from the Java code is always good. It enables changing the texts during the lifetime, without changing the Java code.

Here the task:

  1. Check-out the file https://github.com/glarimy/glarimy-quiz-app/blob/master/app/src/main/res/values/strings.xml on to your local machine. (You do not required Andorid Studio. Just check-out the file using any command line tool, open the file in notepad/textpad/etc.,

  2. Identify all static texts from the UI mockup screens and register them in the checked-out strings.xml. You are free to add any number of strings. For example: app_name, success_msg, failure_msg, net_error, welcome_msg and etc.,

  3. Once completed, check-in the file and update the issue.

Complete the task by CoB today.

glarimy commented 6 years ago

Any update?

Pratyusha-Bodapati commented 6 years ago

Working sir...i will complete it by today

Pratyusha-Bodapati commented 6 years ago

sir added strings and check-in the code.

glarimy commented 6 years ago

Thank you!