MainActivity.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:floatingMenu 作者:
private void initUi(){
    fab_1 = (FloatingMenuButton) findViewById(R.id.fab_1);
    fab_1.setStartAngle(0)
            .setEndAngle(360)
            .setAnimationType(AnimationType.EXPAND)
            .setAnchored(false);
    fab_1.getAnimationHandler()
            .setOpeningAnimationDuration(500)
            .setClosingAnimationDuration(200)
            .setLagBetweenItems(0)
            .setOpeningInterpolator(new FastOutSlowInInterpolator())
            .setClosingInterpolator(new FastOutLinearInInterpolator())
            .shouldFade(true)
            .shouldScale(true)
            .shouldRotate(false)
    ;

    fab_2 = (FloatingMenuButton) findViewById(R.id.fab_2);
    fab_2.setStartAngle(0)
            .setEndAngle(360)
            .setAnimationType(AnimationType.RADIAL)
            .setAnchored(false);
    fab_2.getAnimationHandler()
            .setOpeningAnimationDuration(500)
            .setClosingAnimationDuration(200)
            .setLagBetweenItems(0)
            .setOpeningInterpolator(new FastOutSlowInInterpolator())
            .setClosingInterpolator(new FastOutLinearInInterpolator())
            .shouldFade(true)
            .shouldScale(true)
            .shouldRotate(false)
    ;

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号