Unable to create a ToggleButton in Eclipse IDE for android

后端 未结 4 427
轻奢々
轻奢々 2020-12-19 16:31

In my android XML Graphical Layout, it can not display my ToggleButton. I get some errors (see below). I have checked all other components in the Palette window

4条回答
  •  有刺的猬
    2020-12-19 17:13

    I had the same problem and solved by changing my target device screen to any of the xhdpi OR xxhdpi devices.
    I'm sorry but I'm not able to post images yet, all you have to do is go to the dropdown menu just above the graphical layout -> General OR Google -> Select the xhdpi/xxhdpi target device you prefer.
    I'm also new to android so I'm not able to explain why this is happening, I can only guess it's a compatibility issue or something. I'll try finding out more..
    In the meantime I hope this will turn useful for you as well :-)

提交回复
热议问题