能在另一个进程中显示页面布局的层次。层次是在布局文件中定义,它提供了一些改变布局文件的方法定义。

该类最重要的作用就是能够在另一个进程中使用!!!

void addView(int viewId, RemoteViews nestedView) Equivalent to calling addView(View) after inflating the given RemoteViews.
View apply( Context context, ViewGroup parent) Inflates the view hierarchy represented by this object and applies all of the actions.
RemoteViews clone() Creates and returns a copy of this Object.
int describeContents() Describe the kinds of special objects contained in this Parcelable's marshalled representation.
int getLayoutId()
String getPackage()
boolean onLoadClass( Class clazz) Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.
void reapply( Context context, View v) Applies all of the actions to the provided view.
void removeAllViews(int viewId) Equivalent to calling removeAllViews().
void setBitmap(int viewId, String methodName, Bitmap value) Call a method taking one Bitmap on a view in the layout for this RemoteViews.
void setBoolean(int viewId, String methodName, boolean value) Call a method taking one boolean on a view in the layout for this RemoteViews.
void setBundle(int viewId, String methodName, Bundle value) Call a method taking one Bundle on a view in the layout for this RemoteViews.
void setByte(int viewId, String methodName, byte value) Call a method taking one byte on a view in the layout for this RemoteViews.
void setChar(int viewId, String methodName, char value) Call a method taking one char on a view in the layout for this RemoteViews.
void setCharSequence(int viewId, String methodName, CharSequence value) Call a method taking one CharSequence on a view in the layout for this RemoteViews.
void setChronometer(int viewId, long base, String format, boolean started) Equivalent to calling Chronometer.setBase, Chronometer.setFormat, and Chronometer.start() or Chronometer.stop().
void setDisplayedChild(int viewId, int childIndex) Equivalent to calling setDisplayedChild(int)
void setDouble(int viewId, String methodName, double value) Call a method taking one double on a view in the layout for this RemoteViews.
void setEmptyView(int viewId, int emptyViewId) Equivalent to calling AdapterView.setEmptyView
void setFloat(int viewId, String methodName, float value) Call a method taking one float on a view in the layout for this RemoteViews.
void setImageViewBitmap(int viewId, Bitmap bitmap) Equivalent to calling ImageView.setImageBitmap
void setImageViewResource(int viewId, int srcId) Equivalent to calling ImageView.setImageResource
void setImageViewUri(int viewId, Uri uri) Equivalent to calling ImageView.setImageURI
void setInt(int viewId, String methodName, int value) Call a method taking one int on a view in the layout for this RemoteViews.
void setIntent(int viewId, String methodName, Intent value)
void setLong(int viewId, String methodName, long value) Call a method taking one long on a view in the layout for this RemoteViews.
void setOnClickFillInIntent(int viewId, Intent fillInIntent) When using collections (eg.
void setOnClickPendingIntent(int viewId, PendingIntent pendingIntent) Equivalent to calling setOnClickListener(android.view.View.OnClickListener) to launch the provided PendingIntent.
void setPendingIntentTemplate(int viewId, PendingIntent pendingIntentTemplate) When using collections (eg.
void setProgressBar(int viewId, int max, int progress, boolean indeterminate) Equivalent to calling ProgressBar.setMax, ProgressBar.setProgress, and ProgressBar.setIndeterminate If indeterminate is true, then the values for max and progress are ignored.
void setRelativeScrollPosition(int viewId, int offset) Equivalent to calling smoothScrollToPosition(int, int).
void setRemoteAdapter(int viewId, Intent intent) Equivalent to calling setRemoteViewsAdapter(Intent).
void setRemoteAdapter(int appWidgetId, int viewId, Intent intent) This method is deprecated. This method has been deprecated. See setRemoteAdapter(int, Intent)
void setScrollPosition(int viewId, int position) Equivalent to calling smoothScrollToPosition(int, int).
void setShort(int viewId, String methodName, short value) Call a method taking one short on a view in the layout for this RemoteViews.
void setString(int viewId, String methodName, String value) Call a method taking one String on a view in the layout for this RemoteViews.
void setTextColor(int viewId, int color) Equivalent to calling setTextColor(int).
void setTextViewText(int viewId, CharSequence text) Equivalent to calling TextView.setText
void setUri(int viewId, String methodName, Uri value) Call a method taking one Uri on a view in the layout for this RemoteViews.
void setViewVisibility(int viewId, int visibility) Equivalent to calling View.setVisibility
void showNext(int viewId) Equivalent to calling showNext()
void showPrevious(int viewId) Equivalent to calling showPrevious()
void writeToParcel( Parcel dest, int flags) Flatten this object in to a Parcel

更多相关文章

  1. android开发笔记之Button的圆角和按下效果
  2. android基本的五大布局(3)
  3. Android群英传知识点回顾——第十章:Android性能优化
  4. Android布局属性集合
  5. Android(安卓)AMS(一) App启动过程之Task,进程创建流程
  6. Android(安卓)Tab类型主界面总结
  7. Android(安卓)root的两种方法 -- udev漏洞和setuid漏洞
  8. Android电话Phone UI分析
  9. Android(安卓)AIDl来实现进程间通讯

随机推荐

  1. Android的简单组件总结
  2. 《Android系统学习》第十章:Android消息处
  3. android ListView监听滚动条滚动到底部时
  4. AppCompat实现Action Bar
  5. android volley封装及源码解析
  6. Android 导航类型
  7. Android中如何实现图像的闪动
  8. Android经常使用开源组件汇总
  9. LinearLayout 线性布局
  10. android 中 LocalSocket的基本使用方法