을 찾을 수 없습니다. 나는이 문제에 다소 새로운 것이므로이 문제를 해결하는 방법을 찾을 수 없습니다. layour 폴더 내부대 안드로이드는 리소스
Severity Code Description Project File Line Suppression State Error No resource found that matches the given name (at 'style' with value '@style/spinner_style'). xx.Droid C:\Users\xx\Documents\Visual Studio 2015\Projects\xx\xx\xx.Droid\Resources\layout\spinner.xml 2
: 그것은 자원을
오류를 찾을 수 없습니다 내게 말하고 내 자신의 프로젝트에 모든 파일을 넣어 후 https://github.com/amccorma/xamarin-amccorma/tree/master/Forms.DropDown
: 나는 여기에서 찾을 사용자 지정 컨트롤을 사용하려면
<?xml version="1.0" encoding="utf-8" ?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/Lspinner"
android:paddingLeft="5dp">
<LinearLayout
android:id="@+id/parentLayoutSpinner"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:showDividers="none">
<xx.Droid.CustomRenderers.DDPicker.MyAppCompatSpinner xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/spinner2"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:contextClickable="false"
style="@style/spinner_style" />
: 자원이 같은 spinner.xml 파일이있다
EDIT : .droid/obj를 제거하고 솔루션을 다시 정리하면 Resource.Designer.cs 파일에 항목이 없습니다.
OLD : 나는 성공없이 내 Resource.Designer.cs 파일에 스타일을 추가했습니다.
// aapt resource value: 0x7f0a0174
public const int spinner_style = 2131362164;
자동으로 생성되었지만 파일을 다시 생성 할 수는 없습니다. 파일 내용을 제거하면 파일에 의존하는 다른 클래스가 솔루션을 다시 빌드 할 수 없습니다.
도움을 주시면 대단히 감사하겠습니다.
당신은 당신이 여기의 예에서 필요로하는 스타일을 찾을 수 있습니다