Skip to content

Commit

Permalink
Preparing release
Browse files Browse the repository at this point in the history
  • Loading branch information
HBiSoft committed Feb 27, 2020
1 parent f7988e3 commit a97f0b4
Show file tree
Hide file tree
Showing 13 changed files with 173 additions and 64 deletions.
Binary file modified .gradle/5.4.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/5.4.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/5.4.1/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified .gradle/5.4.1/javaCompile/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
229 changes: 165 additions & 64 deletions .idea/workspace.xml

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions fabb/src/main/java/com/hbisoft/fabb/Fabb.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,18 @@ private void init(Context mContext, AttributeSet attrs, int defStyleAttr) {
int fabActionOneBackgroundColor = a.getColor(R.styleable.Fabb_setActionOneBackgroundColor, defStyleAttr);
int fabActionTwoBackgroundColor = a.getColor(R.styleable.Fabb_setActionTwoBackgroundColor, defStyleAttr);
int fabActionThreeBackgroundColor = a.getColor(R.styleable.Fabb_setActionThreeBackgroundColor, defStyleAttr);

int fabActionButtonCount = a.getInteger(R.styleable.Fabb_setNumberOfActions, -1);

Drawable fabMainIcon = a.getDrawable(R.styleable.Fabb_setMainIcon);
Drawable fabActionOneIcon = a.getDrawable(R.styleable.Fabb_setActionOneIcon);
Drawable fabTwoIcon = a.getDrawable(R.styleable.Fabb_setActionTwoIcon);
Drawable fabThreeIcon = a.getDrawable(R.styleable.Fabb_setActionThreeIcon);
mainFabOpenedColor = a.getColor(R.styleable.Fabb_setMainFabOpenedColor, defStyleAttr);

if (fabActionButtonCount != -1){
setNumberOfActions(fabActionButtonCount);
}

if (fabMainBackgroundColor != 0) {
fab_main.setBackgroundTintList(ColorStateList.valueOf(fabMainBackgroundColor));
Expand Down
2 changes: 2 additions & 0 deletions fabb/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

<attr name="keepOpenUntilAction" format="boolean"/>

<attr name="setNumberOfActions" format="integer"/>

</declare-styleable>

</resources>

0 comments on commit a97f0b4

Please sign in to comment.