1.简介
通过remoteViews我们可以自定义通知推送,但是remoteViews也有许多限制。remoteViews仅支持以下小部件:AnalogClock、Button、Chronometer、ImageButton、ImageView、ProgressBar、TextClock、TextView;仅支持以下布局:AdapterViewFlipper、FrameLayout、GridLayout、GridView
、LinearLayout、ListView、RelativeLayout、StackView
、ViewFlipper。


主要方法:
setViewVisibility:设置指定控件是否可见。
setViewPadding:设置指定控件的间距。
setTextViewText:设置指定TextView或Button控件的文字内容。
setTextViewTextSize:设置指定TextView或Button控件的文字大小。
setTextColor:设置指定TextView或Button控件的文字颜色。
setTextViewCompoundDrawables:设置指定TextView或Button控件的文字周围图标。
setImageViewResource:设置ImageView或ImgaeButton控件的资源编号。
setImageViewBitmap:设置ImageView或ImgaeButton控件的位图对象。
setChronometer:设置计时器信息。
setProgressBar:设置进度条信息,包括最大值与当前进度。


499

被折叠的 条评论
为什么被折叠?



