Align a text programatically with bottom,right params from FrameLayout
<p>I'm trying align a text with the params of Framelayout using bottom and right but is not working. Here's the code: </p>

<pre><code>FrameLayout frame = (FrameLayout)findViewById(R.id.frame1);

TextView text = (TextView)frame.findViewById(R.id.text);
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(100, 100);
params.setMargins(0,0,100,100);     
text.setLayoutParams(params);
</code></pre>

<p>The default align of FrameLayout is top and left margins, but on my application i have to use bottom and right.</p>