I'm trying align a text with the params of Framelayout using bottom and right but is not working. Here's the 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);
The default align of FrameLayout is top and left margins, but on my application i have to use bottom and right.