Thanks for the quick response! Thanks also for the attached material.
It worked on other devices with same android. But the example link below works on the Motorola device:
https://github.com/syncfusion/xamarin-demos/tree/master/Forms/RadialMenu/RadialMenu/Samples/GettingStarted_RadialMenu
I believe then that I may have done something different than advised. Let me show you how I did it:
In Xaml:
<?xml version="1.0" encoding="utf-8" ?>
<radialMenu:SfRadialMenu xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:radialMenu="clr-namespace:Syncfusion.SfRadialMenu.XForms;assembly=Syncfusion.SfRadialMenu.XForms"
x:Class="PneumaticDeveloper.Views.RadialMenu"
BackgroundColor="Transparent"
CenterButtonRadius="35" RimColor="Black" SelectionColor="Blue" RimRadius="70"
EnableCenterButtonAnimation="False" CenterButtonBackgroundColor="Black" CenterButtonBorderColor="Blue"
CenterButtonBorderThickness="1">
<radialMenu:SfRadialMenu.CenterButtonView>
<Label Text="" HorizontalOptions="CenterAndExpand" HorizontalTextAlignment="Center"
VerticalTextAlignment="Center" VerticalOptions="CenterAndExpand" TextColor="White"
FontSize="35" FontFamily="{StaticResource FontAwesomeSolid}" />
</radialMenu:SfRadialMenu.CenterButtonView>
<radialMenu:SfRadialMenu.Items>
<radialMenu:SfRadialMenuItem x:Name="menuPlay" ItemTapped="PlayTap" ItemHeight="25" ItemWidth="25">
<radialMenu:SfRadialMenuItem.View>
<Label Text="" TextColor="White" FontSize="20" FontFamily="{StaticResource FontAwesomeSolid}" />
</radialMenu:SfRadialMenuItem.View>
</radialMenu:SfRadialMenuItem>
<radialMenu:SfRadialMenuItem x:Name="menuPause" ItemTapped="PauseTap" ItemHeight="25" ItemWidth="25">
<radialMenu:SfRadialMenuItem.View>
<Label Text="" TextColor="White" FontSize="20" FontFamily="{StaticResource FontAwesomeSolid}" />
</radialMenu:SfRadialMenuItem.View>
</radialMenu:SfRadialMenuItem>
<radialMenu:SfRadialMenuItem x:Name="menuStep" ItemTapped="StepTap" ItemHeight="25" ItemWidth="25">
<radialMenu:SfRadialMenuItem.View>
<Label Text="" TextColor="White" FontSize="20" FontFamily="{StaticResource FontAwesomeSolid}" />
</radialMenu:SfRadialMenuItem.View>
</radialMenu:SfRadialMenuItem>
<radialMenu:SfRadialMenuItem x:Name="menuStop" ItemTapped="StopTap" ItemHeight="25" ItemWidth="25">
<radialMenu:SfRadialMenuItem.View>
<Label Text="" TextColor="White" FontSize="20" FontFamily="{StaticResource FontAwesomeSolid}" />
</radialMenu:SfRadialMenuItem.View>
</radialMenu:SfRadialMenuItem>
<radialMenu:SfRadialMenuItem x:Name="menuTime" ItemTapped="TimeTap" ItemHeight="25" ItemWidth="25">
<radialMenu:SfRadialMenuItem.View>
<Label Text="" TextColor="White" FontSize="20" FontFamily="{StaticResource FontAwesomeSolid}" />
</radialMenu:SfRadialMenuItem.View>
</radialMenu:SfRadialMenuItem>
</radialMenu:SfRadialMenu.Items>
</radialMenu:SfRadialMenu>
In code behind:
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class RadialMenu : SfRadialMenu
{
bool playPressed = false;
bool pausePressed = false;
bool stepPressed = false;
public RadialMenu ()
{
InitializeComponent ();
pausePressed = true;
menuPause.BackgroundColor = Color.Blue;
}
void PlayTap(object sender, Syncfusion.SfRadialMenu.XForms.ItemTappedEventArgs e)
{
SfRadialMenuItem item = sender as SfRadialMenuItem;
playPressed = !playPressed;
if (playPressed)
{
Clear();
playPressed = true;
menuPause.BackgroundColor = Color.Black;
pausePressed = false;
item.BackgroundColor = Color.Blue;
App.Current.virtualTime = 0.0f;
App.Current.mainPage.StartSimilationTime();
App.Current.simulation = true;
App.Current.simulationPaused = false;
App.Current.mainPage.SetStepMode(false);
Close();
}
else
{
menuPause.BackgroundColor = Color.Blue;
pausePressed = true;
item.BackgroundColor = Color.Black;
App.Current.simulation = false;
App.Current.simulationPaused = true;
}
}
void PauseTap(object sender, Syncfusion.SfRadialMenu.XForms.ItemTappedEventArgs e)
{
SfRadialMenuItem item = sender as SfRadialMenuItem;
if (pausePressed) return;
Clear();
pausePressed = true;
item.BackgroundColor = Color.Blue;
App.Current.simulationPaused = true;
App.Current.mainPage.SetStepMode(false);
}
void StepTap(object sender, Syncfusion.SfRadialMenu.XForms.ItemTappedEventArgs e)
{
SfRadialMenuItem item = sender as SfRadialMenuItem;
stepPressed = !stepPressed;
if (stepPressed)
{
Clear();
stepPressed = true;
pausePressed = false;
item.BackgroundColor = Color.Blue;
if (!App.Current.simulation)
{
App.Current.virtualTime = 0.0f;
App.Current.mainPage.StartSimilationTime();
App.Current.simulation = true;
App.Current.simulationPaused = false;
}
App.Current.mainPage.SetStepMode(true);
Close();
}
else
{
menuPause.BackgroundColor = Color.Blue;
pausePressed = true;
item.BackgroundColor = Color.Black;
App.Current.simulation = false;
App.Current.simulationPaused = true;
App.Current.mainPage.SetStepMode(false);
}
}
void StopTap(object sender, Syncfusion.SfRadialMenu.XForms.ItemTappedEventArgs e)
{
StopSimulation();
}
void TimeTap(object sender, Syncfusion.SfRadialMenu.XForms.ItemTappedEventArgs e)
{
PopupNavigation.Instance.PushAsync(new SimulationSpeed());
}
void Clear()
{
playPressed = false;
pausePressed = false;
stepPressed = false;
menuPlay.BackgroundColor = Color.Black;
menuPause.BackgroundColor = Color.Black;
menuStep.BackgroundColor = Color.Black;
menuTime.BackgroundColor = Color.Black;
}
And I use it like this:
RadialMenu x:Name="radialMenu"
Do I do something wrong? Thank you.