separatorColor property of ListView can be set in CSS #3233

Merged
merged 1 commit into from Dec 5, 2016

Projects

None yet

4 participants

@zh-m
Contributor
zh-m commented Dec 2, 2016

separatorColor property can be set through CSS as follows:

ListView {
separator-color: lightskyblue;
}

@zh-m zh-m separatorColor property of ListView can be set in CSS
1343aa5
@zh-m
Contributor
zh-m commented Dec 2, 2016

uitests

@ns-bot ns-bot added the cla: yes label Dec 2, 2016
@enchev
enchev approved these changes Dec 5, 2016 View changes
@zh-m zh-m merged commit 964a55f into master Dec 5, 2016

5 checks passed

ci/jenkins/tests PASSed.
Details
ci/jenkins/uitests-android PASSed.
Details
ci/jenkins/uitests-ios PASSed.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@zh-m zh-m deleted the zhecheva/separator-color branch Dec 5, 2016
+ private static resetSeparatorColorProperty(view: viewModule.View, nativeValue: any) {
+ let listView = <android.widget.ListView>view._nativeView;
+ listView.setDivider(new android.graphics.drawable.ColorDrawable(nativeValue));
@EddyVerbruggen
EddyVerbruggen Jan 3, 2017 Member

I had to wrap these 3 lines with if (nativeValue) {..} because in my case it was undefined and threw an error in the console. Specified the color as separator-color: #28b83c; which works fine btw!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment