Sur*_*raj 4 android mvvmcross xamarin
我正在使用MvvmCross来创建PCL.在我的Android应用程序中,我创建了一个名为itemc.axml的ItemTemplate的mvx.mvxListView.文件itemc.axml在Layout文件夹中创建,但仍然会出现此错误.错误 - 找不到与给定名称匹配的资源(在'MvxItemTemplate'处,值为'@ layout/itemc')
为什么?
我的FirstView.axml文件如下
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res/constD.Droid"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button
android:text="Show Constituencies"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/button1" />
<Mvx.MvxListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
local:MvxBind="ItemsSource Result"
local:MvxItemTemplate="@layout/itemc" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
我的itemc.axml文件如下.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="40dp"
local:MvxBind="Text name" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
为什么会这样?
归档时间: |
|
查看次数: |
1450 次 |
最近记录: |