onecoders / NetEase

NetEase Example
6 stars 6 forks source link

Remove the Animation ActionBar show/hide #62

Closed onecoders closed 10 years ago

onecoders commented 10 years ago

https://github.com/JakeWharton/ActionBarSherlock/commit/9a048b3d5c31003e774f5f528ddc0e929169e579

onecoders commented 10 years ago

Remove or disable ActionBar Hide animation? https://github.com/JakeWharton/ActionBarSherlock/pull/100

onecoders commented 10 years ago

https://github.com/JakeWharton/ActionBarSherlock/commit/311ee6f11d26b5b547870feea80c627a86ba463a

onecoders commented 10 years ago

http://thanksmister.com/2012/04/03/android-removing-fade-effect-from-actionbar/

onecoders commented 10 years ago

public void setShowHideAnimationEnabled(boolean enabled) { mShowHideAnimationEnabled = false; if (!enabled && mCurrentShowAnim != null) { mCurrentShowAnim.end(); } }

onecoders commented 10 years ago

// viewhelper ActionBar.LayoutParams params = new ActionBar.LayoutParams( ActionBar.LayoutParams.MATCH_PARENT, ActionBar.LayoutParams.WRAP_CONTENT, Gravity.CENTER);

onecoders commented 10 years ago

<GridView android:id="@+id/gridview" android:layout_width="match_parent" android:layout_height="wrap_content" android:columnWidth="60dip" android:gravity="center" android:horizontalSpacing="15dip" android:listSelector="@drawable/list_selector" android:numColumns="3"-----here android:stretchMode="columnWidth" android:verticalSpacing="10dip" />