Is it possible to assign a widget width to half the available screen width, and do it using declarative xml?
give width as 0dp to make sure its size is exactly as per its weight this will make sure that even if content of child views get bigger, they'll still be limited to exactly half(according to is weight)