本文介绍了NavigationPage.SetTitleIcon - 适用于 iOS 但不适用于 Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我添加了
NavigationPage.SetTitleIcon(this, "LogoLocales.png");
NavigationPage.SetTitleIcon(this, "LogoLocales.png");
看起来应该可以正常工作,但只能在 iOS 上运行,不能在 Android 上运行.
Looks like it should work fine, but only works on iOS not Android.
有什么想法吗?
推荐答案
添加
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/LogoLocales"
android:layout_gravity="center" />
到toolbar.axml
to the toolbar.axml
然后你就...
这篇关于NavigationPage.SetTitleIcon - 适用于 iOS 但不适用于 Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!