|
@@ -2,7 +2,11 @@ package com.reactnativenavigation.views.titlebar;
|
2
|
2
|
|
3
|
3
|
import android.annotation.SuppressLint;
|
4
|
4
|
import android.content.Context;
|
|
5
|
+import android.graphics.PorterDuff;
|
|
6
|
+import android.graphics.PorterDuffColorFilter;
|
5
|
7
|
import android.graphics.Typeface;
|
|
8
|
+import android.graphics.drawable.Drawable;
|
|
9
|
+import android.support.v7.widget.ActionMenuView;
|
6
|
10
|
import android.support.v7.widget.Toolbar;
|
7
|
11
|
import android.util.Log;
|
8
|
12
|
import android.view.View;
|
|
@@ -184,4 +188,14 @@ public class TitleBar extends Toolbar {
|
184
|
188
|
lp.height = pixelHeight;
|
185
|
189
|
setLayoutParams(lp);
|
186
|
190
|
}
|
|
191
|
+
|
|
192
|
+ public void setOverflowButtonColor(int color) {
|
|
193
|
+ ActionMenuView actionMenuView = ViewUtils.findChildByClass(this, ActionMenuView.class);
|
|
194
|
+ if (actionMenuView != null) {
|
|
195
|
+ Drawable overflowIcon = actionMenuView.getOverflowIcon();
|
|
196
|
+ if (overflowIcon != null) {
|
|
197
|
+ overflowIcon.setColorFilter(new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_IN));
|
|
198
|
+ }
|
|
199
|
+ }
|
|
200
|
+ }
|
187
|
201
|
}
|