android标签栏图标大小,如何在android底部导航布局中增加图标大小?

我在

Android中使用最近由设计库25中的谷歌引入的底部布局导航样式.在我看到的所有教程和问题中,图标中的图像是正常大小,但是我的图像非常小,尽管事实上我保存到drawable文件夹的图像是72×72.这是一个截图:

be79f0c50a23b7ce501fdc7ec17c262d.png

图标应至少为2,甚至可能是该尺寸的3倍.我该怎么做?这是我在bottom_layout.xml中的代码:

xmlns:app="http://schemas.android.com/apk/res-auto">

android:id="@+id/menu_home"

android:title="test"

android:icon="@drawable/tabbarglossary"

app:showAsAction="always|withText"

/>

android:id="@+id/menu_search"

android:title="test2"

android:icon="@drawable/mediationtabbar"

app:showAsAction="always|withText"

/>

android:id="@+id/menu_notifications"

android:title="test3"

android:icon="@drawable/ic_action_name"

app:showAsAction="always|withText"

/>

在我的activity_main.xml中:

android:id="@+id/navigation"

android:layout_width="match_parent"

android:layout_height="80dp"

android:layout_alignParentBottom="true"

android:layout_gravity="bottom"

android:layout_marginBottom="0dp"

android:layout_marginLeft="0dp"

android:layout_marginRight="0dp"

android:focusable="false"

app:layout_constraintBottom_toBottomOf="parent"

app:layout_constraintLeft_toLeftOf="parent"

app:layout_constraintRight_toRightOf="parent"

design:menu="@menu/bottom_layout" />

谢谢

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值