本文整理汇总了Java中android.widget.RemoteViewsService.RemoteViewsFactory方法的典型用法代码示例。如果您正苦于以下问题:Java RemoteViewsService.RemoteViewsFactory方法的具体用法?Java RemoteViewsService.RemoteViewsFactory怎么用?Java RemoteViewsService.RemoteViewsFactory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.widget.RemoteViewsService
的用法示例。
在下文中一共展示了RemoteViewsService.RemoteViewsFactory方法的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);
}