title: Trying to force Activity with Theme.Dialog to fixed width
body: <p>I always struggle with UI design and this is giving me problems.</p>
  
  <p>I have an Activity which uses Theme.Dialog to make it appear as a popup. My problem is I want it to always have max screen width regardless of the child components' widths. In the images below, the dialog width on the left is being forced to maximum by the width of the text in the spinner (I don't mind the spinner text being clipped - I'm just happy with the dialog width and it's how I'd like it to look.</p>
  
  <p>If I change the spinner selection to an option with shorter text however, I get the dialog on the right. Instead of the text being clipped and the spinner forcing max width of the dialog, the text easily fits and the spinner (and dialog) shrink.</p>
  
  <p>My layout is using LinearLayout elements which I'm sure is the main problem but I can't workout what a suitable alternative would be or how to say 'always make the dialog max width'.</p>
  
  <p>Any help greatly appreciated.</p>
  
  <p><img src="https://i.stack.imgur.com/6wdAf.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/prJOs.png" alt="enter image description here"></p>