Advertisement
Ankhwatcher

showOrHideText

Dec 10th, 2013
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. void showOrHideText(TextView textView, String text) {
  2.             if (text == null || text.equals("")) {
  3.                 textView.setVisibility(View.GONE);
  4.             } else {
  5.                 textView.setVisibility(View.VISIBLE);
  6.                 textView.setText(text);
  7.             }
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement