openhab-android
openhab-android copied to clipboard
Improve hiding section switches
Use the actual available space for the switches, not 'just' 80% of the device width.
Signed-off-by: mueller-ma [email protected]
And what about the label? This calculation might hide it completely AFAICT?
labelView.measuredWidth
is always larger than 0, even for items without any label. It's width is set to 0dp
. Setting it to wrap_content
doesn't seem to make it smaller. Therefore I currently cannot get the real width of the label or value.
Sitemaps need a larger rework, see #3097