Java 类android.widget.RemoteViewsService.RemoteViewsFactory 实例源码
项目:codeexamples-android
文件:WidgetServiceTest.java
public void testStartService() throws Exception {
Intent i = new Intent(getContext(), RssfeedWidgetService.class);
startService(i);
RssfeedWidgetService service = getService();
RemoteViewsFactory onGetViewFactory = service.onGetViewFactory(i);
assertNotNull(onGetViewFactory);
}
项目:FMTech
文件:RecommendationsViewService.java
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent paramIntent)
{
return new RecommendationsViewFactory(this, paramIntent.getIntExtra("appWidgetId", 0), paramIntent.getIntExtra("RecWidget.heightLandscape", 0), paramIntent.getIntExtra("RecWidget.heightPortrait", 0));
}
项目:FMTech
文件:LocationsWidgetStackService.java
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent paramIntent)
{
return new eaw(getApplicationContext(), paramIntent);
}
项目:dit-timetables
文件:RemoteTimetableAdapter.java
@Override
public RemoteViewsFactory onGetViewFactory(Intent intent)
{
this.courseCode = intent.getStringExtra(EXTRA_COURSE_CODE);
return this;
}
项目:codeexamples-android
文件:RssfeedWidgetService.java
@Override
public RemoteViewsFactory onGetViewFactory(Intent intent) {
return new RssfeedWidgetViewsFactory(getApplicationContext(), intent);
}