Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

Commit 4561964

Browse files
committed
Added ColorStateList for Label class - minor fixes after code review
1 parent 99709e0 commit 4561964

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

library/src/main/java/com/github/clans/fab/FloatingActionMenu.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@ private void init(Context context, AttributeSet attrs) {
134134
mLabelsPaddingLeft = attr.getDimensionPixelSize(R.styleable.FloatingActionMenu_menu_labels_paddingLeft, mLabelsPaddingLeft);
135135
mLabelsTextColor = attr.getColorStateList(R.styleable.FloatingActionMenu_menu_labels_textColor);
136136
// set default value if null same as for textview
137-
if (mLabelsTextColor == null)
138-
mLabelsTextColor = ColorStateList.valueOf(0xFF000000);
137+
if (mLabelsTextColor == null) {
138+
mLabelsTextColor = ColorStateList.valueOf(Color.WHITE);
139+
}
139140
mLabelsTextSize = attr.getDimension(R.styleable.FloatingActionMenu_menu_labels_textSize, getResources().getDimension(R.dimen.labels_text_size));
140141
mLabelsCornerRadius = attr.getDimensionPixelSize(R.styleable.FloatingActionMenu_menu_labels_cornerRadius, mLabelsCornerRadius);
141142
mLabelsShowShadow = attr.getBoolean(R.styleable.FloatingActionMenu_menu_labels_showShadow, true);

0 commit comments

Comments
 (0)