Update destination

This commit is contained in:
Victor Shcherb 2015-03-29 00:33:15 +01:00
parent f303126402
commit 8c310bc0ec
12 changed files with 9 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -45,7 +45,7 @@
android:layout_gravity="right"
android:background="@drawable/dashboard_button_light"
android:scaleType="center"
android:src="@drawable/ic_action_settings_dark" />
android:src="@drawable/ic_action_settings_enabled_dark" />
<ImageView

View file

@ -6,7 +6,6 @@ import net.osmand.plus.R;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
@ -39,8 +38,6 @@ public class FavoriteImageDrawable extends Drawable {
mgr.getDefaultDisplay().getMetrics(dm);
density = dm.density;
drawable = getResources().getDrawable(R.drawable.ic_action_fav_dark);
bmp = BitmapFactory.decodeResource(getResources(), R.drawable.ic_action_fav_light);
bmpDest = new RectF();
paintOuter = new Paint();
paintOuter.setAntiAlias(true);
paintOuter.setStyle(Style.FILL_AND_STROKE);
@ -98,11 +95,14 @@ public class FavoriteImageDrawable extends Drawable {
}
public void drawBitmapInCenter(Canvas canvas, int x, int y, float density) {
float bmpRad = 10 * density;
bmpDest.set(x - bmpRad, y - bmpRad, x + bmpRad, y + bmpRad);
canvas.drawCircle(x, density + y, bmpRad + 3 * density, paintOuter);
canvas.drawCircle(x, density + y, bmpRad + 2 * density, paintInnerCircle);
canvas.drawBitmap(bmp, null, bmpDest, paintBmp);
canvas.translate(x, y);
draw(canvas);
canvas.translate(-x, -y);
// float bmpRad = 10 * density;
// bmpDest.set(x - bmpRad, y - bmpRad, x + bmpRad, y + bmpRad);
// canvas.drawCircle(x, density + y, bmpRad + 3 * density, paintOuter);
// canvas.drawCircle(x, density + y, bmpRad + 2 * density, paintInnerCircle);
// canvas.drawBitmap(bmp, null, bmpDest, paintBmp);
}
@Override