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

How to get selected current tab of a TabHost control after changing the orientation of the android

$
0
0

Hi,
I am working with Tabhost control in Android C#. It has 4 items. when I am selecting the 2nd tab item (in portrait mode) it shows the correct item of 2nd tab properly (in portrait mode), but when I am changing the rotation from Portrait to landscape then by default OnCreate() method is firing and then Tabhost current tab is set to -1 and every time it selects the 1st tab automatically in landscape mode.

How to resolve this problem. It is happening every time I change the orientation.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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