After loading my View
, if the user clicks the button then a menu appears on the front as shown in the image:
ThetopmostlayerofthismenuisFrameLayout
,IwouldliketoleaveitwithGravity
RIGHT
andBOTTOM
,butIdonotknowhowtopassthesefeaturesto
I'm doing it this way:
FrameLayout.LayoutParams lparams = new FrameLayout.LayoutParams(
FrameLayout.LayoutParams.WRAP_CONTENT,
FrameLayout.LayoutParams.WRAP_CONTENT,
Gravity.RIGHT);
frame_dados.setLayoutParams(lparams);
I want to configure it in this way:
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"/>