Android How to setWeight of a RemoteView?

Viewed 947

I need to know the code that allow me to set the Weight of a RemoteView.

I tried with this code but this doesn't work:

RemoteViews remoteViews = new RemoteViews(c.getPackageName(), R.layout.notification);
remoteViews.setInt(R.id.ll_notification, "setWeight", 12);

There is a way to do this? Many thanks....

1 Answers
Related