增加realm 在离线地图中的使用

This commit is contained in:
squallzhjch
2023-04-06 10:46:19 +08:00
parent dbb1572688
commit fa4ad254a5
29 changed files with 422 additions and 384 deletions

View File

@@ -62,9 +62,10 @@ class MyProgressBar : ProgressBar {
// int x = (getWidth()/2) - rect.centerX();
// int y = (getHeight()/2) - rect.centerY();
var x = (width * rate).toInt()
if (x == width) {
val dx = width - rect.right
if (x > dx) {
// 如果为百分之百则在左边绘制。
x = width - rect.right
x = dx
}
mPaint.textSize = 24f
val y: Int = 10 - rect.top