Android: Tabs at the BOTTOM

后端 未结 10 2200
长发绾君心
长发绾君心 2020-11-22 05:03

I\'ve seen some chatter about this, but nothing definite. Is there a way to put the tabs in a TabWidget to the bottom of the screen? If so, how?

I\'ve tried the fol

10条回答
  •  情书的邮戳
    2020-11-22 05:07

    There is a way to remove the line.

    1) Follow this tutorial: android-tabs-with-fragments

    2) Then apply the RelativeLayout change that Leaudro suggested above (apply the layout props to all FrameLayouts).

    You can also add an ImageView to the tab.xml in item #1 and get a very iPhone like look to the tabs.

    Here is a screenshot of what I'm working on right now. I still have some work to do, mainly make a selector for the icons and ensure equal horizontal distribution, but you get the idea. In my case, I'm using fragments, but the same principals should apply to a standard tab view.

    enter image description here

提交回复
热议问题