]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/DictionaryActivity.java
Support selectable text on newer Android.
[Dictionary.git] / src / com / hughes / android / dictionary / DictionaryActivity.java
index 28c5b6f2fb6d2d0b2a38b580f386900ddda9c75c..5ea0e271093673edc0562bbc4dc95b430861a64a 100644 (file)
@@ -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) {