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); }
private ImageTitle[] GetImageTitles() { return(ImageTitle.ConvertFrom(SubjectsData.Instance.SubjectsTitle, SubjectsData.Instance.SubjectsImage)); }