Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void showOrHideText(TextView textView, String text) {
- if (text == null || text.equals("")) {
- textView.setVisibility(View.GONE);
- } else {
- textView.setVisibility(View.VISIBLE);
- textView.setText(text);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement