Android ToolBar 修改边距的实现方法
更新时间:2017年08月25日 10:57:22 作者:Alter
这篇文章主要介绍了Android ToolBar 修改边距的实现方法的相关资料,通过此文希望能帮助到大家,需要的朋友可以参考下
Android ToolBar 修改边距的实现方法
效果图:

实现方式:
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/menuToolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="0dp" android:background="@color/white" android:contentInsetLeft="10dp" android:contentInsetRight="10dp" android:contentInsetStart="10dp" android:minHeight="?attr/actionBarSize" android:padding="0dp" app:contentInsetLeft="10dp" app:contentInsetRight="10dp" app:contentInsetStart="10dp"></android.support.v7.widget.Toolbar>
如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
相关文章
android PopupWindow点击外部和返回键消失的解决方法
这篇文章主要介绍了android PopupWindow点击外部和返回键消失的解决方法,非常具有实用价值,需要的朋友可以参考下。2017-02-02
Android 日历控件库,可左右滑动,显示公历,农历,节假日等功能
这篇文章主要介绍了Android 日历控件库,可左右滑动,显示公历,农历,节假日等功能的相关资料,需要的朋友可以参考下2016-09-09
Kotlin协程开发之Flow的融合与Channel容量及溢出策略介绍
这篇文章主要介绍了Kotlin协程:Flow的融合、Channel容量、溢出策略,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧2022-09-09


最新评论