Why current tab changes on screen orientation change Android -



Why current tab changes on screen orientation change Android -

i know why when screen orientation changed current tab changes default 1 in tabhost?

i understand activity destroyed , created again, why state of tabhost isn't saved? per example, text of edittext saved , restored, why different current tab? have myself?

thanks

you responsible managing own tabs ( fragment transactions). follows if want particular tab selected have save state info prior configuration change.

this may help (especially if follow link in answer):

how can prevent current tab view beingness lost when rotating screen?

by default, edittext saves own instance. see yalla t's reply here:

how retain edittext info on orientation change?

android

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -