You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
Let me explain, the onscreen rotation changes didnt work for me and messes up the screens and titleflow.
I added some changes to the viewflow.java to fix this issue:
public void onConfigurationChanged(Configuration newConfig) {
if (newConfig.orientation != mLastOrientation) {
mLastOrientation = newConfig.orientation;
//added this line:
setSelection(getSelectedItemPosition());
getViewTreeObserver().addOnGlobalLayoutListener(orientationChangeListener);
}
}
also, i wanted the titles to be clickable, i know other project did this, but i already have done everything with pakerfeldt library and just dont want to change all, so i coded the on title click featuer (just for the next right and left titles) if interested i can post my solution.
thanks to all, and sorry if this all is useless
The text was updated successfully, but these errors were encountered:
Let me explain, the onscreen rotation changes didnt work for me and messes up the screens and titleflow.
I added some changes to the viewflow.java to fix this issue:
public void onConfigurationChanged(Configuration newConfig) {
if (newConfig.orientation != mLastOrientation) {
mLastOrientation = newConfig.orientation;
//added this line:
setSelection(getSelectedItemPosition());
getViewTreeObserver().addOnGlobalLayoutListener(orientationChangeListener);
}
}
also, i wanted the titles to be clickable, i know other project did this, but i already have done everything with pakerfeldt library and just dont want to change all, so i coded the on title click featuer (just for the next right and left titles) if interested i can post my solution.
thanks to all, and sorry if this all is useless
The text was updated successfully, but these errors were encountered: