Mercurial > dwindows
comparison android/DWindows.kt @ 2574:5b13bb267364
Android: Percent widget should be using horizontal ProgressBar.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 21 May 2021 19:50:56 +0000 |
parents | ea75e295025b |
children | 5beaaa4e9b03 |
comparison
equal
deleted
inserted
replaced
2573:ea75e295025b | 2574:5b13bb267364 |
---|---|
1863 var percent: ProgressBar? = null | 1863 var percent: ProgressBar? = null |
1864 | 1864 |
1865 waitOnUiThread { | 1865 waitOnUiThread { |
1866 var dataArrayMap = SimpleArrayMap<String, Long>() | 1866 var dataArrayMap = SimpleArrayMap<String, Long>() |
1867 | 1867 |
1868 percent = ProgressBar(this) | 1868 percent = ProgressBar(this,null, R.attr.progressBarStyleHorizontal) |
1869 percent!!.tag = dataArrayMap | 1869 percent!!.tag = dataArrayMap |
1870 percent!!.id = cid | 1870 percent!!.id = cid |
1871 percent!!.max = 100 | 1871 percent!!.max = 100 |
1872 } | 1872 } |
1873 return percent | 1873 return percent |