1 package com.android.launcher3.testing; 2 3 import android.appwidget.AppWidgetProviderInfo; 4 5 import com.android.launcher3.CustomAppWidget; 6 import com.android.launcher3.R; 7 8 public class DummyWidget implements CustomAppWidget { 9 @Override getLabel()10 public String getLabel() { 11 return "Dumb Launcher Widget"; 12 } 13 14 @Override getPreviewImage()15 public int getPreviewImage() { 16 return 0; 17 } 18 19 @Override getIcon()20 public int getIcon() { 21 return 0; 22 } 23 24 @Override getWidgetLayout()25 public int getWidgetLayout() { 26 return R.layout.zzz_dummy_widget; 27 } 28 29 @Override getSpanX()30 public int getSpanX() { 31 return 2; 32 } 33 34 @Override getSpanY()35 public int getSpanY() { 36 return 2; 37 } 38 39 @Override getMinSpanX()40 public int getMinSpanX() { 41 return 1; 42 } 43 44 @Override getMinSpanY()45 public int getMinSpanY() { 46 return 1; 47 } 48 49 @Override getResizeMode()50 public int getResizeMode() { 51 return AppWidgetProviderInfo.RESIZE_BOTH; 52 } 53 } 54