Theme preview fails in Eclipse

后端 未结 4 610
眼角桃花
眼角桃花 2021-02-01 16:25

I have made a simple username/password dialog to which I want to apply a theme (it basically defines windowBackground) and would also like to preview in Eclip

相关标签:
4条回答
  • 2021-02-01 17:02

    I also got this problem. I solved it by changing theme. Steps to do this

    1. Open activity in "Graphic Layout"
    2. Click drop down list AppTheme (On top bar of activity "Graphic Layout")
    3. Select Project Themes->AppBaseTheme
    0 讨论(0)
  • 2021-02-01 17:09

    Close your layout files in the editor first and restart your Eclipse.

    0 讨论(0)
  • 2021-02-01 17:15

    You should choose another theme in Graphic Layout (ex: default theme). I think your custom theme not support some attribute.

    0 讨论(0)
  • 2021-02-01 17:17

    Make sure your all other styles.xml present under different values contains your custom theme part.

    I had similar problem. In my case I had added a custom theme in values-large folder under res. And it was working at runtime but giving error as yours in eclipse. So i tried adding the custom part(in my case totally there was 3 tags added to styles.xml file) in all other styles.xml file. i.e. styles.xml files under values-normal-hdpi, values-normal-mdpi, valuse-v11 and values-v14...

    And BOOM!!! It solved my problem which wasted my whole day.

    0 讨论(0)
提交回复
热议问题