android - Custom drawable on mapview -
rectangle.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" android:layout_weight="100"> <solid android:color="#ffffff"/> <stroke android:width="3dp" android:color="#ff000000"/> <padding android:left="1dp" android:top="1dp" android:right="1dp" android:bottom="1dp"/> <corners android:radius="30dp"/> </shape> my map activity //drawable d = getresources().getdrawable(r.drawable.chart); <-- drawn on map drawable rect = getresources().getdrawable(r.drawable.rectangle); // <-- wont overlayitems itemizedoverlay = new overlayitems(rect, this); could please explain why cant add custom shapes on mapview? normal png file works well, if try make custom shape , add it, wont appear. makes no sense me since theyre both drawables? did mi...