我之前一直在使用Xamarin Studio对Google Maps应用程序进行编码,并将文件复制到Visual Studio中使用的新文件夹中.
在Visual Studio中构建Android应用程序时,我收到的所有资源错误都与Google Play组件有关.
这是一个错误:
No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_pressed_dark')
Run Code Online (Sandbox Code Playgroud)
这是XML文件:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_pressed="true"
android:drawable="@drawable/common_signin_btn_icon_pressed_dark" />
<item
android:state_enabled="false"
android:state_focused="true"
android:drawable="@drawable/common_signin_btn_icon_disabled_focus_dark" />
<item
android:state_focused="true"
android:drawable="@drawable/common_signin_btn_icon_focus_dark" />
<item
android:state_enabled="false"
android:drawable="@drawable/common_signin_btn_icon_disabled_dark" />
<item
android:drawable="@drawable/common_signin_btn_icon_normal_dark" />
</selector>
Run Code Online (Sandbox Code Playgroud)
这些资源文件在代码中有多重要?我可以删除XML文件中的引用吗?
提前致谢