android– 我们如何减少制表符布局文本与其指标之间的差距

android– 我们如何减少制表符布局文本与其指标之间的差距,第1张

概述<android.support.design.widget.CoordinatorLayout xmlns:android='http://schemas.android.com/apk/res/android' android:id='@+id/htab_maincontent' android:la

我想减少Tab Layout文本和它的指标之间的空间.
我正在使用带有折叠工具栏的标签布局,当它向上滑动时,标签布局将固定在顶部.

我有4个标签及其相应的指示灯.

我正在分享我的xml&也有附加图像.

最佳答案试试这个

ID.support.design.Widget.CoordinatorLayout xmlns:androID="http://schemas.androID.com/apk/res/androID"    xmlns:app="http://schemas.androID.com/apk/res-auto"    androID:ID="@+ID/htab_maincontent"    androID:layout_wIDth="match_parent"    androID:layout_height="match_parent"    androID:fitsSystemwindows="true">    ID.support.design.Widget.AppbarLayout        androID:ID="@+ID/htab_appbar"        androID:layout_wIDth="match_parent"        androID:layout_height="wrap_content"        androID:background="#2fff00"        androID:fitsSystemwindows="true"        androID:theme="@style/themeOverlay.AppCompat.Dark.Actionbar">        ID.support.design.Widget.CollapsingToolbarLayout            androID:ID="@+ID/htab_collapse_toolbar"            androID:layout_wIDth="match_parent"            androID:layout_height="match_parent"            androID:fitsSystemwindows="true"            app:contentScrim="?attr/colorPrimary"            app:expandedTitlemarginEnd="64dp"            app:expandedTitlemarginStart="48dp"            app:layout_scrollFlags="scroll|exitUntilCollapsed"            app:TitleEnabled="false">            ID.support.v7.Widget.Toolbar                androID:ID="@+ID/htab_toolbar"                androID:layout_wIDth="match_parent"                androID:layout_height="?attr/actionbarSize"                androID:background="@androID:color/transparent"                app:contentInsetStart="0dp"                app:layout_collapseMode="pin"                app:popuptheme="@style/themeOverlay.AppCompat.light" />            

绘制/ tab_selector

总结

以上是内存溢出为你收集整理的android – 我们如何减少制表符布局文本与其指标之间的差距全部内容,希望文章能够帮你解决android – 我们如何减少制表符布局文本与其指标之间的差距所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1139579.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-31
下一篇 2022-05-31

发表评论

登录后才能评论

评论列表(0条)