没有标题的TabWidget [英] TabWidget without title

查看:105
本文介绍了没有标题的TabWidget的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作一个在片段和自定义滑动条之间滑动的ViewPager,该滑动条可以显示所选的页面.

I'm trying to make a ViewPager that slides between fragments and a custom slidebar, that shows which page is selected.

应该是这样的:

我不想显示标签标题,仅显示栏本身. 我该怎么办?

I don't want to display tab titles, only the bar itself. How can i do this?

推荐答案

您可以按照以下技巧进行操作.就像这样,首先从选项卡中删除所有标题,然后为布局和选项卡背景设置相同的颜色.

You can do this by following a trick. Like as, First remove your all title from tab then make same color your layout and tablayout background.

这篇关于没有标题的TabWidget的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆