Open estory1 opened 11 years ago
Problem: Calling updateWidget(paramsObj), I want to set the color of the message text, title text, or any other text, in a widget. I am currently specifically using the "Image, Title, and Message" widget.
Example to run in the /test.html page:
{ "command": "execute_script", "script": "PurpleRobot.updateWidget({'identifier':'MA','color':'#FF0000'});" }
Review w/ Chris, e.g. of this file:
https://github.com/nupmmarkbegale/Purple-Robot-Manager/blob/master/Purple%20Notifier/src/edu/northwestern/cbits/purple/notifier/BadgeWidgetProvider.java
indicates that this is not possible.
Poss. solution: Chris indicates that: http://developer.android.com/reference/android/widget/RemoteViews.html and http://developer.android.com/reference/android/graphics/Color.html
point the way to resolution.
Problem: Calling updateWidget(paramsObj), I want to set the color of the message text, title text, or any other text, in a widget. I am currently specifically using the "Image, Title, and Message" widget.
Example to run in the /test.html page:
{ "command": "execute_script", "script": "PurpleRobot.updateWidget({'identifier':'MA','color':'#FF0000'});" }
Review w/ Chris, e.g. of this file:
https://github.com/nupmmarkbegale/Purple-Robot-Manager/blob/master/Purple%20Notifier/src/edu/northwestern/cbits/purple/notifier/BadgeWidgetProvider.java
indicates that this is not possible.
Poss. solution: Chris indicates that: http://developer.android.com/reference/android/widget/RemoteViews.html and http://developer.android.com/reference/android/graphics/Color.html
point the way to resolution.