I am trying to build a View (ideally a LinearLayout) that matches its parent width. This layout is supposed to have 2 children (horizontally):
- A TextView that is supposed take up all of the available width – or at least wrap its content (but in no case overlap the other view).
- An other LinearLayout that has a fixed width of 60dp.
Here is a basic sketch of what I’m trying to achieve: 
I recently answered this here. Just swap the second TextView in that answer with your child LinearLayout