2
After charging my View
, if the user clicks the button then a menu appears in front as shown in the image:
The top layer of this menu is a FrameLayout
, I’d like to leave you with Gravity
RIGHT
and BOTTOM
, but I don’t know how to pass these characteristics by java
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 set it up in this way:
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"/>
That, let it bottom | Right, that’s my question, the rest I’ll arrange later
– CristianCotrena
Its linear_data is a Linearlayout?
– viana
It’s a frame, had written wrong
– CristianCotrena
Good, it worked here!
– CristianCotrena