Skip to content Skip to sidebar Skip to footer

Android Textview Text Is Showing Up As Black Squares?

I have a TextView in my application that works fine until I pause the application (by pressing home) and launch it again. It should just resume the activity, but for some reason th

Solution 1:

Check what u have in on start and on stop methods, it is for sure painting what u have typed earlier.

Solution 2:

Try putting

@OverridepublicvoidonResume() {
    super.onResume(); // Always call the superclass method firstTextViewtextView= (TextView) findViewById(R.id.tv);
textView.forceLayout();

}

Let me know if this solves your problem or not?

Solution 3:

I encountered the same situation.

Just make sure your deleting view(which uses opengl) texture action in the thread you created it.

In your case, GameView is the key.

Post a Comment for "Android Textview Text Is Showing Up As Black Squares?"