title: Setting suggested width and height to a custom view in android
body: <p>I'm learning how to create custom views in android. Currently I don't understand how to set minimum width and height of it. Why do I think that it is not set? Because I print value of <code>getSuggestedMinimumWidth()</code> which returns a 0 to me. </p>
  
  <p>In the view there are some figures drown on the canvas meaning there are no views under it in the hierarchy unless views are added automatically(are they btw?).</p>
  
  <p>I tried googling possible ways of setting minimum width or height to a custom view but didn't find anything. </p>
  
  <p>So, how do I set minimum width and height to a custom view in <code>onMeasure()</code> method? If there are some question like why would you need to override the method then the answer is that I want to learn how to work with it.</p>