Hello Views


Build your own Android App Dev Empire

Get Instant Access

This collection of "Hello World"-style tutorials is designed to get you quickly started with common Android Views and widgets. The aim is to let you copy and paste these kinds of boring bits so you can focus on developing the code that makes your Android application rock. Of course, we'll discuss some of the given code so that it all makes sense.

Note that a certain amount of knowledge is assumed for these tutorials. If you haven't completed the Hello, World tutorial, please do so—it will teach you many things you should know about basic Android development and Eclipse features. More specifically, you should know:

• How to create a new Android project.

• The basic structure of an Android project (resource files, layout files, etc.).

• The essential components of an Activity.

Please, also notice that, in order to make these tutorials simple, some may not convey the better Android coding practices. In particular, many of them use hard-coded strings in the layout files—the better practice is to reference strings from your strings.xml file.

With this knowledge, you're ready to begin, so take your pick.


Hello Lin cor Layout

row one row two row three row four





Form Stuff

Hello Form Stuff

Hello Form Stuff

| check it out I Red I Blue






this Is a third tab




There are plenty more Views and widgets available. See the View class for more on View layouts, and the widget package for more useful widgets. And for more raw code samples, visit the Api Demos. These can also be found offline, in /<sdk>/samples/ApiDemos.

Except as noted, this content is licensed under Apache 2.0. For details and restrictions, see the Content License. ! Go to top

Site Terms of Service - Privacy Policy - Brand Guidelines

Was this article helpful?

0 0

Post a comment