-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to change seperator line color #45
Comments
how to change seperator line color? |
yes |
I think you can change the color only by editing directly the node_package which is anti pattern. try editing your
I solved this issue by rendering a view with absolute position and styled borders top of the picker... which isn't good solution either. |
ill try this dude, tnx |
@jollimies one question |
@Override
protected void drawForeground(Canvas canvas) {
super.drawForeground(canvas);
Paint paint = new Paint();
paint.setColor(Color.BLACK); // change this
int colorFrom = 0x00FFFFFF;//Color.BLACK;
int colorTo = Color.BLACK; // change this
LinearGradient linearGradientShader = new LinearGradient(rectCurItem.left, rectCurItem.top, rectCurItem.right/2, rectCurItem.top, colorFrom, colorTo, Shader.TileMode.MIRROR);
paint.setShader(linearGradientShader);
canvas.drawLine(rectCurItem.left, rectCurItem.top, rectCurItem.right, rectCurItem.top, paint);
canvas.drawLine(rectCurItem.left, rectCurItem.bottom, rectCurItem.right, rectCurItem.bottom, paint);
} for someone wants to change their border, you have to edit why?
here is the key |
能不能加个props修改分隔线的颜色呢?作者不维护这个项目了吗? @lesliesam |
Has anyone been successful in updating the border colors by going into the Java file? I've tweaked it using different standard colors but it doesn't have any visible effect. I'm also trying to update the itemSpace but that's a whole different can of worms. |
@mikeyamato check out the code i posted above |
@Foveluy I did but without success. That's why I was wondering if anyone was able to change it. I changed the color from white to red but what I'm seeing (iOS) is still unchanged. |
@Foveluy out of curiosity were you able to update the line color in iOS or are you working with Android only? |
@mikeyamato very interesting. can you post all i update this line color in Android for sure. |
@Foveluy I wonder if this is a iOS vs Android limitation. As requested...
|
I took a look at PR #8 and even changed my code to how it was done but was unsuccessful 🙁 |
Okay, so the following solution is a temporary solution for iOS that worked for me. You'll need to go into the Right below the line
You'll need to stop your current Metro Bundler process then re-start Although I'm using Just remember, since this is saved to your |
Has anyone been successful in updating the separator color ??? If so please give the solution |
I have forked and exposed the line color, and gradient start, gradient end (if gradient is necessary. otherwise solid color can be set from line color prop) as react props. check this out. |
how to change seperator line color?
tnx
The text was updated successfully, but these errors were encountered: