public void OnTabSelected(global::Android.Support.V7.App.ActionBar.Tab tab, global::Android.Support.V4.App.FragmentTransaction transaction) { // TODO: Set new web page for tab.Text; // string baseURL = "file://" + System.IO.Path.Combine (global::Android.OS.Environment.ExternalStorageDirectory.AbsolutePath, "WF.Player", ""); switch (tab.Position) { case 0: InitDetailInfo(); // string html; // using (var input = this.Assets.Open("CartridgeDetail.html")) // using (StreamReader sr = new System.IO.StreamReader(input)) { // html = sr.ReadToEnd (); // } // ; // html = html.Replace ("cartridge.Name", cart.Name); // html = html.Replace ("cartridge.AuthorName", cart.AuthorName); // html = html.Replace ("cartridge.AuthorCompany", cart.AuthorCompany); // webView.LoadDataWithBaseURL (baseURL, html, "text/html", "utf-8", null); break; case 1: InitDetailDescription(); break; case 2: InitDetailHistory(); break; case 3: InitDetailLogs(); break; } }
public void OnTabUnselected(global::Android.Support.V7.App.ActionBar.Tab tab, global::Android.Support.V4.App.FragmentTransaction transaction) { }