本文整理汇总了Java中android.widget.RemoteViewsService类的典型用法代码示例。如果您正苦于以下问题:Java RemoteViewsService类的具体用法?Java RemoteViewsService怎么用?Java RemoteViewsService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RemoteViewsService类属于android.widget包,在下文中一共展示了RemoteViewsService类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onGetViewFactory
import android.widget.RemoteViewsService; //导入依赖的package包/类
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
if (intent != null) {
return new RemoteIngredientsListViewsFactory(getApplicationContext());
}
return null;
}
示例2: onGetViewFactory
import android.widget.RemoteViewsService; //导入依赖的package包/类
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
return (new NewsWidgetViewsFactory(this.getApplicationContext(), intent));
}
开发者ID:vikasdesale,项目名称:News24x7-news-from-every-part-of-the-world,代码行数:5,代码来源:NewsWidgetService.java
示例3: onGetViewFactory
import android.widget.RemoteViewsService; //导入依赖的package包/类
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
return new StockWidgetFactory(getApplicationContext(), intent);
}
示例4: onGetViewFactory
import android.widget.RemoteViewsService; //导入依赖的package包/类
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
return new WFListViewFactory(this.getApplicationContext(), intent);
}
示例5: onGetViewFactory
import android.widget.RemoteViewsService; //导入依赖的package包/类
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
return new StockDataProvider(this, intent);
}
示例6: onGetViewFactory
import android.widget.RemoteViewsService; //导入依赖的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));
}
示例7: onGetViewFactory
import android.widget.RemoteViewsService; //导入依赖的package包/类
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent paramIntent)
{
return new eaw(getApplicationContext(), paramIntent);
}
示例8: onGetViewFactory
import android.widget.RemoteViewsService; //导入依赖的package包/类
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
return new ListViewRemoteViewsFactory(this.getApplicationContext(), intent, "android",
intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, 0));
}
示例9: onGetViewFactory
import android.widget.RemoteViewsService; //导入依赖的package包/类
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
return new class_widget_factory(getApplicationContext());
}
示例10: onGetViewFactory
import android.widget.RemoteViewsService; //导入依赖的package包/类
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
return new ListViewRemoteViewsFactory(this.getApplicationContext(), intent);
}