SuavePirate / Xamarin.Forms.Controls.FloatingActionButton

A custom view to create a FloatingActionButton for both Android and iOS as part of Material Design
MIT License
120 stars 38 forks source link

You need to use a Theme.AppCompat theme (or descendant) with the design library. #6

Closed TimBarton closed 7 years ago

TimBarton commented 7 years ago

Hi,

I am getting this error. I added the l;ibrary to Protable, IOS, and Droid. I also initiated the FloatingActionButtonRenderer.

Thanks

SuavePirate commented 7 years ago

This means your activity's style needs to inherit from App compat. You can set this in the Activity Attribute above your Activity or in your Android Manifest file.

SuavePirate commented 7 years ago

Closing since this is simply an Android requirement to use the FAB in general. Read more about it here: https://stackoverflow.com/questions/21814825/you-need-to-use-a-theme-appcompat-theme-or-descendant-with-this-activity