summaryrefslogtreecommitdiffstats
path: root/examples/qmlandroid/catalog/qml/ProgressView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qmlandroid/catalog/qml/ProgressView.qml')
-rw-r--r--examples/qmlandroid/catalog/qml/ProgressView.qml86
1 files changed, 86 insertions, 0 deletions
diff --git a/examples/qmlandroid/catalog/qml/ProgressView.qml b/examples/qmlandroid/catalog/qml/ProgressView.qml
new file mode 100644
index 0000000..b073ec5
--- /dev/null
+++ b/examples/qmlandroid/catalog/qml/ProgressView.qml
@@ -0,0 +1,86 @@
+import android.view 0.21
+import android.widget 0.21
+import android.support.v7.widget 0.21
+
+ScrollView {
+ LinearLayout {
+ padding: 48
+ orientation: LinearLayout.VERTICAL
+
+ CardView {
+ LinearLayout {
+ padding: 48
+ orientation: LinearLayout.VERTICAL
+
+ TextView { text: "ProgressBar"; textSize: 18 }
+ Space { LinearLayout.height: 48 }
+ LinearLayout {
+ ProgressBar { style: ProgressBar.Large }
+ Space { LinearLayout.width: 48 }
+ ProgressBar { style: ProgressBar.Medium }
+ Space { LinearLayout.width: 48 }
+ ProgressBar { style: ProgressBar.Small }
+ }
+ }
+ }
+
+ Space { LinearLayout.height: 48 }
+
+ CardView {
+ LinearLayout {
+ padding: 48
+ orientation: LinearLayout.VERTICAL
+
+ TextView { text: "ProgressBar (horizontal)"; textSize: 18 }
+ Space { LinearLayout.height: 48 }
+ ProgressBar {
+ indeterminate: true
+ style: ProgressBar.Horizontal
+ }
+ Space { LinearLayout.height: 24 }
+ ProgressBar {
+ progress: primaryBar.progress
+ secondaryProgress: secondaryBar.progress
+ style: ProgressBar.Horizontal
+ }
+ }
+ }
+
+ Space { LinearLayout.height: 48 }
+
+ CardView {
+ LinearLayout {
+ padding: 48
+ orientation: LinearLayout.VERTICAL
+
+ TextView { text: qsTr("SeekBar (%1/%2)").arg(primaryBar.progress).arg(secondaryBar.progress); textSize: 18 }
+ Space { LinearLayout.height: 48 }
+ SeekBar {
+ id: primaryBar
+ progress: 25
+ }
+ SeekBar {
+ id: secondaryBar
+ progress: 75
+ }
+ }
+ }
+
+ Space { LinearLayout.height: 48 }
+
+ CardView {
+ LinearLayout {
+ padding: 48
+ orientation: LinearLayout.VERTICAL
+
+ TextView { text: qsTr("RatingBar (%1)").arg(ratingBar.rating); textSize: 18 }
+ Space { LinearLayout.height: 48 }
+ RatingBar {
+ id: ratingBar
+ rating: 3.5
+ LinearLayout.width: Layout.WRAP_CONTENT
+ }
+ }
+ }
+ }
+}