How to align LinearLayout at the center of its parent?
I've looked through numerous similar questions here at SO, but nothing helps. I have a hierarchy of different nested layouts, all have android:layout_width="fill_parent" , and the inner-most layout has android:layout_width="wrap_content - I need to align it at the center (horizontally). How do I do that? Update: : I've found the cause of the problem - if I put the inner LinearLayout into RelativeLayout with android:layout_width="fill_parent" , it still wraps it's content. The TableRow, however, is really filling the screen. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android=