-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# FloatActionView | ||
|
||
![](https://github.com/jiang111/FloatActionView/raw/master/art/art.gif) | ||
|
||
|
||
|
||
### usage | ||
``` | ||
FloatActionView actionView = findViewById(R.id.actionview); | ||
actionView.setMainButtonIcon(R.drawable.ic_add_black_24dp); | ||
actionView.setOnClick(new FloatActionView.OnClick() { | ||
@Override | ||
public void positionClicked(int position) { | ||
Log.i(TAG, "positionClicked: " + position); | ||
} | ||
@Override | ||
public void mainClicked() { | ||
Log.i(TAG, "mainClicked: "); | ||
} | ||
@Override | ||
public void dismissed() { | ||
Log.i(TAG, "dismissed: "); | ||
} | ||
}); | ||
List<String> tips = new ArrayList<>(); | ||
List<Integer> images = new ArrayList<>(); | ||
actionView.setData(tips, images); | ||
//可通过new FloatActionView.Builder()来对整个样式进行全局配置 | ||
menuTextSize //菜单中的文字大小 | ||
menuTextColor //菜单中的文字颜色 | ||
menuImageSize //菜单中的图片大小 | ||
mainImageSize //加号图片大小 | ||
animatDelay //菜单动画延迟的时间 | ||
animatDuration //动画时长 | ||
mainRotateAble //加号按钮是否更随动画旋转 | ||
blurRadius //背景模糊 | ||
blurFactor //背景模糊 | ||
``` | ||
|
||
|