-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix(android): crash in ListView on API 21 #13262
fix(android): crash in ListView on API 21 #13262
Conversation
default listDivider on API 21 is instance of NinePatchDrawable, not a GradientDrawable fix tidev#13261
|
@drauggres Thanks for this! It looks quite severe, so I think it should be prioritized. Apart form this PR, is there any workaround for the crash, e.g. setting the separator color? |
Yes, you need to always specify a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and working great here! I would wait for @m1ga for another review and then this can be merged! @drauggres Please also rebase this one (if possible, all your open PR's - they are very close to be merged :))
Done. I think this option was enabled in the appcelerator repo, but it is disabled now. |
cc @cb1kenobi Can you re-enable the |
yes, please add that again 😄 |
default
listDivider
on API < 23 is instance ofNinePatchDrawable
, not aGradientDrawable
.fix #13261
separatorStyle: Ti.UI.TABLE_VIEW_SEPARATOR_STYLE_NONE
on API < 23 (separator souldn't be visible)handlePut warning into docs, advise to setseparatorStyle: Ti.UI.TABLE_VIEW_SEPARATOR_STYLE_SINGLE_LINE
with non zeroseparatorHeight
and noseparatorColor
on Android API 21 (height should be applied)separatorColor
on API < 23