LottieXamarin icon indicating copy to clipboard operation
LottieXamarin copied to clipboard

LottieAnimationView is an AppCompat widget that can only be used with a Theme.AppCompat

Open bbenetskyy opened this issue 3 years ago • 0 comments

💬 Questions and Help

At Debug Mode in the output of my application I found this:

View class com.airbnb.lottie.LottieAnimationView is an AppCompat widget that can only be used with a Theme.AppCompat theme

Animation is still showing as expected, and I'm not sure how critical it is and what is the right way to solve that 🤔

My style.xml in Android Project is next:

<?xml version="1.0" encoding="utf-8" ?>
<resources>
	<!-- Base theme applied no matter what API -->
	<style name="MainTheme.Base"
		   parent="Theme.AppCompat.Light.DarkActionBar">
		<!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
		<item name="windowNoTitle">true</item>
		<!--We will be using the toolbar so no need to show ActionBar-->
		<item name="windowActionBar">false</item>
		<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette -->
		<!-- colorPrimary is used for the default action bar background -->
		<item name="colorPrimary">#2196F3</item>
		<!-- colorPrimaryDark is used for the status bar -->
		<item name="colorPrimaryDark">#FFFFFF</item>
		<item name="android:windowLightStatusBar">true</item>
		<!-- colorAccent is used as the default value for colorControlActivated
		 which is used to tint widgets -->
		<item name="colorAccent">#FF4081</item>
		<!-- You can also set colorControlNormal, colorControlActivated
		 colorControlHighlight and colorSwitchThumbNormal. -->
		<item name="windowActionModeOverlay">true</item>

		<!--Remove all caps-->
		<item name="android:textAllCaps">false</item>

		<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
	</style>

	<style name="AppCompatDialogStyle"
		   parent="Theme.AppCompat.Light.Dialog">
		<item name="colorAccent">#FF4081</item>
	</style>

	<style name="MainTheme.Splash"
		   parent="MainTheme.Base">
		<item name="android:windowBackground">@drawable/splash_screen</item>
		<item name="android:windowNoTitle">true</item>
		<item name="android:windowFullscreen">true</item>
		<item name="android:windowContentOverlay">@null</item>
		<item name="android:windowActionBar">false</item>
	</style>
</resources>

Thanks in advance 🙃

bbenetskyy avatar Nov 24 '21 09:11 bbenetskyy