android-viewflow icon indicating copy to clipboard operation
android-viewflow copied to clipboard

Changes to viewflow adding features

Open Golgorz opened this issue 12 years ago • 2 comments

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

Golgorz avatar Jun 07 '12 01:06 Golgorz

yes pleas post solution for on title click featuer thanks

shimiuh avatar Feb 21 '13 13:02 shimiuh

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

shimiuh avatar Feb 21 '13 13:02 shimiuh