如何在Android Slider中增加拇指?

时间:2019-04-22 16:01:46

标签: nativescript

能帮帮我吗?如何增加拇指?像这样

我使用

<Slider value="80" />

Sample

我找到了Android的答案。需要创建文件app/App_Resources/Android/src/main/res/drawable-nodpi/custom_thumb.xml

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval" >

    <gradient
        android:angle="270"
        android:endColor="@color/colorDekraOrange"
        android:startColor="@color/colorDekraOrange" />

    <size
        android:height="35dp"
        android:width="35dp" />

</shape>

并添加属性android:thumb="@drawable/custom_thumb"

但是此属性如何将Slider添加到nativescrip?

谢谢

0 个答案:

没有答案