File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
library/src/main/java/com/race604/flyrefresh Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 11
11
import android .graphics .drawable .shapes .OvalShape ;
12
12
import android .os .Build ;
13
13
import android .support .design .widget .FloatingActionButton ;
14
+ import android .support .v4 .view .ViewCompat ;
14
15
import android .util .AttributeSet ;
15
16
import android .view .MotionEvent ;
16
17
import android .view .VelocityTracker ;
@@ -158,8 +159,12 @@ public void setActionDrawable(Drawable actionDrawable) {
158
159
mFlyView = new ImageView (getContext ());
159
160
mFlyView .setScaleType (ImageView .ScaleType .FIT_XY );
160
161
addView (mFlyView , new LayoutParams (ACTION_ICON_SIZE , ACTION_ICON_SIZE ));
162
+ mFlyView .bringToFront ();
163
+ float elevation = ViewCompat .getElevation (mActionView );
164
+ ViewCompat .setElevation (mFlyView , elevation + 1 );
161
165
}
162
166
mFlyView .setImageDrawable (mActionDrawable );
167
+
163
168
} else {
164
169
if (mActionView != null ) {
165
170
removeView (mActionView );
You can’t perform that action at this time.
0 commit comments