-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from brookmg/feat/badge
Add badge to bottom bar item
- Loading branch information
Showing
8 changed files
with
187 additions
and
2 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
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
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
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,16 @@ | ||
package me.ibrahimsn.lib | ||
|
||
import android.graphics.Color | ||
|
||
/** | ||
* Created by BrookMG on 4/8/2020 in me.ibrahimsn.lib | ||
inside the project SmoothBottomBar . | ||
*/ | ||
data class Badge ( | ||
var badgeSize: Float, | ||
var badgeText: String = "", | ||
var badgeColor: Int, | ||
var badgeTextColor: Int = Color.BLACK, | ||
var badgeBoxCornerRadius: Float = 8F, | ||
var badgeType: BadgeType = BadgeType.CIRCLE | ||
) |
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,9 @@ | ||
package me.ibrahimsn.lib | ||
|
||
/** | ||
* Created by BrookMG on 4/8/2020 in me.ibrahimsn.lib | ||
inside the project SmoothBottomBar . | ||
*/ | ||
enum class BadgeType { | ||
CIRCLE , BOX | ||
} |
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
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
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