pull to psu h
@@ -0,0 +1,58 @@
|
||||
package com.mogo.module.apps.model;
|
||||
|
||||
import androidx.annotation.DrawableRes;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-03-13
|
||||
* <p>
|
||||
* app
|
||||
*/
|
||||
public class NavigatorApp {
|
||||
|
||||
@DrawableRes
|
||||
public int mIconId;
|
||||
@DrawableRes
|
||||
public int mUncheckedIconId;
|
||||
public String mName;
|
||||
public String mModuleType;
|
||||
|
||||
public NavigatorApp( int mIconId,int mUncheckedIconId, String mName, String mModuleType ) {
|
||||
this.mIconId = mIconId;
|
||||
this.mUncheckedIconId = mUncheckedIconId;
|
||||
this.mName = mName;
|
||||
this.mModuleType = mModuleType;
|
||||
}
|
||||
|
||||
public int getmIconId() {
|
||||
return mIconId;
|
||||
}
|
||||
|
||||
public void setmIconId(int mIconId) {
|
||||
this.mIconId = mIconId;
|
||||
}
|
||||
|
||||
public int getmUncheckedIconId() {
|
||||
return mUncheckedIconId;
|
||||
}
|
||||
|
||||
public void setmUncheckedIconId(int mUncheckedIconId) {
|
||||
this.mUncheckedIconId = mUncheckedIconId;
|
||||
}
|
||||
|
||||
public String getmName() {
|
||||
return mName;
|
||||
}
|
||||
|
||||
public void setmName(String mName) {
|
||||
this.mName = mName;
|
||||
}
|
||||
|
||||
public String getmModuleType() {
|
||||
return mModuleType;
|
||||
}
|
||||
|
||||
public void setmModuleType(String mModuleType) {
|
||||
this.mModuleType = mModuleType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.mogo.module.apps.model;
|
||||
|
||||
import com.mogo.module.apps.R;
|
||||
import com.mogo.module.common.ModuleNames;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-03-13
|
||||
* <p>
|
||||
* app
|
||||
*/
|
||||
public class NavigatorApps {
|
||||
|
||||
//integers.add(R.drawable.module_apps_ic_online_car);
|
||||
//integers.add(R.drawable.module_apps_ic_interest);
|
||||
//integers.add(R.drawable.module_apps_ic_news);
|
||||
//integers.add(R.drawable.module_apps_ic_media_center);
|
||||
//integers.add(R.drawable.module_apps_ic_chat_icon);
|
||||
//integers.add(R.drawable.module_apps_ic_tanlu);
|
||||
|
||||
public static List< NavigatorApp > getApps() {
|
||||
List< NavigatorApp > apps = new ArrayList<>();
|
||||
apps.add( new NavigatorApp( R.drawable.module_apps_ic_online_car,R.drawable.module_apps_ic_online_car_unchecked, "在线车辆", ModuleNames.CARD_TYPE_USER_DATA ) );
|
||||
apps.add( new NavigatorApp( R.drawable.module_apps_ic_interest, R.drawable.module_apps_ic_interest_unchecked,"新鲜事", ModuleNames.CARD_TYPE_NOVELTY ) );
|
||||
apps.add( new NavigatorApp( R.drawable.module_apps_ic_news,R.drawable.module_apps_ic_news_unchecked, "首页", ModuleNames.CARD_TYPE_BUSINESS_OPERATION ) );
|
||||
apps.add( new NavigatorApp( R.drawable.module_apps_ic_media_center, R.drawable.module_apps_ic_media_center_checked, "媒体中心", ModuleNames.CARD_TYPE_SHARE_MUSIC ) );
|
||||
apps.add( new NavigatorApp( R.drawable.module_apps_ic_chat_icon, R.drawable.module_apps_ic_chat_unchecked,"车聊聊", ModuleNames.CARD_TYPE_CARS_CHATTING ) );
|
||||
apps.add( new NavigatorApp( R.drawable.module_apps_ic_tanlu, R.drawable.module_apps_ic_tanlu_unchecked,"探路", ModuleNames.CARD_TYPE_ROAD_CONDITION ) );
|
||||
return apps;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
20
modules/mogo-module-apps/src/main/res/values/colors.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#008577</color>
|
||||
<color name="colorPrimaryDark">#00574B</color>
|
||||
<color name="colorAccent">#D81B60</color>
|
||||
<color name="bg_gray_common_page">#ff080625</color>
|
||||
<color name="white">#FFFFFF</color>
|
||||
<color name="translate">#00000000</color>
|
||||
<color name="white_10">#1AFFFFFF</color>
|
||||
<color name="white_60">#99FFFFFF</color>
|
||||
<color name="white_80">#CCFFFFFF</color>
|
||||
<color name="white_7f">#7FFFFFFF</color>
|
||||
<color name="arrow_color">#00BFFF</color>
|
||||
<color name="white_30">#4DFFFFFF</color>
|
||||
<color name="txt_gray_day">#4D080625</color>
|
||||
|
||||
<color name="bg_common">#080625</color>
|
||||
<color name="txt_blue">#3E7FFC</color>
|
||||
|
||||
</resources>
|
||||
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 713 B |
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,28 @@
|
||||
package com.mogo.module.service.strategy;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||
import com.mogo.module.service.MogoServices;
|
||||
import com.mogo.service.MogoServicePaths;
|
||||
import com.mogo.service.strategy.IMogoRefreshStrategyController;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-03-13
|
||||
* <p>
|
||||
* 描述
|
||||
*/
|
||||
@Route( path = MogoServicePaths.PATH_REFRESH_STRATEGY_API )
|
||||
public class MogoRefreshStrategyController implements IMogoRefreshStrategyController {
|
||||
|
||||
@Override
|
||||
public void restartAutoRefreshAtTime( int delay ) {
|
||||
MogoServices.getInstance().restartAutoRefreshAtTime( delay );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init( Context context ) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mogo.service.strategy;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-03-13
|
||||
* <p>
|
||||
* 刷新策略控制
|
||||
*/
|
||||
public interface IMogoRefreshStrategyController extends IProvider {
|
||||
|
||||
/**
|
||||
* 中断当前刷新,在 delay ms 后再次刷新
|
||||
*
|
||||
* @param delay 单位(ms) 0 为则立即刷新,为负值则忽略
|
||||
*/
|
||||
void restartAutoRefreshAtTime( int delay );
|
||||
|
||||
}
|
||||