Hi, I am newer for android .
I read this post https://www.raywenderlich.com/127544/android-gridview-getting-started
I get confused , When screen orientation changed, why not tell gridview redraw itself. it works as well .
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
…
// Why not call adapter dateset changed ?
}
I see log onRestoreInstanceState method called after onCreate method.
Activity main lifecyle :
onCreate → onStart → onResume (view draw finished ?) → front
How ensure change book status finish (onRestoreInstanceState) . the Gridview getting started draw iteself ?
onCreate method called not draw view ?