I’m trying to implement a .java splash screen in my Monodroid app in Visual Studio, anyway I want the splash screen to get it’s content view from a resouces layout. I’m trying to get it like this:
setContentView(R.layout.AppSplash);
Also tried with:
setContentView(Resource.layout.AppSplash);
And also:
setContentView("@layout/AppSplash");
And I get error messages like this:
package R does not exist
Where R changes for Resources or:
cannot find symbol
symbol : method setContentView(java.lang.String)
location: class SwimmerTimesCalc.SplashActivity
setContentView("@layout/AppSplash");
When I try the @layout/AppSplash option
How can I access the Monodroid resources to set the layout of my Splash Screen?
I figured out how to access the resources, since the debugger couldnt access the resources I went to the generated resources file that is in the project folder under \obj[This can be debug or release]\android\src and it’s called R. While browsing that file I found the layout I was trying to use like this:
I took the resource value from there that is 0x7f030002 and used it like this:
Anyway as the resources file is autogenerated, adding another layout that goes alphabetically before this may require to do this proccess again.