The layout width is always zero in fragment examples. What is behind this value?
This has worked for me:
Sum all weights in the layout. In the example that Squonk posted, there are 2 fragments and total weight is 3.
The fragment ArticleListFragment has a weight=1, meaning that the size will be 1/3 ( 3 is the total weight) of the screen.
The fragment ArticleReaderFragment has a weight =2, meaning that the size will be 2/3 of the screem.
Hope it helps.