1)
CoordinatorLayout.LayoutParams p = (CoordinatorLayout.LayoutParams) fab.getLayoutParams();
p.setBehavior(new ScrollAwareFABBehavior(mContext));
fab.setLayoutParams(p);
fab.hide();
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
fab.show();
}
}, 2000);
CoordinatorLayout.LayoutParams p = (CoordinatorLayout.LayoutParams) fab.getLayoutParams();
p.setBehavior(new ScrollAwareFABBehavior(mContext));
fab.setLayoutParams(p);
fab.hide();
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
fab.show();
}
}, 2000);
2)<android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:scaleType="center"
android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin"
android:src="@mipmap/comment_icon" app:fabSize="normal" />
No comments:
Post a Comment