Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, April 30, 2019 5:20 AM
Hi everyone.
I'm currrently working on a porject using Xamarin.Android.
I created a 2 files for translate animations of a DialogFragment -> Resources\animations\slideup.xml -> Resources\animations\slideright.xml
I created an style entry for the animations and included them as items pointing the file path above
<style name="dialog_animation">
<item name="android:windowEnterAnimation">@animations/slide_up</item>
<item name="android:windowExitAnimation">@animations/slide_right</item>
</style>
However, when trying to build, I get the error message: 'Invalid Resource Directory Name: path\to\debug\81\res animations "res animations"'
I've tried to clean, and rebuild... Set Build Action for Resources to None, but still no go... :'(
Could someone help me with a fix for this?
All replies (3)
Tuesday, April 30, 2019 8:06 AM
@Andromadus Try to change the folder name to 'anim' rether than 'animations'. Because there is no 'animations' in res supported directory.
Tutorial: https://developer.android.com/guide/topics/resources/providing-resources
Similar issue: https://stackoverflow.com/questions/44830550/invalid-resource-directory-name-res-animation-aapt-exe?answertab=votes#tab-top
Tuesday, April 30, 2019 2:38 PM
Alright @yelinzh . Let me try that out... B)
Thursday, May 2, 2019 7:38 AM
@Andromadus What's the result? Have you fixed it?