Android Studio – TextView not showing in design view layout

There is a bug in latest sdk 28 ,

Change the compileSdkVersion 27

targetSdkVersion 27

and

implementation 'com.android.support:appcompat-v7:27.1.1'

Update:

This is said to fix problem but I did not test it yet

In styles.xml change the parent theme for your app to Base.Theme.AppCompat instead of Theme.AppCompat

Leave a Comment