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.
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.
只是因为 Android 滑块不显示最小值/最大值,如文档中所示。
但是,您可以在此下方创建一个布局来实现此目的。
<StackLayout orientation="horizontal">
<Label text="1" />
<Slider value="2" minValue="1" maxValue="10" />
<Label text="10" />
</StackLayout>