コード例 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            Cheeseknife.Inject(this);

            rvProducts.SetLayoutManager(new LinearLayoutManager(this));
            products = Ultilities.GetDefaultData <Product>("data.json");
            adapter  = new ProductAdapter(products);
            rvProducts.SetAdapter(adapter);
        }