我正在尝试在我的应用中使用FloatingActionButton但它失败了。在onCreate()下面添加一段代码后,我收到错误“无法解析符号'Builder'.. ..
ImageView icon = new ImageView(this);
icon.setImageResource(R.drawable.plus);
FloatingActionButton actionButton = new FloatingActionButton.Builder(this)
.setContentView(icon)
.build();
这是我的依赖
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'com.android.support:support-v4:23.2.0'
compile 'com.android.support:design:23.2.0'
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
compile 'com.oguzdev:CircularFloatingActionMenu:1.0.2'