You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
853 B
35 lines
853 B
NoteWidgetProvider_2x:
|
|
|
|
package net.micode.notes.widget;
|
|
|
|
import android.appwidget.AppWidgetManager;
|
|
import android.content.Context;
|
|
|
|
import net.micode.notes.R;
|
|
import net.micode.notes.data.Notes;
|
|
import net.micode.notes.tool.ResourceParser;
|
|
|
|
|
|
public class NoteWidgetProvider_2x extends NoteWidgetProvider {
|
|
//2倍大小的桌面挂件
|
|
@Override
|
|
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
|
|
super.update(context, appWidgetManager, appWidgetIds);
|
|
}
|
|
|
|
@Override
|
|
protected int getLayoutId() {
|
|
return R.layout.widget_2x;
|
|
}
|
|
|
|
@Override
|
|
protected int getBgResourceId(int bgId) {
|
|
return ResourceParser.WidgetBgResources.getWidget2xBgResource(bgId);
|
|
}
|
|
|
|
@Override
|
|
protected int getWidgetType() {
|
|
return Notes.TYPE_WIDGET_2X;
|
|
}
|
|
}
|