Java 如何访问RemoteView的视图?

Java 如何访问RemoteView的视图?,java,android,Java,Android,其思想是获取小部件或通知的SurfaceView的SurfaceHolder。 我有wid.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_paren

其思想是获取小部件或通知的
SurfaceView
SurfaceHolder
。 我有wid.xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
   android:id="@+id/root" >

    <Button
        android:id="@+id/btn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Button" />

    <SurfaceView
        android:id="@+id/sfv1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

</LinearLayout>

我怎样才能进入
sfv1(SurfaceView)

我想你不能。下面列出了
remoteview
支持的受支持布局类和小部件,其中没有
SurfaceView


访问小部件表面视图的其他方法在哪里?
RemoteViews layout = new RemoteViews(getPackageName(), R.layout.wid);//sfv1
        int ll = layout.getLayoutId();