Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Changes to viewflow adding features #74

Open
Golgorz opened this issue Jun 7, 2012 · 2 comments
Open

Changes to viewflow adding features #74

Golgorz opened this issue Jun 7, 2012 · 2 comments

Comments

@Golgorz
Copy link

Golgorz commented Jun 7, 2012

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

@shimiuh
Copy link

shimiuh commented Feb 21, 2013

yes pleas post solution for on title click featuer
thanks

@shimiuh
Copy link

shimiuh commented Feb 21, 2013

what is
1.getSelectedItemPosition()
2.getViewTreeObserver()
3.orientationChangeListener

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants