I can't change its color or use alpha because the background may change and I won't know its color! Is there any other way to set it to invisible ? Also I don't want to set the text view invisible since I want the background to be visible!
Try:
textView.setTextColor(getResources().getColor(android.R.color.transparent));
You can set a textview to INVISIBLE:
myTextView.setVisibility(View.INVISIBLE);
That way the textview will still be present but not seen
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With