更改底部栏图标大小 android

Change Bottom Bar icon size android

我正在使用 https://github.com/roughike/BottomBar 库制作底部栏 对于 android,但我无法更改图标的大小,知道如何将它们变小吗?

activity_main

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context="ytstudios.wall.plus.MainActivity"
android:background="@color/colorAccent">

<android.support.v7.widget.Toolbar
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/colorPrimary"
    android:elevation="8dp">
</android.support.v7.widget.Toolbar>

<com.roughike.bottombar.BottomBar
    android:id="@+id/bottom_bar"
    android:layout_width="match_parent"
    android:layout_height="60dp"
    android:layout_alignParentBottom="true"
    android:background="@color/colorPrimary"
    app:bb_tabXmlResource="@xml/bottom_tabs"
    app:bb_inActiveTabColor="@color/tabSelected"
    app:bb_inActiveTabAlpha="0.2"
    app:bb_behavior="iconsOnly"
    app:bb_activeTabColor="@color/tabSelected">
</com.roughike.bottombar.BottomBar> 

最简单的方法是使用 Android Asset Studio tool 根据您的尺寸转换图标
由于您将在该工具中减小 资源大小,因此您的图标将减小并正确显示。