Unable to create a ToggleButton in Eclipse IDE for android

后端 未结 4 583
轻奢々
轻奢々 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:01

    Perhaps it is the display theme so ensure that the theme you select matches the android:theme in your activity tag in AndroidManifest.xml. In Android Studio (sorry not eclipse as per question) in the top bar of the preview panel, I had to click the current theme name (which was Light) which brings up the Select Theme panel and then choose my theme under Project Themes (as I had a custom theme - you location may vary).

提交回复
热议问题