我试图导航标题图标,我已经使用了页面和代码的一个添加到我的应用程序是:如何在xamarin导航标题替换导航图标形成
对于iOS:
NavigationPage.SetTitleIcon(this, "icon.png");
对于Android在ToolBar.axml我添加了一个ImageView的,如下图所示:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:popupTheme="@style/ThemeOverlay.AppCompat.Light">
<ImageView
android:id="@+id/titleicon"
android:src="@drawable/UstNameIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</android.support.v7.widget.Toolbar>
的问题是,我希望我的Navigtion图标,让残疾人在我的下一个页面,并把标题,而不是图标。
对于这一点,我想
对于iOS:
NavigationPage.SetTitleIcon(this, null);
NavigationPage.Title="Title";
对于Android,我如何能实现导航标题的变化?
难道我的解决方案为您工作? –
嗨@Anoop,你找到了解决方案吗? –