主页 > APP源码 > Menu Animation
Menu Animation

未知

Menu Animation

  发布时间:2017-04-03

编号 M290   软件大小 未知

30金币 VIP免费下载
xia***nzi 28元 购买了 月费VIP 会员
草*** 28元 购买了 月费VIP 会员
Mj*** 28元 购买了 月费VIP 会员
醉***晴抒 28元 购买了 月费VIP 会员
卓***哥 98.00元 购买了 终身VIP 会员
ge*** 98元 购买了 终身VIP 会员
小***葛 28元 购买了 月费VIP 会员
迷***为谁 28元 购买了 月费VIP 会员
eee*** 28元 购买了 月费VIP 会员
zha***iao 28元 购买了 月费VIP 会员
  • 源码介绍
  • 下载记录
  • 用户评价
 
  • FrameLayout frameLayout = (FrameLayout) findViewById(R.id.container);

    PromotedActionsLibrary promotedActionsLibrary = new PromotedActionsLibrary();
    
    // setup library
    promotedActionsLibrary.setup(getApplicationContext(), frameLayout);
    
    // create onClickListener for each promoted action
    View.OnClickListener onClickListener = new View.OnClickListener() {
        @Override
            public void onClick(View view) {
                // Do something
        }
    };
    
    // customize promoted actions with a drawable
    promotedActionsLibrary.addItem(getResources().getDrawable(android.R.drawable.ic_menu_edit), onClickListener);
    promotedActionsLibrary.addItem(getResources().getDrawable(android.R.drawable.ic_menu_send), onClickListener);
    promotedActionsLibrary.addItem(getResources().getDrawable(android.R.drawable.ic_input_get), onClickListener);
    
    // create main floating button and customize it with a drawable
    promotedActionsLibrary.addMainItem(getResources().getDrawable(android.R.drawable.ic_input_add));

分享:

共有 条评论

    热门源码

    高仿微信主界面

    2017-03-24   浏览:6994

    高仿大众点评最新版

    2017-03-31   浏览:6127

    安卓聊天DEMO

    2017-03-26   浏览:4692