4

I need some help getting NativeCSS running for Xamarin.Android (in Xamarin Studio). What I have done:

-Added .dll to References in my Xamarin project.

-Added styles.css file to different folders (root, Assets, Resources, and also to the debug output folder). (Question: What is the folder, NativeCSS expects the .css file??)

-Added the following code to my MainActivity.cs:

        NativeCSS.StyleWithCSS("styles.css",
            new Uri("http:url"), 
            RemoteContentRefreshPeriod.Never);

But I can not see any style changes of my project.

I hope somebody can help me. I really appreciate every help.

EVZ
  • 41
  • 2

1 Answers1

1

Checkout the sample project TaskyDroid, which does exactly what you want:

Assets folder Asset Properties Code

user363349
  • 1,228
  • 14
  • 16