I know this is an old question, but thought I'd add an alternative that I found today.
It is also ugly .... but perhaps easier.
I needed to create a panel of four icons on the screen with a separator. What I did was create as a container and within this 4 tag (with inside of them). I set them to the left: 0, 25%, 50% and 75%. Then I set the width of each embedded to 24.8% and set the background color of the container to whatever color I would like in the panel.
Example:
<View id="tb1" bottom="0" height="45dp" width="100%" backgroundColor='#99cc33'> <View height="45dp" left="0" width="24.8%" backgroundColor='#363636'> <ImageView width="40dp" image="/images/trip1.png"/> </View> <View height="45dp" left="25%" width="24.8%" backgroundColor='#363636'> <ImageView width="35dp" image="/images/trip2.png"/> </View> <View height="45dp" left="50%" width="24.8%" backgroundColor='#363636'> <ImageView height="40dp" image="/images/trip3.png"/> </View> <View height="45dp" left="75%" width="25%" backgroundColor='#363636'> <ImageView height="35" image="/images/trip4.png"/> </View> </View>
/ John
source share