diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-13 22:34:01 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-13 22:34:01 -0600 |
commit | 1f6201d8cd0dd389c697e542f221e2b98332a98e (patch) | |
tree | 2a17b57c04be60b1dc8eb17afabd2e47f287ab26 /androidApp/src/main/java | |
parent | d0948623d120a766ffbb9e6821cfe89a7f883ddf (diff) | |
download | etbsa-trackermap-mobile-1f6201d8cd0dd389c697e542f221e2b98332a98e.tar.gz etbsa-trackermap-mobile-1f6201d8cd0dd389c697e542f221e2b98332a98e.tar.bz2 etbsa-trackermap-mobile-1f6201d8cd0dd389c697e542f221e2b98332a98e.zip |
Load report and geofence line width from dimen.xml
Diffstat (limited to 'androidApp/src/main/java')
-rw-r--r-- | androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt index a45b864..60c8a47 100644 --- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt @@ -140,10 +140,11 @@ class MapFragment : GlobeMapFragment() { val colorReport = ContextCompat.getColor(context!!, R.color.colorReport) val colorLabel = ContextCompat.getColor(context!!, R.color.colorMarkerLabel) val colorLabelOutline = ContextCompat.getColor(context!!, R.color.colorMarkerLabelOutline) + val vectorWidth = context?.resources?.getDimensionPixelSize(R.dimen.report_label_width)?.toFloat() val vectorInfo = VectorInfo() vectorInfo.setColor(colorReport) - vectorInfo.setLineWidth(20.0f) + vectorInfo.setLineWidth(vectorWidth ?: 20f) val labelInfo = LabelInfo() labelInfo.typeface = Typeface.DEFAULT_BOLD @@ -242,10 +243,11 @@ class MapFragment : GlobeMapFragment() { val colorFill = ContextCompat.getColor(context!!, R.color.colorGeofence) val colorLabel = ContextCompat.getColor(context!!, R.color.colorGeofenceLabel) val colorLabelOutline = ContextCompat.getColor(context!!, R.color.colorMarkerLabelOutline) + val vectorWidth = context?.resources?.getDimensionPixelSize(R.dimen.geofence_label_width)?.toFloat() val vectorInfo = VectorInfo() vectorInfo.setColor(colorFill) - vectorInfo.setLineWidth(10.0f) + vectorInfo.setLineWidth(vectorWidth ?: 4f) val labelInfo = LabelInfo() labelInfo.typeface = Typeface.DEFAULT_BOLD |