Recent articles


Error CS0117 'Resource' does not contain a definition for 'anim'

Posted by seven.srikanth@gmail.com at 08 Nov 2017 in Errors


Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0117	'Resource' does not contain a definition for 'anim'	FrameAnimation	C:\Users\Srikanth\Documents\Visual Studio 2017\Projects\FrameAnimation\FrameAnimation\MainActivity.cs	23	Active

Above error occurred while following the frame_animation article,
The fix for this issue is to change the below code. 
Old Code:
  
        public override void OnWindowFocusChanged(bool hasFocus)
        {
            if (hasFocus)
            {
                ImageView imageView = FindViewById(Resource.anim.animated_android);
                AnimationDrawable animation = (AnimationDrawable)imageView.Drawable;
                animation.Start();
            }
        }

Fixed Code:
public override void OnWindowFocusChanged(bool hasFocus)
        {
            if (hasFocus)
            {
                ImageView imageView = FindViewById(Resource.Id.animated_android);
                AnimationDrawable animation = (AnimationDrawable)imageView.Drawable;
                animation.Start();
            }
        }
Thanks, Srikanth

Tags: 'Resource' does not contain a definition for 'anim'




Error: No resource found that matches the given name (at 'icon' with value '@mipmap/Icon').

Posted by seven.srikanth@gmail.com at 08 Nov 2017 in Errors


Error		7: error: Error: No resource found that matches the given name (at icon with value @mipmap/Icon).	Phoneword	C:\Users\Srikanth\Documents\Visual Studio 2017\Projects\Phoneword\Phoneword\obj\Debug\android\manifest\AndroidManifest.xml	
This is an annoying error that many of us see this error while playing with Icons in our Xamarin Android Project.
Have modified the Icon.png filename to icon.png. You can observe that 'I' is in caps and it's been changed to small i. Have changed the file name in all the mipmap folders. See below image for reference. 


Hope this fixes your issue.
Thanks,
Srikanth

Tags: Icon upload error




Welcome to XamarinCentral

Posted by seven.srikanth@gmail.com at 07 Nov 2017 in News


Hi All,
This is Srikanth here, happy to announce that we are opening XamarinCentral website from today.
Xamarin is a great tool for developers who want to develop apps for Android and IOS using C#.
Through this website, we are going to share Xamarin related articles, news, etc.
Our aim is to build a great Xamarin Community and help the developers in the need.
Thanks so much,
Srikanth

Tags: FirstPost; Welcome;