+ col1.setTypeface(typeface);
+ col2.setTypeface(typeface);
+ col1.setTextSize(TypedValue.COMPLEX_UNIT_SP, fontSizeSp);
+ col2.setTextSize(TypedValue.COMPLEX_UNIT_SP, fontSizeSp);
+ // col2.setBackgroundResource(theme.otherLangBg);
+
+ if (index.swapPairEntries) {
+ col2.setOnLongClickListener(textViewLongClickListenerIndex0);
+ col1.setOnLongClickListener(textViewLongClickListenerIndex1);
+ } else {
+ col1.setOnLongClickListener(textViewLongClickListenerIndex0);
+ col2.setOnLongClickListener(textViewLongClickListenerIndex1);
+ }
+
+ result.addView(tableRow);
+ }
+
+ for (int r = 0; r < rowCount; ++r) {
+ final TableRow tableRow = (TableRow)result.getChildAt(r);
+ final TextView col1 = (TextView)tableRow.getChildAt(r == 0 ? 0 : 1);
+ final TextView col2 = (TextView)tableRow.getChildAt(r == 0 ? 1 : 3);