Scale generated bitmaps up for better rendering
app/src/main/java/eu/lepiller/nani/dictionary/Dictionary.java
108 | 108 | ||
109 | 109 | public Drawable getNewDrawable(Context context) { | |
110 | 110 | if(newDrawable == null) { | |
111 | - | Bitmap big = Bitmap.createBitmap(64, 64, Bitmap.Config.ARGB_8888); | |
111 | + | Bitmap big = Bitmap.createBitmap(640, 640, Bitmap.Config.ARGB_8888); | |
112 | 112 | Canvas canvas = new Canvas(big); | |
113 | 113 | ||
114 | 114 | // Ensure we have the base icon | |
… | |||
121 | 121 | star = context.getResources().getDrawable(R.drawable.ic_star); | |
122 | 122 | } | |
123 | 123 | ||
124 | - | canvas.drawBitmap(drawableToBitmap(drawable, 64, 64), 0, 0, null); | |
125 | - | canvas.drawBitmap(drawableToBitmap(star, 22, 22), 39, 39, null); | |
124 | + | canvas.drawBitmap(drawableToBitmap(drawable, 640, 640), 0, 0, null); | |
125 | + | canvas.drawBitmap(drawableToBitmap(star, 220, 220), 390, 390, null); | |
126 | 126 | newDrawable = new BitmapDrawable(context.getResources(), big); | |
127 | 127 | } | |
128 | 128 | return newDrawable; |