XML widget to create native Gauge for Android and Ios in NativeScript apps. A fork of nativescript-progressbar by sebawita
Android and Ios
npm install nativescript-gauge
<page xmlns:pb="nativescript-progressbar">
<pb:CircleProgressBar
progress="{{progress}}"
text="{{message}}"
android:textSize="100"
android:widthProgressBackground="0"
android:widthProgressBarLine="20"
ios:textSize="60"
ios:widthProgressBackground="2"
ios:widthProgressBarLine="3"
ios:textStyle="thin"
textColor="white"
backgroundColor="white"
progressColor="#F29100"
linearGradient="false"
width="100"
height="100"
/>
</page>
Property | Description | Values |
---|---|---|
progress | Sets the progress value | number 0-100 |
text | Sets the text in the middle of the progress bar | text |
textSize | Sets the size of the text | number |
textColor | Sets the color of the text | color |
textStyle | Sets the weight of the text | string |
widthProgressBackground | Sets the size of the progress background | number |
widthProgressBarLine | Sets the size of the progress bar | number |
backgroundColor | Sets the color of the progress background | color |
progressColor | Sets the color of the progress bar | color |
textStyle work only in ios: Ios textStyle options: thin, light, regular, medium, semibold, bold
- We're using Android-ProgressViewsLib by natasam
- We're using Ios-GaugeView by BelkaLab