안드로이드 설명서를보고 있는데 include 및 merge를 사용하고 싶습니다.Monodroid - 레이아웃을 포함하는 방법?
그래서 나는 일식을 열고 밖으로 코드의 일부를 추출하는 그것을 가지고 내가 할 때 아직 내 레이아웃에
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:text="Loading..." android:layout_height="wrap_content" android:layout_width="wrap_content" android:textAppearance="?android:attr/textAppearanceLarge" android:id="@+id/lblLoading" android:layout_marginLeft="180dp" android:layout_marginTop="240dp"></TextView>
<ProgressBar android:id="@+id/progBar" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_marginLeft="130dp" android:layout_marginTop="230dp"></ProgressBar>
</merge>
이
<include layout="@layout/progressbar" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
및 다른 파일을 만든 이것은 monodroid에서 나는 병합을 발견하고 포함 할 수 없다는 에러를 얻는다.
"경고가 오류로 설정 되었습니까?" 코드 완성을 위해 Android 용 Mono에는 .axml 파일 용 XSD가 포함되어 있으며 XSD에는 ' '또는 ' '이 지정되어 있지 않으므로 Visual Studio에서 경고를 생성합니다. 안드로이드 용 모노는 그들에 대해 신경 쓰지 않고, 'aapt'에 패스한다. –
jonp