需要在窗口小部件中显示主要和次要进度。
RemoteViews类具有以下方法,其中我可以传递最大值和进度值但不传递secondaryProgress。
remoteViews.setProgressBar(R.id.pbHorizontal, 100, 50, false);
任何提示或建议都将受到高度赞赏,谢谢。
据我所知,没有直接的方法,但您可以使用RemoteViews
手动设置视图的int属性。
有一种方法setInt
setInt(viewId, "setSecondaryProgress", secondaryProgress);
setProgressBar()
使用它under the hood