Code example for RemoteViews

0
        mContext = context;
    } 
 
    @Override 
    public void loadRootLayout(Object container, int layoutResId) {
        mRemoteViews = new RemoteViews(mContext.getPackageName(), layoutResId);
    } 
 
    @Override 
    public void useRoot(Object root) {
        throw new UnsupportedOperationException("Can't reuse RemoteViews for WidgetViewBuilder.");
    } 
 
    @Override 
    public Object inflateChildLayout(int layoutResId, int containerId) {
        return new RemoteViews(mContext.getPackageName(), layoutResId);
    } 
 
    @Override 
    public void setLinearLayoutGravity(int viewId, int gravity) {
Experience pair programming with AI  Get Codota for Java