0

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

安卓底栏

活动主

<?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> 

4

1 回答 1

2

最简单的方法是使用Android Asset Studio 工具根据您的大小转换您的图标
因为您将在工具中减小资产大小,您的图标将减小大小并正确显示。

于 2017-09-10T08:53:34.053 回答