简单选项卡布局中的意外视觉元素

发布于 2024-09-06 02:25:45 字数 326 浏览 0 评论 0原文

下面的屏幕截图是来自 选项卡布局的应用程序的简化版本教程。您可以在选项卡下方看到一条黑色水平线。为什么它会在那里以及如何将其删除?

替代文本

The screen shot below is of a simplified version of the application from the Tab Layout tutorial. You can see a black horizontal line below the tabs. Why is it there and how can I remove it?

alt text

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

酒解孤独 2024-09-13 02:25:45

尝试从 FrameLayout 中删除 android:padding 属性。如果您想在除顶部之外的所有内容周围填充,则必须使用 padding/Left/Right/Bottom 属性。

Try removing the android:padding attribute from the FrameLayout. If you want padding around everything but the top then you'll have to use the padding/Left/Right/Bottom attributes.

爱的十字路口 2024-09-13 02:25:45

我认为这条线是由选项卡的实现方式产生的。如果您查看我的一个问题,关于奇怪的黑线我发现它是我正在使用的 ActivityGroup 的产物。这与选项卡使用的小部件相同。

I think that line results from how the tabs are implemented. If you look at one of my questions about a strange black line I found that it was an artifact of the ActivityGroup that I was using. This is the same widget that tabs use.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文