mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #1964 from NativeScript/segmented-bar-no-wrap-android
SegmentedBar item titles wrapping fixed. Now similar to iOS.
This commit is contained in:
12
apps/ui-tests-app/tab-view/nowrap.xml
Normal file
12
apps/ui-tests-app/tab-view/nowrap.xml
Normal 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>
|
||||||
@@ -102,6 +102,9 @@ function onItemsPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
|||||||
if (view.color) {
|
if (view.color) {
|
||||||
t.setTextColor(view.color.android);
|
t.setTextColor(view.color.android);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
t.setSingleLine(true);
|
||||||
|
t.setEllipsize(android.text.TextUtils.TruncateAt.END);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user