modify code standard
This commit is contained in:
@@ -68,6 +68,6 @@ dependencies {
|
||||
implementation project(':modules:mogo-module-common')
|
||||
implementation project(':demo:demo-module-map')
|
||||
implementation project(':demo:demo-module-map2')
|
||||
implementation project(':demo:tanlu-module')
|
||||
implementation project(':demo:mogo-module-tanlu')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.mogo.commons.AbsMogoApplication;
|
||||
import com.mogo.demo.module.map.DemoConstants;
|
||||
import com.mogo.demo.module.map2.Demo2Constants;
|
||||
import com.mogo.module.common.MogoModulePaths;
|
||||
import com.zhidao.tanlu.TanluConstants;
|
||||
import com.mogo.tanlu.TanluConstants;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
|
||||
@@ -78,7 +78,7 @@ ext {
|
||||
// modules
|
||||
moduledemo : "com.mogo.module:module-demo:${DEMO_MODULE_MAP_VERSION}",
|
||||
moduledemo2 : "com.mogo.module:module-demo2:${DEMO_MODULE_MAP2_VERSION}",
|
||||
tanlu : "com.mogo.module:tanlu-module:${MOGO_MODULE_TANLU_VERSION}",
|
||||
tanlu : "com.mogo.module:mogo-module-tanlu:${MOGO_MODULE_TANLU_VERSION}",
|
||||
mogocommons : "com.mogo.commons:mogo-commons:${MOGO_COMMONS_VERSION}",
|
||||
mogoutils : "com.mogo.commons:mogo-utils:${MOGO_UTILS_VERSION}",
|
||||
mapamap : "com.mogo.map:map-amap:${MAP_AMAP_VERSION}",
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.zhidao.tanlu" />
|
||||
package="com.mogo.tanlu" />
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zhidao.tanlu;
|
||||
package com.mogo.tanlu;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
@@ -68,7 +68,7 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.tanlu_module_card_view;
|
||||
return R.layout.tanlu_card_view;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zhidao.tanlu;
|
||||
package com.mogo.tanlu;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zhidao.tanlu;
|
||||
package com.mogo.tanlu;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zhidao.tanlu;
|
||||
package com.mogo.tanlu;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
@@ -18,7 +18,6 @@ import com.mogo.service.imageloader.IMogoImageloader;
|
||||
import com.mogo.service.imageloader.MogoImageView;
|
||||
import com.mogo.utils.WindowUtils;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
@@ -45,11 +44,11 @@ public class TanluInfoWindowAdapter implements IMogoInfoWindowAdapter {
|
||||
@Override
|
||||
public View getInfoWindow( IMogoMarker marker ) {
|
||||
if ( marker.getObject() instanceof MogoPoiItem ) {
|
||||
View view = LayoutInflater.from( mContext ).inflate( R.layout.tanlu_module_poi_info_window, null );
|
||||
View view = LayoutInflater.from( mContext ).inflate( R.layout.tanlu_poi_info_window, null );
|
||||
renderPoiVew( view, marker, ( ( MogoPoiItem ) marker.getObject() ) );
|
||||
return view;
|
||||
} else {
|
||||
View view = LayoutInflater.from( mContext ).inflate( R.layout.tanlu_module_info_window, null );
|
||||
View view = LayoutInflater.from( mContext ).inflate( R.layout.tanlu_info_window, null );
|
||||
renderView( view, marker );
|
||||
return view;
|
||||
}
|
||||
@@ -103,7 +102,7 @@ public class TanluInfoWindowAdapter implements IMogoInfoWindowAdapter {
|
||||
}
|
||||
|
||||
public View getMarkerView( final MogoMarkerOptions options ) {
|
||||
final View view = LayoutInflater.from( mContext ).inflate( R.layout.tanlu_module_bubble_marker, null );
|
||||
final View view = LayoutInflater.from( mContext ).inflate( R.layout.tanlu_bubble_marker, null );
|
||||
final MogoImageView icon = view.findViewById( R.id.icon );
|
||||
mImageloader.displayImage( "http://imgnews.gmw.cn/attachement/jpg/site2/20191229/00d86176ed0b1f71f4580f.jpg", icon, WindowUtils.dip2px( mContext, 50 ), WindowUtils.dip2px( mContext, 50 ),
|
||||
new IMogoImageLoaderListener() {
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zhidao.tanlu;
|
||||
package com.mogo.tanlu;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
@@ -11,7 +11,7 @@ include ':modules:mogo-module-main'
|
||||
include ':modules:mogo-module-navi'
|
||||
include ':demo:demo-module-map'
|
||||
include ':demo:demo-module-map2'
|
||||
include ':demo:tanlu-module'
|
||||
include ':demo:mogo-module-tanlu'
|
||||
include ':libraries:map-amap'
|
||||
//include ':libraries:map-baidu'
|
||||
include ':libraries:mogo-map-api'
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
./gradlew :demo:demo-module-map2:clean :demo:demo-module-map2:uploadArchives
|
||||
./gradlew :modules:mogo-module-apps:clean :modules:mogo-module-apps:uploadArchives
|
||||
./gradlew :modules:mogo-module-main:clean :modules:mogo-module-main:uploadArchives
|
||||
./gradlew :demo:tanlu-module:clean :demo:tanlu-module:uploadArchives
|
||||
./gradlew :demo:mogo-module-tanlu:clean :demo:mogo-module-tanlu:uploadArchives
|
||||
Reference in New Issue
Block a user