Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Why shouldn't I use activities inside tabs?

I've read at a few places that I should not be using Activities as contents of my tabs. I would like to know why this is not a recommended approach... Any suggestions?

like image 782
Legend Avatar asked Oct 14 '09 20:10

Legend


1 Answers

I'd flip it around: why would you want to use activities as tabs? All you do is add overhead and complexity. Just use Views for the tabs.

If you have something that just has to be both a tab and a separate standalone activity, reuse the View.

like image 113
CommonsWare Avatar answered Nov 15 '22 11:11

CommonsWare