本文整理汇总了Java中android.widget.RemoteViewsService.RemoteViewsFactory类的典型用法代码示例。如果您正苦于以下问题:Java RemoteViewsFactory类的具体用法?Java RemoteViewsFactory怎么用?Java RemoteViewsFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RemoteViewsFactory类属于android.widget.RemoteViewsService包,在下文中一共展示了RemoteViewsFactory类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testStartService
import android.widget.RemoteViewsService.RemoteViewsFactory; //导入依赖的package包/类
public void testStartService() throws Exception {
Intent i = new Intent(getContext(), RssfeedWidgetService.class);
startService(i);
RssfeedWidgetService service = getService();
RemoteViewsFactory onGetViewFactory = service.onGetViewFactory(i);
assertNotNull(onGetViewFactory);
}
示例2: onGetViewFactory
import android.widget.RemoteViewsService.RemoteViewsFactory; //导入依赖的package包/类
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent paramIntent)
{
return new RecommendationsViewFactory(this, paramIntent.getIntExtra("appWidgetId", 0), paramIntent.getIntExtra("RecWidget.heightLandscape", 0), paramIntent.getIntExtra("RecWidget.heightPortrait", 0));
}
示例3: onGetViewFactory
import android.widget.RemoteViewsService.RemoteViewsFactory; //导入依赖的package包/类
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent paramIntent)
{
return new eaw(getApplicationContext(), paramIntent);
}
示例4: onGetViewFactory
import android.widget.RemoteViewsService.RemoteViewsFactory; //导入依赖的package包/类
@Override
public RemoteViewsFactory onGetViewFactory(Intent intent)
{
this.courseCode = intent.getStringExtra(EXTRA_COURSE_CODE);
return this;
}
示例5: onGetViewFactory
import android.widget.RemoteViewsService.RemoteViewsFactory; //导入依赖的package包/类
@Override
public RemoteViewsFactory onGetViewFactory(Intent intent) {
return new RssfeedWidgetViewsFactory(getApplicationContext(), intent);
}