开发者

Ugly Widgets - Android

I'm new to Android programming, and i'm building a small test program.

My problem is that in the graphical layout of the .xml files the widgets(Spinner开发者_C百科s,Buttons...) looks nice and round, but when I put my program into my phone(Nexus S, if that matters) or in the emolator, they come out with rounded edges,making the whole program look really ugly.

Is theres something i'm doing wrong?

Thanks!


The problem is that you have set the build target to 2.2 or earlier and Nexus S is running 2.3, which has redesigned UI elements. If you set build target to 2.3 it sould show the same (not rounded) buttons and other elements in the Eclipse XML viewer as they are in the Nexus S.


I believe the Nexus S doesn't use the default android theme. Many of the standard UI items (radio buttons, buttons, check boxes etc) will have a different look than the UI builder will show.

Edit: wait...its showing up different in the emulator too?? my answer may not apply in that case, sorry :-\


So the unrounded buttons are the new ones? Isn't that stupid? The are uglier. And I set the build target to 1.6, and both the emulator and the nexus s are running 2.3,so that explains it. Does anyone has a guide that explains how to change the UI items to nicer ones?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜