diff --git a/OsmAnd/res/drawable/tour_bg.xml b/OsmAnd/res/drawable/tour_bg.xml new file mode 100644 index 0000000000..e60cc59b73 --- /dev/null +++ b/OsmAnd/res/drawable/tour_bg.xml @@ -0,0 +1,8 @@ + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/sherpafy_list_tour_item.xml b/OsmAnd/res/layout/sherpafy_list_tour_item.xml index a630480f32..6decc6f550 100644 --- a/OsmAnd/res/layout/sherpafy_list_tour_item.xml +++ b/OsmAnd/res/layout/sherpafy_list_tour_item.xml @@ -1,74 +1,79 @@ + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="@drawable/sherpafy_tour_row"> - + - + + + + - - + + - - + - + - + + - - - + + \ No newline at end of file diff --git a/OsmAnd/res/layout/waypoint_header.xml b/OsmAnd/res/layout/waypoint_header.xml new file mode 100644 index 0000000000..e44290f6b7 --- /dev/null +++ b/OsmAnd/res/layout/waypoint_header.xml @@ -0,0 +1,26 @@ + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/views/CustomImageView.java b/OsmAnd/src/net/osmand/plus/views/CustomImageView.java new file mode 100644 index 0000000000..5f3a1fec94 --- /dev/null +++ b/OsmAnd/src/net/osmand/plus/views/CustomImageView.java @@ -0,0 +1,38 @@ +package net.osmand.plus.views; + +import android.content.Context; +import android.graphics.Canvas; +import android.graphics.Path; +import android.graphics.RectF; +import android.util.AttributeSet; +import android.widget.ImageView; + +/** + * Created by Denis on 13.08.2014. + */ +public class CustomImageView extends ImageView { + + public static float radius = 13.0f; + + public CustomImageView(Context context) { + super(context); + } + + public CustomImageView(Context context, AttributeSet attrs) { + super(context, attrs); + } + + public CustomImageView(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + } + + @Override + protected void onDraw(Canvas canvas) { + //float radius = 36.0f; + Path clipPath = new Path(); + RectF rect = new RectF(0, 0, this.getWidth(), this.getHeight()); + clipPath.addRoundRect(rect, radius, radius, Path.Direction.CW); + canvas.clipPath(clipPath); + super.onDraw(canvas); + } +}