2017-07-01 4 views
1

下のナビゲーションビューのアイコンを小さくしようとしています。たとえば、今のところ、彼らはこのようにトップラインに押し付けられています。下部ナビゲーションビューのアイコンのパディングを削除します。

See image here

どのように私はアイコンが下になるだろうか?私はそれらを下のナビゲーションビューに垂直にセンタリングしたい。

XML:選択された場合

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:app="http://schemas.android.com/apk/res-auto" 
xmlns:tools="http://schemas.android.com/tools" 
android:id="@+id/container" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:orientation="vertical" 
tools:context="com.example.jchousurface.mastertrack.homescreen"> 

<FrameLayout 
    android:id="@+id/content" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:layout_weight="1"> 
</FrameLayout> 

<android.support.design.widget.BottomNavigationView 
    android:id="@+id/navigation" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:layout_gravity="bottom" 
    android:background="#FFFFFF" 
    app:menu="@menu/navigation" /> 

</LinearLayout> 
+0

あなたはXMLコードをしてください投稿することができますか? – Glory

+0

確かに、何も特別なものではなく、基本的なナビゲーションビュー –

+0

@Gloryがちょうど編集されました –

答えて

0

メニューアイコンは、ビットをシフトします。このライブラリを使用して、必要な設計を実現することができます。

BottomNavigationViewEx

enter image description here

関連する問題