Android studio 3.1 XML preview not showing for some XML layouts

后端 未结 15 875
时光取名叫无心
时光取名叫无心 2020-12-08 02:54

Some layouts are shown, some just have blank, gray frame. I can\'t seem to find a correlation between XML layouts that work and those that do not, there is a mixture of use

15条回答
  •  情书的邮戳
    2020-12-08 03:55

    All you had to do is go to styles.xml file and replace your parent theme from Theme.AppCompat.Light.DarkActionBar to Base.Theme.AppCompat.Light.DarkActionBar

    Append Base to the default parent style

提交回复
热议问题