我想像下面的图片一样在右侧放置汉堡菜单图标。并且菜单应该从右向左滑动。
我正在寻找一种方法来执行此操作,但似乎不存在用于此操作的简单设置?我几天前开始学习Xamarin.Forms
,这是我遇到的第一个问题。我花了几个小时却没有成功...
如果有人知道解决方案,请分享。
我在Github上尝试了this,但它完全没有效果,并且还说:
'MasterDetailPageRenderer.MasterDetailPageRenderer()'已过时: '从2.5版开始,此构造函数已过时。请用 改为使用MasterDetailPageRenderer(Context)。'
请不要告诉我使用SlideOverKit。简单的东西,因为这应该是开箱即用的。
答案 0 :(得分:1)
显然有一种方法可以做到(如here所述):
清单:
<application android:label="Sanaap" android:icon="@mipmap/launcher_foreground" android:theme="@style/MainTheme" android:supportsRtl="true">
MainView.xaml:
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Sanaap.App.Views.MenuView"
FlowDirection="RightToLeft"
Title="Main">
一个缺点,FlowDirection
必须重新设置为所有其他LeftToRight
的{{1}}