android - Tabhost/spec vs. viewpage vs tabbed actionbar ..which one? -


i have been familiar tabhost/tabspec create application tabs. noticed there more 1 option create tabs:

1- tabs in action bar

2- viewpager (i guess google calls horizontal pager)

3- , offcourse tabhost/tabspec approach.

i tried read google docs everywhere got further confused. when use or there 1 norm?

thanks

you should use toolbar viewpager simulate tabs (all wrapped in appbarlayout). result this: enter image description here

you can read more type of design on material design spec: https://www.google.com/design/spec/components/tabs.html#tabs-usage

also, here tutorial on how implement tabs within viewpager: http://blog.grafixartist.com/material-design-tabs-with-android-design-support-library/


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -