0

I'm an android beginner. I know there's another question like mine here but I need something more explained....

What I want to do is use tabs and fragment + listview: I want all the tabs with a ListView.

So the question is how can i do that? If I want to put buttons/EditText etc in these ListViews, where do I create the Listeners?

Thank you...

Community
  • 1
  • 1
andrew
  • 3,879
  • 4
  • 25
  • 43
  • consider to use http://actionbarsherlock.com/ – GVillani82 Oct 18 '13 at 22:33
  • Mmm I started with Android a week ago and I would like to do things in the standard way right now... – andrew Oct 18 '13 at 22:35
  • actionbarsherlok provides you simple way for creating tab. It is just a library. – GVillani82 Oct 18 '13 at 22:37
  • Not sure what IDE you're using, but I know that in Eclipse and Android Studio you can create a new project that has Scrollable Tabs + Swipe and then you could just drop a custom list view in. With these examples you'll have to have a min SDK version of 11. If you're targeting an SDK lower then that, then you'll probably have to use some additional, third-party libraries. – Jason Oct 18 '13 at 22:54
  • You opened me a world. Tomorrow I will try, thank you! – andrew Oct 18 '13 at 23:01
  • Ok, I create a project with Tabs and OK, but what if I want to add ListView to Fragment? I have to put the ListView where? in public static class DummySectionFragment extends Fragment {} ? – andrew Oct 19 '13 at 08:20
  • ArrayAdapter adapter = new ArrayAdapter(WHAT, R.layout.row, myStringArray); What I have to put in WHAT? – andrew Oct 19 '13 at 08:47
  • Ok problm solved :D Thanks all – andrew Oct 19 '13 at 09:20

0 Answers0