Example #1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            View     root     = inflater.Inflate(Resource.Layout.home_frag, container, false);
            GridView gridView = (GridView)root.FindViewById(Resource.Id.home_gridView);

            gridView.NumColumns = 2;
            gridView.Adapter    = new GridViewAdapter(Parent, 4, ImageTitle.ConvertFrom(NavViewData.Instance.Titles,
                                                                                        NavViewData.Instance.Images));
            gridView.ItemClick += GridView_ItemClick;

            return(root);
        }
Example #2
0
 private ImageTitle[] GetImageTitles()
 {
     return(ImageTitle.ConvertFrom(SubjectsData.Instance.SubjectsTitle, SubjectsData.Instance.SubjectsImage));
 }