-2

I was trying to make an app with some fields that need user to fill out. I found this pretty which is exactly what I want, but when I copied over his code, I got this....ugly

I then realized that his project has different editor than mine. he has this better and i have this.... bad does anyone know what's going on? how can he get this editor??

4

1 回答 1

0

不是编辑器(布局设计器),而是您安装的 sdks。

他正在使用 4.x 或更高版本。而你的显示的是 pre-honeycomb Android 2.3.x 或更低版本。

在 Windows 上,选择窗口 > SDK 管理器

下载并安装Android 4.3.x. 我注意到 Eclipse 中的布局设计器显示默认安装的最高 sdk(认为可以通过下拉菜单更改)。

如果您在模拟器中运行此代码,请确保您创建的模拟器支持您刚刚下载的更高 Android 版本号(并将清单中的目标 sdk 更改为更高版本)。如果您在 2.3.x 或更低版本的实际手机上运行此代码,预计会看到旧样式,就像您在当前编辑器中看到的一样。

于 2013-06-28T00:18:45.340 回答