示例#1
0
 @Override
 protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
   super.onLayout(changed, left, top, right, bottom);
   if (changed) {
     removeCallbacks(mShowIndicatorRunnable);
     if (!isInEditMode()) {
       mIndicator.dismissComplete();
     }
     updateFromDrawableState();
   }
 }
示例#2
0
 @Override
 protected void drawableStateChanged() {
   super.drawableStateChanged();
   updateFromDrawableState();
 }