android Programming Glossary: mscrollfade
Fast Scroll display problem with ListAdapter and SectionIndexer http://stackoverflow.com/questions/3225092/fast-scroll-display-problem-with-listadapter-and-sectionindexer private boolean mDrawOverlay private ScrollFade mScrollFade private Handler mHandler new Handler private BaseAdapter mListAdapter.. setOnHierarchyChangeListener this mOverlayPos new RectF mScrollFade new ScrollFade mPaint new Paint mPaint.setAntiAlias true mPaint.setTextAlign.. getWidth final CustomFastScrollView.ScrollFade scrollFade mScrollFade int alpha 1 if scrollFade.mStarted alpha scrollFade.getAlpha..
Fast Scroll display problem with ListAdapter and SectionIndexer http://stackoverflow.com/questions/3225092/fast-scroll-display-problem-with-listadapter-and-sectionindexer int mListOffset private Object mSections private String mSectionText private boolean mDrawOverlay private ScrollFade mScrollFade private Handler mHandler new Handler private BaseAdapter mListAdapter private boolean mChangedBounds public static interface.. setWillNotDraw false Need to know when the ListView is added setOnHierarchyChangeListener this mOverlayPos new RectF mScrollFade new ScrollFade mPaint new Paint mPaint.setAntiAlias true mPaint.setTextAlign Paint.Align.CENTER mPaint.setTextSize mOverlayTextSize.. the rest return final int y mThumbY final int viewWidth getWidth final CustomFastScrollView.ScrollFade scrollFade mScrollFade int alpha 1 if scrollFade.mStarted alpha scrollFade.getAlpha if alpha ScrollFade.ALPHA_MAX 2 mCurrentThumb.setAlpha alpha..
|