There are several ways you could do this... You could implement it as an
expandable listview that has the top-level item containing the type of car.
When you click on that it expands and you have a list of the available
models.  When you click on one of the models you can have it display a
separate activity with the information from the model.

Alternatively you can have three different activities... One listview
activity for the type. Selecting one of these displays a second listview
activity for the available models.  Then selecting one of these displays a
third activity for the selected model.

The expandable list view is a little harder to implement, so as a beginner I
would probably start with implementing the standard list views.

You can find a sample for the regular list view here:
http://developer.android.com/resources/tutorials/views/hello-listview.html

Depending on how "beginner" you are, I would probably start out with "Hello
World" and the "Notepad Tutorial"
Hello World:
http://developer.android.com/resources/tutorials/hello-world.html
Notepad Tutorial:
http://developer.android.com/resources/tutorials/notepad/index.html

When I started Android Development I started by reading through all the Dev
Guide documentation (
http://developer.android.com/guide/basics/what-is-android.html) and then
working on the links I gave above.

Hope that helps and good luck,
Justin


On Thu, Feb 17, 2011 at 5:51 PM, The Guy <[email protected]> wrote:

> Am a beginner at android programming and am trying to create a list
> view that has several options and within those options there are more
> options and when selected information about the selected item appears.
>
> For Example, A list of cars: BMW, TOYOTA, Ferrari and so on. When one
> of these is selected, for instance, BMW, a list of the various models
> under the BMW make appear. SO, when the user selects the model he
> wants it opens a screen that has all the data about that particular
> model.
>
> Any suggestions on the way the coding should be ? a brief coding
> sample would be appreciated, ive tried doing some but have failed
> numerously. Maybe its the fact that i have just started.
>
> Thank you
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to