From: Reimar Döffinger Date: Sat, 29 Oct 2016 15:34:39 +0000 (+0200) Subject: Support selectable text on newer Android. X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=commitdiff_plain;h=01d3635db6749ab0a7a3b1fe0d322c66d3bdca06 Support selectable text on newer Android. --- diff --git a/src/com/hughes/android/dictionary/DictionaryActivity.java b/src/com/hughes/android/dictionary/DictionaryActivity.java index 28c5b6f..5ea0e27 100644 --- a/src/com/hughes/android/dictionary/DictionaryActivity.java +++ b/src/com/hughes/android/dictionary/DictionaryActivity.java @@ -1484,6 +1484,11 @@ public class DictionaryActivity extends ActionBarActivity { final TextView col1 = new TextView(tableRow.getContext()); final TextView col2 = new TextView(tableRow.getContext()); + if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) + { + col1.setTextIsSelectable(true); + col2.setTextIsSelectable(true); + } // Set the columns in the table. if (r > 0) {