tabactivity - Four classes in one tabber in Android? -


i want uitabbarcontroller in iphone, have 4 classes , want work them in 1 tabber

as click first tab, first class should show click second tab, second class should show click third tab, third class should show click fouth tab, fourth class should show

what best , easy way manipulate such conditions, new android developement , first app if not clear question, may ask again ...

the android dev site has example you're looking for. http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

there code examples. you'll need make tab layout xml file, edit main.xml , in java code, each tab you'll have this

intent = new intent().setclass(this, albumsactivity.class); spec = tabhost.newtabspec("albums").setindicator("albums",        res.getdrawable(r.drawable.ic_tab_albums))       .setcontent(intent); tabhost.addtab(spec); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -