Perhaps the question is banal. I have an application at the root of TabHost. I need to achieve an ArrayList display on one of the tabs. There are examples where the ArrayList mapping is implemented, but it uses ListActivity there. You can also put all this into a separate class and create an intent, but at the same time my data sheet is displayed as a new tab. In general, I put the question how to create an ArrayList, fill it with data and return it as a View, so that you can make Layout.addView () on my page?

  • And the usual ListView will not suit you? As parameters it takes, for example, ArrayAdapter<String> . - Dex
  • Yes, thank you very well. - DeMoGargon

1 answer 1

You are a bit late with TabActivity. I advise you to read carefully. Regarding the design of the list I advise you to read it .

  • thanks for the links. Unfortunately, Fragment starts working with API11 Android introduced fragments in Android 3.0 (API level 11). And yet, what to do in my case, how to return an ArrayList as a normal view, is this an ordinary task to be? - DeMoGargon
  • There is a [support package] [1] for earlier versions. In my opinion, there is a mention of this on the TabActivity page. [1]: developer.android.com/sdk/compatibility-library.html - RomanoO
  • [Here] [1] still step by step how to [1]: mobile.tutsplus.com/tutorials/android/… - RomanoO