私は4つのアイコンで私のアプリにツールバーウィジェットを持っていて、これらのアイコン間のスペースサイズを同じに変更したいと思います。 current designAndroid上のウィジェットツールバーアイコン間のスペースサイズを変更する方法は?
このようになり: wanted design
menu.xml
<?xml version="1.0" encoding="utf-8"?>
<item
android:id="@+id/action_home"
android:orderInCategory="100"
android:icon="@drawable/white_home"
android:title="@string/action_settings"
app:showAsAction="always" />
<item
android:id="@+id/action_profile"
android:orderInCategory="101"
android:icon="@drawable/white_profile"
android:title="@string/action_settings"
app:showAsAction="always" />
<item
android:id="@+id/action_inbox"
android:orderInCategory="102"
android:icon="@drawable/white_inbox"
android:title="@string/action_settings"
app:showAsAction="always" />
<item
android:id="@+id/action_contacts"
android:orderInCategory="103"
android:icon="@drawable/white_contacts"
android:title="@string/action_settings"
app:showAsAction="always" />
この
フォーム事前に
app_bar_main.xml
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_main" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@drawable/ic_fab_plus"
app:backgroundTint="@color/colorPrimary" />
感謝。
ここ –
ポストあなた*レイアウト*コードをあなたのxmlファイルをSENSしてください。 –