Domanda

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 dont know which one suits ? which Adpater ? my requirement is basically show line and header details.

È stato utile?

Soluzione

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.

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top