/// <summary>
		/// Initializes the fragment, this should
		/// be called in the 'OnCreateView' method
		/// *after* Cheeseknife injection is complete.
		/// </summary>
		void InitFragment() {
			// We have set this fragment to RetainInstance = true
			// so no need to recreate our listAdapter after
			// config changes etc.
			if(listAdapter == null) {
				listAdapter = new ListSampleAdapter();
			}
			// Set our listView adapter
			listView.Adapter = listAdapter;
		}
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes the fragment, this should
 /// be called in the 'OnCreateView' method
 /// *after* Cheeseknife injection is complete.
 /// </summary>
 void InitFragment()
 {
     // We have set this fragment to RetainInstance = true
     // so no need to recreate our listAdapter after
     // config changes etc.
     if (listAdapter == null)
     {
         listAdapter = new ListSampleAdapter();
     }
     // Set our listView adapter
     listView.Adapter = listAdapter;
 }