2016-11-28 17 views
1

私はXamarinのガイドに従っていますが、RecyclerViewを参照してそのインスタンスを作成することはできません。名前空間名前RecyclerViewが見つかりません

JDK 8がインストールされています。 Xamarin.Android.Support.v7.RecyclerViewパッケージとそのすべての依存関係をインストールしました。私はAPIレベル24を目標にしていますが、ダイスはまだありません。

この問題を参照しているオンラインのものは見つかりません。何か案は?

using System; 
using System.Collections.Generic; 
using System.Data; 
using System.Threading.Tasks; 

using Android.App; 
using Android.Content; 
using Android.OS; 
using Android.Runtime; 
using Android.Support.V7.RecyclerView; 
using Android.Views; 
using Android.Widget; 

namespace ArbanQC 
{ 
    [Activity(Label = "LoadsActivity")] 
    public class LoadsActivity : Activity 
    { 
     ProgressDialog progress; 
     bool ScheduleShowing; 
     RecyclerView grid; //Namespace is not recognized here. 
     List<Load> loads = new List<Load>(); 

     protected override void OnCreate(Bundle savedInstanceState) 
     { 
      base.OnCreate(savedInstanceState); 
      RequestWindowFeature(WindowFeatures.NoTitle); 
      SetContentView(Resource.Layout.Loads); 

      grid = FindViewById<RecyclerView>(Resource.Id.loadsGrid); //Also not recognized here 

      ScheduleShowing = true; 
     } 
    } 
} 

答えて

2

あなたのusingディレクティブ:

using Android.Support.V7.RecyclerView;

が正しくありません - それは次のようになります。

using Android.Support.V7.Widget;

+0

ありがとうございました。そのいつも何か超簡単。 – user1920158

関連する問題