在Android模拟器的布局看起来并不像我在Android应用程序项目所做的布局 [英] The layout on Android Emulator doesn't look like the layout I've made in Android Application Project

查看:425
本文介绍了在Android模拟器的布局看起来并不像我在Android应用程序项目所做的布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android模拟器的布局看起来并不像我在Android应用程序项目所做的布局。

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

我已经在Eclipse中的布局有两个单选按钮和两个微调,但是当我在Android模拟器运行它纺纱获得两个额外的单选按钮每个箭头标志旁边。 (请参见下面的图像)。此外,当我在我的Andr​​oid手机运行它,所有四个单选按钮变成黑色。而在同一时间运行,但按钮变成黑色的,我不能把应用程序的快照我的Andr​​oid手机上。我的项目是在Eclipse运行Android 4.1.2版和智能手机具有相同的版本。任何提示将是对我有价值,谢谢你。

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:当我在一个单独的项目只有这个类,没有多余的单选按钮来在微调。只有当我从另一个类的一个更大的项目的方法调用这个类。

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.

推荐答案

它可能是因为你使用的是Android上的工作室API是比您正在使用的模拟器的不同。改变你正在查看在Android Studio中的API,然后对其进行编辑。

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.

这篇关于在Android模拟器的布局看起来并不像我在Android应用程序项目所做的布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆