I use the following code to update the text:
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget);
views.setTextViewText(R.id.widget_counter, Long.toString(unreadRecordsCount));
but how can I hide it, if unreadRecordsCount = 0?