Gainster
Gainster

Reputation: 5631

Which Adapter to use?

REQUIREMENT: I am working on GRE vocab app. I have requirement in which I will be showing word at the header level and four meaning in the lower section and out four meanings one will be the correct one.

I will be using TextView control to show these words and meanings.

QUESTION: I want to implement adapter? I don't know which one suits? which Adapter? my requirement is basically show line and header details.

Upvotes: 1

Views: 74

Answers (2)

Matthew
Matthew

Reputation: 44919

I'm not sure a ListView and Adapter make sense for you.

Why not add your four options to a LinearLayout and keep it simple?

Much of the adapter infrastructure is dedicated to recycling views, avoiding pre-loading a large number of rows, and dealing with multiple types of rows. If you don't need any of this, then a LinearLayout might make sense.

Upvotes: 1

Robby Pond
Robby Pond

Reputation: 73484

Use the ArrayAdapter with either a String[] or List of the definitions.

Upvotes: 0

Related Questions