SegmentedBar item titles wrapping fixed. Now similar to iOS.

This commit is contained in:
Vladimir Enchev
2016-04-14 09:36:08 +03:00
parent efe9ff90de
commit c7c593395d
2 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,12 @@
<Page>
<StackLayout>
<SegmentedBar>
<SegmentedBar.items>
<SegmentedBarItem title="Incomplete" />
<SegmentedBarItem title="Complete" />
<SegmentedBarItem title="Something Else" />
<SegmentedBarItem title="All" />
</SegmentedBar.items>
</SegmentedBar>
</StackLayout>
</Page>

View File

@ -102,6 +102,9 @@ function onItemsPropertyChanged(data: dependencyObservable.PropertyChangeData) {
if (view.color) {
t.setTextColor(view.color.android);
}
t.setSingleLine(true);
t.setEllipsize(android.text.TextUtils.TruncateAt.END);
}
}
}