private void fixTextView(ViewGroup viewGroup) { int count = viewGroup.getChildCount(); for (int i = 0; i < count; i++) { View v = viewGroup.getChildAt(i); if (v instanceof TextView) { TextView tv = (TextView) v; if (isSingleLine(tv)) { tv.setSingleLine(false); tv.setMaxLines(1); } } else if (v instanceof ViewGroup) { fixTextView((ViewGroup) v); } } }
private void fixTextView(ViewGroup viewGroup) { int count = viewGroup.getChildCount(); for (int i = 0; i < count; i++) { View v = viewGroup.getChildAt(i); if (v instanceof TextView) { TextView tv = (TextView) v; if (isSingleLine(tv)) { tv.setSingleLine(false); tv.setMaxLines(1); } } else if (v instanceof ViewGroup) { fixTextView((ViewGroup) v); } } }
private void fixTextView(ViewGroup viewGroup) { int count = viewGroup.getChildCount(); for (int i = 0; i < count; i++) { View v = viewGroup.getChildAt(i); if (v instanceof TextView) { TextView tv = (TextView) v; if (isSingleLine(tv)) { tv.setSingleLine(false); tv.setMaxLines(1); } } else if (v instanceof ViewGroup) { fixTextView((ViewGroup) v); } } }