aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-11 20:49:59 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-11 20:49:59 -0600
commit90d9c04e66f7e7564ee1639d6b01bb34fe05239d (patch)
tree4acde4e1afa8ac4e01dc426de34409e786749c99 /androidApp/src/main/java
parent08a22e81ea4fb05cd48052d0814ea40730b5cc49 (diff)
downloadetbsa-trackermap-mobile-90d9c04e66f7e7564ee1639d6b01bb34fe05239d.tar.gz
etbsa-trackermap-mobile-90d9c04e66f7e7564ee1639d6b01bb34fe05239d.tar.bz2
etbsa-trackermap-mobile-90d9c04e66f7e7564ee1639d6b01bb34fe05239d.zip
More layout tweaks and fixes
Diffstat (limited to 'androidApp/src/main/java')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/UnitRenderData.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/UnitRenderData.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/UnitRenderData.kt
index 1b23ba0..f9b7a27 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/UnitRenderData.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/UnitRenderData.kt
@@ -147,14 +147,13 @@ class UnitRenderData {
val imageLayout = GridLayout.LayoutParams()
imageLayout.width = GridLayout.LayoutParams.WRAP_CONTENT
imageLayout.height = GridLayout.LayoutParams.WRAP_CONTENT
- imageLayout.setGravity(Gravity.CENTER_VERTICAL)
imageLayout.marginEnd =
TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 6f, metrics).toInt()
imageLayout.rowSpec = GridLayout.spec(i)
imageLayout.columnSpec = GridLayout.spec(0)
imageView.layoutParams = imageLayout
- /* Property ext */
+ /* Property text */
val textView = TextView(gridLayout.context)
textView.text = detail.second
@@ -167,6 +166,8 @@ class UnitRenderData {
gridLayout.addView(imageView)
gridLayout.addView(textView)
+
+ imageLayout.setGravity(Gravity.CENTER)
}
actionCallback?.let { callback ->