The layout on Android Emulator doesn't look li

2019-07-07 01:31发布

The layout on Android Emulator doesn't look like the layout I've made in Android Application Project.

I have made a layout in eclipse with two radiobuttons and two spinners, but when I run it on Android emulator the spinners get two extra radiobutton each beside the arrow sign. (Please see the images below). Moreover when I run it on my Android Phone, all four radiobuttons become black. I can't take a snapshot of the app on my Android phone while running it at the same time but the buttons become black. My project is running Android version 4.1.2 in eclipse and my smartphone has the same version as well. Any tip would be valuable for me, thank you.

P.S: When I have only this class in a separate project, no extra radiobutton comes in the spinner. It's only when I am calling this class from a method of another class in a bigger project.

layout in eclipse

layout in emulator

1条回答
老娘就宠你
2楼-- · 2019-07-07 02:07

Its probably because the API you are using on android studio is different than the one you're using on your emulator. Change the API you're viewing on Android Studio and then edit it.

查看更多
登录 后发表回答