本文整理匯總了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);
}