I'm trying use MvxListView
with MvxAppCompatActivity
, but I always get:
InflateException: Error inflating class Mvx.MvxListView ClassNotFoundException: Didn't find class "Mvx.MvxListView
Here is my axml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/com.viniciusmaia.missaocarona"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
layout="@layout/Toolbar" />
<Mvx.MvxListView
android:id="@+id/teste"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
app:MvxBind="ItemsSource Usuarios;ItemClick UsuarioClickCommand"
app:MvxItemTemplate="@layout/usuarioitem"/>
</LinearLayout>
Here is my Activity:
[Activity]
public class UsuarioActivity : MvxAppCompatActivity<UsuarioViewModel>
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
SetContentView(Resource.Layout.UsuarioView);
var toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);
toolbar.Title = UsuarioMensagens.TITULO_Usuario;
//SetSupportActionBar(toolbar);
Window.AddFlags(WindowManagerFlags.DrawsSystemBarBackgrounds);
ViewModel.Carregamento = new Carregamento(this);
ViewModel.PreenchePagina();
}
}
I tried use Mvx.MvxListview
and MvxListView
like this post Binary XML file line #1: Error inflating class Mvx.MvxListView, but nothing works for me.
Can anyone help me?