Android removes the gap between two textviews
Two textviews are adjacent to each other, but the text is dynamically generated, that is, the number of words is changing, so the text is not displayed together. Two textviews are set separately, however, the requirement is that the two must be put together and placed next to each other. Therefore, we have to eliminate the gaps between them. The online method is as follows:
Android: layout_marginLeft =-10px can eliminate the default gaps between the two controls !!!!
My example is as follows:
Android: layout_width = fill_parent
Android: layout_height = wrap_content
Android: layout_weight = 1
Android: orientation = horizontal>
Android: id = @ + id/orderhis_type
Android: layout_width = wrap_content
Android: layout_height = wrap_content
Android: textColor = # fffffdfd
Android: textSize = 20dp/>
Android: id = @ + id/orderhis_price
Android: layout_width = match_parent
Android: layout_height = wrap_content
Android: layout_marginLeft =-10px
Android: textColor = # fffffdfd
Android: textSize = 20dp
Android: textStyle = bold/>
The red part is the focus. I hope to record it and it will be useful to some people.