I want to get the same in the code as in this xml (this image is inside the relative layout):
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:src="@drawable/logo"/>
I know how to set the width and height of the layout, but I don't know how to set layout_alignParentLeft = "true".
Is it possible to do this in code?
android layout
Dixie flatline
source share