2017-09-10 8 views
0

안드로이드 용 https://github.com/roughike/BottomBar 라이브러리를 사용 중입니다. 그러나 아이콘의 크기는 변경할 수 없습니다. 당신이에 자산 규모을 줄일으로바텀 바 아이콘 크기 변경 android

Android Bottom Bar

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

답변

1

activity_main 가장 쉬운 방법은 크기
에 따라 아이콘을 변환하는 데 사용할 Android Asset Studio tool 일 것 도구 아이콘의 크기가 축소되어 표시됩니다. c 바르게.

+0

고마워요! 그건 매력처럼 작동 했어. –