Exemple #1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            View view = inflater.Inflate(Resource.Layout.MenuTab, container, false);

            mRecyclerView = view.FindViewById <RecyclerView>(Resource.Id.recyclerView1);

            getID = RestaurantProfileActivity.sendData();
            if (getID != null)
            {
                getMenuTypes(getID);
            }
            else
            {
                Console.WriteLine("can't retrieve restaurant ID");
            }

            return(view);
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            View view = inflater.Inflate(Resource.Layout.InfoTab, container, false);

            mRecyclerView = view.FindViewById <RecyclerView>(Resource.Id.recyclerView1);

            getID = RestaurantProfileActivity.sendData();
            if (getID != null)
            {
                //Toast.MakeText(Context as Activity, getID, ToastLength.Short).Show();
                getRatings(getID);
            }
            else
            {
                Toast.MakeText(Context as Activity, "Nothing again", ToastLength.Short).Show();
            }

            return(view);
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            View view = inflater.Inflate(Resource.Layout.InfoTab, container, false);

            mRecyclerView = view.FindViewById <RecyclerView>(Resource.Id.recyclerView1);

            //getting the ID of the current restaurant displayed
            getID = RestaurantProfileActivity.sendData();
            if (getID != null)
            {
                restaurantInfo(getID);
            }
            else
            {
                Toast.MakeText(Context as Activity, "Something went wrong", ToastLength.Short).Show();
            }

            return(view);
        }