android: How to insert a bottom aligned view without layout.xml?
<p>I want to insert views dynamically by using addView method, like this.</p>

<pre><code>TextView view = new TextView(this);
view.setText("foo");
ViewGroup parentView = (ViewGroup) findViewById(R.id.main_layout);
parentView.addView(view);
</code></pre>

<p>How can I align bottom the inserted view?</p>
