public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.Inflate(Resource.Layout.FragmentView, null); listView = view.FindViewById <GridView>(Resource.Id.listView); typename = Arguments.GetString("typename"); view.FindViewById <TextView>(Resource.Id.toptype).Text = typename; GetTypeList(); adapter = new MyAdapter(Activity, list); listView.Adapter = adapter; listView.ItemClick += ListView_ItemClick;; return(view); }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.Inflate(Resource.Layout.FragmentView, null); listView = view.FindViewById<GridView>(Resource.Id.listView); typename = Arguments.GetString("typename"); view.FindViewById<TextView>(Resource.Id.toptype).Text = typename; GetTypeList(); adapter = new MyAdapter(Activity, list); listView.Adapter = adapter; listView.ItemClick += ListView_ItemClick; ; return view; }