I was trying to add new buttons and text views to the layout of android studio.
However, in the preview of the layout the text views and buttons are not showing up in layout editor.
I have also changed the theme type but still it is not working.
I was trying to add new buttons and text views to the layout of android studio.
However, in the preview of the layout the text views and buttons are not showing up in layout editor.
I have also changed the theme type but still it is not working.
you just have to drag and drop button and textviews on the layout editor. nothing else.
Rebuild and Clean Project to get Changes on the Layout Editor as well. It may help you.
Probably the same problem of: Failed to load AppCompat ActionBar with unknown error in android studio
If using library version 28 beta, in res/values/styles.xml
file, change this line:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
to:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">