mardi 9 août 2016

How to disable a button in a remote view?

I can make it invisible using the code below, but can't disable it.

RemoteViews contentView = new RemoteViews(getPackageName(), R.layout.notification);
contentView.setViewVisibility(R.id.buttonToDisable, View.INVISIBLE);

Aucun commentaire:

Enregistrer un commentaire