How Can I to Change Text Size in RemoteViews

前端 未结 1 415
不知归路
不知归路 2020-12-31 13:35

Under RemoteViewsService.RemoteViewsFactory

public RemoteViews getViewAt(int position) {
    final int itemId = (position % 2 == 0 ? R.layout.light_widget_it         


        
相关标签:
1条回答
  • 2020-12-31 14:07

    How about the setFloat() method?

    rv.setFloat(R.id.widget_item, "setTextSize", mPrefs.getTextsize().getValue());
    
    0 讨论(0)
提交回复
热议问题