Hello,
Welcome to our Microsoft Q&A platform!
Hi,StephenHe-2089. For this function on Android, you could set style for the ActionButton and consume the style for the theme of MainActivity class. The code of the link you posted could reduce the spacing of the ToolbarItems well. Change the value of the width item properties to adjust the space.
Here is the screenshot:
Checkt the code:
<resources>
<style name="MainTheme" parent="MainTheme.Base">
...
<item name="actionButtonStyle">@style/myActionButtonStyle</item>
</style>
<style name="myActionButtonStyle" parent="Widget.AppCompat.ActionButton">
<item name="android:minWidth">35dp</item>
<item name="android:maxWidth">35dp</item>
<item name="android:width">35dp</item>
</style>
</resources>
Or you could use TitleView to display the items on the navigation bar.
<NavigationPage.TitleView>
<!--the items-->
</NavigationPage.TitleView>
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.