我正在尝试在我的导航抽屉工具栏中实现微调工具。 我最初的工具栏布局包括以下XML代码:工具栏中的微调工具Xamarin for Android中的示例
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/languagetoolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:fitsSystemWindows="true"
android:popupTheme="@style/ThemeOverlay.AppCompat.Light" >
<Spinner
android:id="@+id/toolbar_languageSpinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:entries="@array/array_languageSelect"
android:gravity="right" />
</android.support.v7.widget.Toolbar>
的事情是,有似乎不存在是似乎表明使用Xamarin的实现方法的例子。我曾尝试使用以下资源: https://dabx.io/2015/01/02/material-design-spinner-toolbar-style-fix/ & http://android-pratap.blogspot.co.za/2015/01/spinner-in-toolbar-example-in-android.html X 的两个例子短缺憾的是,使用Xamarin我发现,我无法使用.setAdapter因为它只存在作为接口 我想要的样子工具栏中的图像与第一个链接中的图像相似,但将微调控制器置于最右端。