tôi muốn đạt được điều tương tự trong mã vì nó là trong xml này (ImageView này là bên trong bố trí tương đối):Cách đặt thuộc tính android: layout_alignParentLeft thành imageview trong mã?
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:src="@drawable/logo"/>
tôi biết làm thế nào để thiết lập chiều rộng bố trí và chiều cao, nhưng không biết làm thế nào để set layout_alignParentLeft = "true".
Có thể thực hiện điều này bằng mã không?