Add feedback when searching
app/src/main/java/eu/lepiller/nani/MainActivity.java
52 | 52 | ||
53 | 53 | result_view.removeAllViews(); | |
54 | 54 | search_button.setEnabled(false); | |
55 | - | feedback_text.setText(""); | |
55 | + | feedback_text.setText(R.string.feedback_progress); | |
56 | 56 | ||
57 | 57 | DictionaryFactory.prepare(getApplicationContext()); | |
58 | 58 | new SearchTask(MainActivity.this).execute(text); | |
… | |||
110 | 110 | feedback_text.setText(R.string.feedback_no_result); | |
111 | 111 | return; | |
112 | 112 | } | |
113 | + | feedback_text.setText(""); | |
113 | 114 | ||
114 | 115 | int num = 0; | |
115 | 116 | for(Result result: searchResult) { |
app/src/main/res/values-fr/strings.xml
21 | 21 | ||
22 | 22 | <string name="dictionary_size">Taille r??elle : %d???Mo</string> | |
23 | 23 | <string name="feedback_no_result">Pas de r??sultat</string> | |
24 | + | <string name="feedback_progress">Recherche???</string> | |
24 | 25 | ||
25 | 26 | <!-- Dictionnary descriptions --> | |
26 | 27 |
app/src/main/res/values/strings.xml
18 | 18 | ||
19 | 19 | <string name="dictionary_size">Actual size: %dMB</string> | |
20 | 20 | <string name="feedback_no_result">No result</string> | |
21 | + | <string name="feedback_progress">Searching...</string> | |
21 | 22 | ||
22 | 23 | <!-- Dictionnary descriptions --> | |
23 | 24 | <string name="dico_jmdict_e">Japanese/English dictionary from the Electronic Dictionary Research and Development Group.\n~56 MB, ~180,000 entries.</string> |