layoutId对应的布局文件
RemoteViews只支持如下类型
Layout:
FrameLayout,LinearLayout,RelativeLayout,GridLayout
View...:
AnalogClock,Button,Chronometer,ImageButton,ImageView,ProgressBar,TextView,ViewFlipper,ListView,GridView...传递到SystemServer中(实现了Parcelable接口,可以跨进程传输)。...系统根据包名得到资源,然后通过layoutinflater加载布局文件。...理论上来讲,系统可以让binder直接支持所有操作,但是大量IPC操作会影响效率
由于RemoteViews是在远程进程中显示,所以无法用findviewbyid,通常用set方法,比如setTextViewText