|
@@ -4,6 +4,7 @@ import android.app.Activity;
|
|
|
import android.content.Context;
|
|
import android.content.Context;
|
|
|
import android.content.pm.PackageInfo;
|
|
import android.content.pm.PackageInfo;
|
|
|
import android.content.pm.PackageManager;
|
|
import android.content.pm.PackageManager;
|
|
|
|
|
+import android.graphics.Color;
|
|
|
import android.location.Location;
|
|
import android.location.Location;
|
|
|
import android.location.LocationManager;
|
|
import android.location.LocationManager;
|
|
|
import android.os.Bundle;
|
|
import android.os.Bundle;
|
|
@@ -142,10 +143,11 @@ public class ShipMap extends RelativeLayout implements GoogleMap.OnMarkerClickLi
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
ImageButton resizeBtn = new ImageButton(mContext);
|
|
ImageButton resizeBtn = new ImageButton(mContext);
|
|
|
- resizeBtn.setImageResource(R.drawable.rect_history);
|
|
|
|
|
|
|
+ resizeBtn.setImageResource(R.drawable.resize_max);
|
|
|
|
|
+ resizeBtn.setBackgroundResource(R.drawable.clear_background);
|
|
|
resizeBtn.setTag(false);
|
|
resizeBtn.setTag(false);
|
|
|
|
|
|
|
|
- LayoutParams layoutParams = new LayoutParams(dp2px(mContext,40.0f),dp2px(mContext,40.0f));
|
|
|
|
|
|
|
+ LayoutParams layoutParams = new LayoutParams(dp2px(mContext,30.0f),dp2px(mContext,30.0f));
|
|
|
layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP);
|
|
layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP);
|
|
|
layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
|
|
layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
|
|
|
layoutParams.setMargins(0,dp2px(mContext,10.0f),dp2px(mContext,10.0f),0);
|
|
layoutParams.setMargins(0,dp2px(mContext,10.0f),dp2px(mContext,10.0f),0);
|
|
@@ -172,9 +174,9 @@ public class ShipMap extends RelativeLayout implements GoogleMap.OnMarkerClickLi
|
|
|
mResizeBtn.setTag(zoomIn);
|
|
mResizeBtn.setTag(zoomIn);
|
|
|
|
|
|
|
|
if (zoomIn) {
|
|
if (zoomIn) {
|
|
|
- mResizeBtn.setImageResource(R.drawable.rect_announcements);
|
|
|
|
|
|
|
+ mResizeBtn.setImageResource(R.drawable.resize_min);
|
|
|
} else {
|
|
} else {
|
|
|
- mResizeBtn.setImageResource(R.drawable.rect_history);
|
|
|
|
|
|
|
+ mResizeBtn.setImageResource(R.drawable.resize_max);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (mListener != null) {
|
|
if (mListener != null) {
|