Android: programmatically set alignment to RemoteView

I am trying to set the android:layout_alignParentLeft="true" or android:layout_alignParentRight="true" program code to my RelativeLayout inside my widget. I cannot access LayoutParams in RemoteView, so is there any other way to do this? Perhaps the setInt method?

Thanks.

+4
source share

Source: https://habr.com/ru/post/1379503/


All Articles