Am trying to set font sizes to text programmatically in an Android widget. If I set them in onEnabled()
, it's not working. I hate to set in onUpdate()
because unnecessarily, it will be called each time. Any help please?
Asked
Active
Viewed 23 times
0

Konrad Krakowiak
- 12,285
- 11
- 58
- 45

Jean
- 2,611
- 8
- 35
- 60
-
Try to set in onCreate() – Anand Savjani Jun 25 '15 at 07:28
-
@AnandSavjani widgets don't have onCreate() I believe – Jean Jun 25 '15 at 07:38
-
unfortunately all changes to the widget UI should be done in the onUpdate() method – Rich Jun 25 '15 at 08:56