resize all objects inside view in titanium
<p>I have a view that contains my layout . when a button is pressed the main view is resized but all it children keep the same height and width. How can I resize all objects that are inside the main view?</p>

<p>for example when I have this:</p>

<pre><code>var view = Ti.UI.createView({
  height:deviceHeight,
  width:deviceWidth
});

view.add(Ti.UI.createView({
  height:Ti.UI.SIZE,
  width:Ti.UI.SIZE
}));
</code></pre>

<p>how can I for example resize the secunde view that is added to the firs one?</p>

<p>I'm developing my app in titanium in classic mode.</p>