0

我正在使用一个CircularFloatingActionMenu库,我已经成功实现了这个库,但是我想增加4个子动作按钮的大小

请在下面找到正在使用的代码

final ImageView fabIconNew = new ImageView(this);
  fabIconNew.setImageDrawable(getResources().getDrawable(R.drawable.ic_action_new));
final FloatingActionButton rightLowerButton = new FloatingActionButton.Builder(this)
        .setContentView(fabIconNew)
        .build();


SubActionButton.Builder rLSubBuilder = new SubActionButton.Builder(this);
ImageView rlIcon1 = new ImageView(this);
ImageView rlIcon2 = new ImageView(this);
ImageView rlIcon3 = new ImageView(this);
ImageView rlIcon4 = new ImageView(this);
//ImageView rlIcon6 = new ImageView(this);


rlIcon1.setImageDrawable(getResources().getDrawable(R.drawable.ic_action_contact));
rlIcon2.setImageDrawable(getResources().getDrawable(R.drawable.ic_action_currency_info));
rlIcon3.setImageDrawable(getResources().getDrawable(R.drawable.ic_action_exhibition));
rlIcon4.setImageDrawable(getResources().getDrawable(R.drawable.ic_action_faq));

图片

4

2 回答 2

6

您可以LayoutParamsSubactionButton.Builder

SubActionButton.Builder rLSubBuilder = new SubActionButton.Builder(this);
LayoutParams params=new LayoutParams(200,200);
rLSubBuilder.setLayoutParams(params);
于 2015-11-02T23:03:26.677 回答
1

在此处输入图像描述

LayoutParams params=new LayoutParams(80,80);
button1.setLayoutParams(params)

更多参考[圆形浮动操作菜单][2]

于 2016-01-20T12:48:26.930 回答