private void UpdateUI()
        {
            textTitle.Text = courseManager.Current.Title;
            textDesc.Text  = courseManager.Current.Description;

            imageContent.SetImageResource(ResouceHelper.TranslateDrawableWithReflection(courseManager.Current.Image));
            //buttonPrev.Enabled = courseManager.CanMovePrev;
            //buttonNext.Enabled = courseManager.CanMoveNext;
        }
Beispiel #2
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            // Use this to return your custom view for this Fragment
            // return inflater.Inflate(Resource.Layout.YourFragment, container, false);
            View rootView = inflater.Inflate(Resource.Layout.CourseFragment, container, false);

            textTitle    = rootView.FindViewById <TextView>(Resource.Id.textTitle);
            imageContent = rootView.FindViewById <ImageView>(Resource.Id.imageContent);
            textDesc     = rootView.FindViewById <TextView>(Resource.Id.textDesc);


            textTitle.Text = Course.Title;
            textDesc.Text  = Course.Description;

            imageContent.SetImageResource(ResouceHelper.TranslateDrawableWithReflection(Course.Image));

            return(rootView);
        }