-1

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.

this is the image i have taken a text view and a plain button but it is not showing up in the layout editor

Goku
  • 59
  • 1
  • 8

3 Answers3

0

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.

Jay Mungara
  • 6,663
  • 2
  • 27
  • 49
0

Change the 'Theme' to 'Classic' and the Build->Clean project.

0

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">