开发者

What all basic android gui elements are available?

I wanted 开发者_如何学JAVAto know the gui elements we have in android? Can anyone show me a picture as well like how do these elements look like?


This is what the ApiDemos sample application is for :-) You'll specifically want to check out the Views > Controls section for an activity that just shows common views.

To try out ApiDemos on an emulator or on your phone:

  1. Download the Android SDK and follow the instructions to get the SDKs for various platforms (1.5, 1.6, 2.0.1)
  2. Install Eclipse (Eclipse Classic works)
  3. Install ADT
  4. Create a new Android project from the samples/ApiDemos directory in any of the platform-version folders inside the SDK.
  5. Hook up your phone via USB and turn on USB debugging in Settings > Applications (or turn on an emulator)
  6. Build and run the ApiDemos project in Eclipse with your phone hooked up or your emulator running

There is also the Hello, Views set of tutorials, and that has some screenshots of views, as they look on older versions of Android.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜