NativeCSS & Xamarin.Android

586 views Asked by At

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.

1

There are 1 answers

0
user363349 On

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

Assets folder Asset Properties Code