- A button that will work on 'Rootview' you dont need set to any page. If you want, you can add sub-elements and use it in 5 different ways
https://www.nuget.org/packages/Xamarin.RisePlugin.Floatingactionbutton
- Step1
Add the following NuGet package to your solution.
- Step2 (IOS)
You must add this line to your AppDelegate.cs before you use Floatingactionbutton
Xamarin.RisePlugin.IOS.Floatingactionbutton.COAFloatingactionbutton.Init();
- Step2 (ANDROID)
You must add this code to your MainActivity.cs before you use Floatingactionbutton
public override void SetContentView(Android.Views.View view)
{
Xamarin.RisePlugin.Droid.Floatingactionbutton.RootView.View = (Android.Widget.RelativeLayout)view;
base.SetContentView(view);
}
Supports |
---|
Xamarin 4.8>= |
Android Latest Version |
IOS Latest Version |
Platforms |
---|
IOS |
Android |
Property | What it does |
---|---|
Open | Adding 'Mainbutton' to the rootview. |
Close | Deletes 'Mainbutton' to the rootview. |
CircleAngle | Set the distance between the circle. |
SubViewSpacing | Set spacing between subviews |
ActionOrientation | MainButton position (left, center, right) |
OpeningType | Subviews opening type (Circle, VerticalTop, VerticalBottom, HorizontalLeft, HorizontalRight) |
MainButtonView | Set Mainbutton(Use ActionButtonView) |
IsSubShowing | Check SubViews |
IsShowing | Check Floatingactionbutton |
SubViews | List of subview |
ShowSubView | With animation |
HideSubView | With animation |
Click | Click Event |
LongClick | Long Click Evet |