Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to Refresh a WebView when Tab is Already Selected (OnTabReselected) ???

$
0
0

what's up xamarin fam,
I'm trying to refresh a WebView when the user has already selected a Tab w/ deprecated TabHost / ActionBar using Xamarin.Android.

Here's my code:

    public void OnTabReselected(SpeakersActivity tab, FragmentTransaction ft)
    {
        WebView subWebView = FindViewById<WebView>(Resource.Id.webViewSubs);
        //tell webview to reload
        subWebView.GoBack();
    }

and I've tried putting that code into both the MainActivity and inside my SpeakersActivity. It doesn't crash my app but when I tap the Tab it still does nothing.

Here's my complete code

https://github.com/hexag0d/BitChute_Mobile_Android_a2/blob/2.68/MainActivity.cs

please help, very hard to find the answer for this


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>