0

My xml here

<Slider value="2" minValue="1" maxValue="10" />

and the print screen, why it doesn't showing min value at beginning and max at ending as well as user sliding value.

enter image description here

4

1 回答 1

2

只是因为 Android 滑块不显示最小值/最大值,如文档中所示。

但是,您可以在此下方创建一个布局来实现此目的。

<StackLayout orientation="horizontal">
    <Label text="1" />
    <Slider value="2" minValue="1" maxValue="10" />
    <Label text="10" />
</StackLayout>
于 2015-05-31T21:14:11.060 回答