Baseflow / Baseflow/LottieXamarin
LottieAnimationView is an AppCompat widget that can only be used with a Theme.AppCompat
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 253
- PR merge metrics
- No merged PRs in 30d
Description
## 💬 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
<!--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>
<item name="colorAccent">#FF4081</item>
<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>
```
Thanks in advance 🙃
Contributor guide
Research direction
Start with the Android project's style.xml, especially MainTheme.Base and MainTheme.Splash, and review the reported LottieAnimationView warning against the Theme.AppCompat declarations shown. Reproduce the debug-mode output and determine whether the warning can be resolved while the animation continues to display as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100