merge
@@ -111,6 +111,8 @@ android {
|
||||
buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false'
|
||||
// 是否加载引导模块
|
||||
buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false'
|
||||
// 是否支持换肤
|
||||
buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'true'
|
||||
}
|
||||
// f系列-分体机
|
||||
f80x {
|
||||
@@ -127,6 +129,8 @@ android {
|
||||
buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false'
|
||||
// 是否加载引导模块
|
||||
buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false'
|
||||
// 是否支持换肤
|
||||
buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'true'
|
||||
}
|
||||
// e系列,采用Launcher方案
|
||||
e8xx {
|
||||
@@ -143,6 +147,8 @@ android {
|
||||
buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false'
|
||||
// 是否加载引导模块
|
||||
buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false'
|
||||
// 是否支持换肤
|
||||
buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'true'
|
||||
}
|
||||
// 同上
|
||||
em4 {
|
||||
@@ -159,6 +165,8 @@ android {
|
||||
buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false'
|
||||
// 是否加载引导模块
|
||||
buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false'
|
||||
// 是否支持换肤
|
||||
buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'true'
|
||||
}
|
||||
// e系列-2+32,对标D系列2+32,采用独立app的形式
|
||||
em3 {
|
||||
@@ -175,6 +183,8 @@ android {
|
||||
buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false'
|
||||
// 是否加载引导模块
|
||||
buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false'
|
||||
// 是否支持换肤
|
||||
buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'false'
|
||||
}
|
||||
// e系列-1+16,对标D系列1+16,采用独立app形式
|
||||
em1 {
|
||||
@@ -191,6 +201,8 @@ android {
|
||||
buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false'
|
||||
// 是否加载引导模块
|
||||
buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false'
|
||||
// 是否支持换肤
|
||||
buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'false'
|
||||
}
|
||||
// d系列
|
||||
d8xx {
|
||||
@@ -207,6 +219,8 @@ android {
|
||||
buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false'
|
||||
// 是否加载引导模块
|
||||
buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'true'
|
||||
// 是否支持换肤
|
||||
buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'false'
|
||||
}
|
||||
// d系列 2 + 32
|
||||
d80x {
|
||||
@@ -223,6 +237,8 @@ android {
|
||||
buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false'
|
||||
// 是否加载引导模块
|
||||
buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'true'
|
||||
// 是否支持换肤
|
||||
buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'false'
|
||||
}
|
||||
// d系列 1+16 版本
|
||||
d82x {
|
||||
@@ -239,6 +255,8 @@ android {
|
||||
buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false'
|
||||
// 是否加载引导模块
|
||||
buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'true'
|
||||
// 是否支持换肤
|
||||
buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'false'
|
||||
}
|
||||
// 比亚迪
|
||||
bydauto {
|
||||
@@ -255,6 +273,8 @@ android {
|
||||
buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'true'
|
||||
// 是否加载引导模块
|
||||
buildConfigField 'boolean', 'LOAD_GUIDE_MODULE', 'false'
|
||||
// 是否支持换肤
|
||||
buildConfigField 'boolean', 'IS_SKIN_SUPPORTED', 'false'
|
||||
}
|
||||
qa {
|
||||
dimension "env"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
afterEvaluate {
|
||||
|
||||
def independent = ["em3", "em1", "d80x", "d82x", "bydauto"]
|
||||
def launcher = ["f80x", "em4"]
|
||||
def launcher = ["f80x", "em4", "e8xx"]
|
||||
|
||||
it.getTasks().iterator().forEachRemaining {
|
||||
def task = it
|
||||
|
||||
@@ -130,6 +130,7 @@ public class MogoApplication extends AbsMogoApplication {
|
||||
DebugConfig.setSocketAppId( BuildConfig.SOCKET_APP_ID );
|
||||
DebugConfig.setRoadEventAnimated( BuildConfig.ROAD_EVENT_ANIMATED );
|
||||
DebugConfig.setLoadGuideModule( BuildConfig.LOAD_GUIDE_MODULE );
|
||||
DebugConfig.setSkinSupported( BuildConfig.IS_SKIN_SUPPORTED );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -267,4 +267,14 @@ public class DebugConfig {
|
||||
public static String getSpGuide(){
|
||||
return SP_GUIDE;
|
||||
}
|
||||
|
||||
private static boolean isSkinSupported = false;
|
||||
|
||||
public static void setSkinSupported( boolean isSkinSupported ) {
|
||||
DebugConfig.isSkinSupported = isSkinSupported;
|
||||
}
|
||||
|
||||
public static boolean isSkinSupported() {
|
||||
return isSkinSupported;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
* 加载并保存 app 列表
|
||||
*/
|
||||
public class AppsModel {
|
||||
|
||||
|
||||
private static final String TAG = "AppsModel";
|
||||
|
||||
private static volatile AppsModel sInstance;
|
||||
@@ -57,7 +57,6 @@ public class AppsModel {
|
||||
if ( mPagedApps != null ) {
|
||||
mPagedApps.clear();
|
||||
}
|
||||
mPagedApps = null;
|
||||
mContext = null;
|
||||
mAppFilter = null;
|
||||
sInstance = null;
|
||||
@@ -116,9 +115,12 @@ public class AppsModel {
|
||||
if ( TextUtils.isEmpty( packageName ) ) {
|
||||
return;
|
||||
}
|
||||
if ( mPagedApps.isEmpty() ) {
|
||||
if ( mPagedApps == null || mPagedApps.isEmpty() ) {
|
||||
return;
|
||||
}
|
||||
if ( mAppFilter == null ) {
|
||||
mAppFilter = new AppFilterImpl( mContext );
|
||||
}
|
||||
try {
|
||||
final PackageManager packageManager = mContext.getPackageManager();
|
||||
PackageInfo packageInfo = packageManager.getPackageInfo( packageName, 0 );
|
||||
@@ -183,6 +185,9 @@ public class AppsModel {
|
||||
if ( TextUtils.isEmpty( packageName ) ) {
|
||||
return;
|
||||
}
|
||||
if ( mPagedApps == null || mPagedApps.isEmpty() ) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
int pageIndex = getPageIndex( packageName, false );
|
||||
if ( pageIndex == -1 ) {
|
||||
|
||||
@@ -1053,5 +1053,6 @@
|
||||
<dimen name="sp_42">42px</dimen>
|
||||
<dimen name="sp_48">48px</dimen>
|
||||
<dimen name="module_common_shadow_width">-10px</dimen>
|
||||
<dimen name="module_common_shadow_width_pos">10px</dimen>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -1044,4 +1044,5 @@
|
||||
<dimen name="sp_42">22.9688px</dimen>
|
||||
<dimen name="sp_48">26.2500px</dimen>
|
||||
<dimen name="module_common_shadow_width">-8px</dimen>
|
||||
<dimen name="module_common_shadow_width_pos">8px</dimen>
|
||||
</resources>
|
||||
|
||||
@@ -81,8 +81,10 @@
|
||||
android:id="@+id/module_entrance_id_move2_current_location"
|
||||
android:layout_width="@dimen/module_ext_operation_panel_width"
|
||||
android:layout_height="@dimen/module_ext_operation_panel_move2_height"
|
||||
android:background="@drawable/module_ext_dw_common_corner_bkg"
|
||||
android:background="@drawable/module_ext_shadow_bkg"
|
||||
android:scaleType="centerInside"
|
||||
android:translationY="@dimen/module_common_shadow_width_pos"
|
||||
android:translationX="@dimen/module_common_shadow_width_pos"
|
||||
android:src="@drawable/module_map_ic_move2_current_location"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent" />
|
||||
|
||||
@@ -73,8 +73,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivUserHeadImg"
|
||||
android:layout_width="@dimen/module_ext_height"
|
||||
android:layout_height="@dimen/module_ext_height"
|
||||
android:layout_width="@dimen/module_ext_user_avator_size"
|
||||
android:layout_height="@dimen/module_ext_user_avator_size"
|
||||
android:src="@drawable/model_ext_default_user_head"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="module_ext_msg_counter_margin">26px</dimen>
|
||||
<dimen name="module_ext_user_avator_size">66px</dimen>
|
||||
</resources>
|
||||
@@ -30,17 +30,17 @@
|
||||
<dimen name="module_ext_navi_panel_marginLeft">32px</dimen>
|
||||
<dimen name="module_ext_navi_panel_marginTop">2px</dimen>
|
||||
|
||||
<dimen name="module_ext_operation_panel_width">120px</dimen>
|
||||
<dimen name="module_ext_operation_panel_width">140px</dimen>
|
||||
<dimen name="module_ext_operation_panel_marginRight">32px</dimen>
|
||||
<dimen name="module_ext_operation_panel_marginBottom">60px</dimen>
|
||||
<dimen name="module_ext_operation_panel_vr_height">92px</dimen>
|
||||
<dimen name="module_ext_operation_panel_vr_textSize">24px</dimen>
|
||||
<dimen name="module_ext_operation_panel_divider_width">48px</dimen>
|
||||
<dimen name="module_ext_operation_panel_divider_height">2px</dimen>
|
||||
<dimen name="module_ext_operation_panel_move2_height">120px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_width">120px</dimen>
|
||||
<dimen name="module_ext_operation_panel_move2_height">140px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_width">140px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_height">120px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_marginBottom">30px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_marginBottom">20px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_textSize">30px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_goneMarginBottom">32px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_goneMarginRight">32px</dimen>
|
||||
@@ -146,4 +146,5 @@
|
||||
|
||||
<dimen name="module_ext_top_over_navi_height">40px</dimen>
|
||||
<dimen name="module_ext_msg_counter_margin">45px</dimen>
|
||||
<dimen name="module_ext_user_avator_size">120px</dimen>
|
||||
</resources>
|
||||
@@ -30,17 +30,17 @@
|
||||
<dimen name="module_ext_navi_panel_marginLeft">32px</dimen>
|
||||
<dimen name="module_ext_navi_panel_marginTop">2px</dimen>
|
||||
|
||||
<dimen name="module_ext_operation_panel_width">120px</dimen>
|
||||
<dimen name="module_ext_operation_panel_width">140px</dimen>
|
||||
<dimen name="module_ext_operation_panel_marginRight">32px</dimen>
|
||||
<dimen name="module_ext_operation_panel_marginBottom">60px</dimen>
|
||||
<dimen name="module_ext_operation_panel_vr_height">92px</dimen>
|
||||
<dimen name="module_ext_operation_panel_vr_textSize">24px</dimen>
|
||||
<dimen name="module_ext_operation_panel_divider_width">48px</dimen>
|
||||
<dimen name="module_ext_operation_panel_divider_height">2px</dimen>
|
||||
<dimen name="module_ext_operation_panel_move2_height">120px</dimen>
|
||||
<dimen name="module_ext_operation_panel_move2_height">140px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_width">120px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_height">120px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_marginBottom">30px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_marginBottom">20px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_textSize">30px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_goneMarginBottom">32px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_goneMarginRight">32px</dimen>
|
||||
@@ -148,4 +148,5 @@
|
||||
<dimen name="module_ext_notice_margin_start">175px</dimen>
|
||||
<dimen name="module_ext_weather_margin_start">30px</dimen>
|
||||
<dimen name="module_ext_msg_counter_margin">45px</dimen>
|
||||
<dimen name="module_ext_user_avator_size">120px</dimen>
|
||||
</resources>
|
||||
@@ -30,17 +30,17 @@
|
||||
<dimen name="module_ext_navi_panel_marginLeft">20px</dimen>
|
||||
<dimen name="module_ext_navi_panel_marginTop">1px</dimen>
|
||||
|
||||
<dimen name="module_ext_operation_panel_width">66px</dimen>
|
||||
<dimen name="module_ext_operation_panel_width">82px</dimen>
|
||||
<dimen name="module_ext_operation_panel_marginRight">20px</dimen>
|
||||
<dimen name="module_ext_operation_panel_marginBottom">34.5px</dimen>
|
||||
<dimen name="module_ext_operation_panel_vr_height">58px</dimen>
|
||||
<dimen name="module_ext_operation_panel_vr_textSize">17px</dimen>
|
||||
<dimen name="module_ext_operation_panel_divider_width">31.4px</dimen>
|
||||
<dimen name="module_ext_operation_panel_divider_height">1.2px</dimen>
|
||||
<dimen name="module_ext_operation_panel_move2_height">66px</dimen>
|
||||
<dimen name="module_ext_operation_panel_move2_height">82px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_width">66px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_height">66px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_marginBottom">16px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_marginBottom">8px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_textSize">16px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_goneMarginBottom">34.5px</dimen>
|
||||
<dimen name="module_ext_operation_panel_share_goneMarginRight">20px</dimen>
|
||||
@@ -153,5 +153,6 @@
|
||||
<dimen name="module_ext_top_over_navi_height">19px</dimen>
|
||||
<dimen name="module_ext_weather_margin_start">16px</dimen>
|
||||
<dimen name="module_ext_msg_counter_margin">26px</dimen>
|
||||
<dimen name="module_ext_user_avator_size">66px</dimen>
|
||||
|
||||
</resources>
|
||||
@@ -163,7 +163,9 @@ public class MainActivity extends MvpActivity< MainView, MainPresenter > impleme
|
||||
// obuManager.registerObuDataChangedListener(EventDispatchCenter.getInstance());
|
||||
// }
|
||||
|
||||
initAdasControlStatusListener();
|
||||
if ( DebugConfig.isSkinSupported() ) {
|
||||
initAdasControlStatusListener();
|
||||
}
|
||||
EventDispatchCenter.getInstance().setMapLoadedCallback( () -> {
|
||||
Logger.d( TAG, "map loaded." + Thread.currentThread().getName() );
|
||||
|
||||
|
||||
@@ -48,6 +48,12 @@
|
||||
android:layout_marginLeft="@dimen/module_main_id_entrance_fragment_container_marginLeft"
|
||||
android:padding="@dimen/module_main_entrance_fragment_container_padding" />
|
||||
|
||||
<!-- 浮层-->
|
||||
<FrameLayout
|
||||
android:id="@+id/module_main_id_floating_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/module_main_id_event_panel_fragment_container"
|
||||
android:layout_width="match_parent"
|
||||
@@ -61,12 +67,6 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="@dimen/module_main_id_entrance_fragment_container_marginLeft"/>
|
||||
|
||||
<!-- 浮层-->
|
||||
<FrameLayout
|
||||
android:id="@+id/module_main_id_floating_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/module_main_id_search_fragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
<dimen name="cards_container_shadow_dp_margin_top">319px</dimen>
|
||||
|
||||
<dimen name="module_main_apps_fragment_container_width">110px</dimen>
|
||||
<dimen name="module_main_apps_fragment_container_padding">16px</dimen>
|
||||
<dimen name="module_main_apps_fragment_container_padding">10px</dimen>
|
||||
<dimen name="module_main_header_fragment_container_marginTop">15px</dimen>
|
||||
<dimen name="module_main_header_fragment_container_marginLeft">460px</dimen>
|
||||
<dimen name="module_main_id_entrance_fragment_container_marginLeft">444px</dimen>
|
||||
<dimen name="module_main_id_left_panel_fragment_container_width">350px</dimen>
|
||||
<dimen name="module_main_entrance_fragment_container_padding">16px</dimen>
|
||||
<dimen name="module_main_entrance_fragment_container_padding">10px</dimen>
|
||||
<dimen name="module_main_entrance_fragment_container_padding_top">16px</dimen>
|
||||
<dimen name="module_main_entrance_fragment_container_width">658px</dimen>
|
||||
<dimen name="module_event_fragment_container_padding">8px</dimen>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 574 B |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 574 B |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 583 B |
@@ -977,9 +977,11 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
return;
|
||||
}
|
||||
if ( mLastDataResult != null ) {
|
||||
MarkerServiceHandler.getMarkerManager().removeMarkers( ModuleNames.CARD_TYPE_ROAD_CONDITION );
|
||||
drawMarkerByCurrentType( mLastDataResult );
|
||||
mLastCheckMarker = null;
|
||||
runOnTargetThread( ()->{
|
||||
MarkerServiceHandler.getMarkerManager().removeMarkers( ModuleNames.CARD_TYPE_ROAD_CONDITION );
|
||||
drawMarkerByCurrentType( mLastDataResult );
|
||||
mLastCheckMarker = null;
|
||||
} );
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -332,12 +332,17 @@ public class TanluSlideAdapterNew extends RecyclerView.Adapter<TanluSlideViewHol
|
||||
//加载图片
|
||||
RequestOptions requestOptions = new RequestOptions()
|
||||
.placeholder(R.drawable.tanlu_normal_image)
|
||||
.error(R.drawable.tanlu_normal_image)
|
||||
.fallback(R.drawable.tanlu_normal_image);
|
||||
.error(R.drawable.tanlu_normal_image);
|
||||
// Glide.with(mContext)
|
||||
// .load(mImageUrl)
|
||||
// .apply(requestOptions)
|
||||
// .into(autoZoomInImageView);
|
||||
|
||||
Glide.with(mContext)
|
||||
.asBitmap()
|
||||
.load(mImageUrl)
|
||||
.apply(requestOptions)
|
||||
.into(autoZoomInImageView);
|
||||
.into(new SkinAbleBitmapTarget(autoZoomInImageView, requestOptions));
|
||||
}
|
||||
|
||||
traceVideoPlayStatusData();
|
||||
@@ -369,8 +374,7 @@ public class TanluSlideAdapterNew extends RecyclerView.Adapter<TanluSlideViewHol
|
||||
//加载图片
|
||||
RequestOptions requestOptions = new RequestOptions()
|
||||
.placeholder(R.drawable.tanlu_normal_image)
|
||||
.error(R.drawable.tanlu_normal_image)
|
||||
.fallback(R.drawable.tanlu_normal_image);
|
||||
.error(R.drawable.tanlu_normal_image);
|
||||
Glide.with(mContext)
|
||||
.asBitmap()
|
||||
.load(imageUrl)
|
||||
|
||||
@@ -8,6 +8,7 @@ import android.view.View
|
||||
import android.widget.ImageView
|
||||
import com.bumptech.glide.Glide
|
||||
import com.bumptech.glide.request.RequestOptions
|
||||
import com.mogo.module.common.glide.SkinAbleBitmapTarget
|
||||
import com.mogo.module.tanlu.R
|
||||
import com.shuyu.gsyvideoplayer.GSYVideoManager
|
||||
import com.shuyu.gsyvideoplayer.utils.GSYVideoType
|
||||
@@ -59,12 +60,10 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer {
|
||||
val requestOptions = RequestOptions()
|
||||
.placeholder(R.drawable.tanlu_normal_image)
|
||||
.error(R.drawable.tanlu_normal_image)
|
||||
.fallback(R.drawable.tanlu_normal_image)
|
||||
Glide.with(mContext)
|
||||
Glide.with(mContext).asBitmap()
|
||||
.load(url)
|
||||
.apply(requestOptions)
|
||||
.into(coverImage)
|
||||
|
||||
.into(SkinAbleBitmapTarget(coverImage, requestOptions))
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--<shape xmlns:android="http://schemas.android.com/apk/res/android">-->
|
||||
<!-- <solid android:color="#3F4057" />-->
|
||||
<!-- <corners android:radius="@dimen/tanlu_normal_image_radius_size" />-->
|
||||
<!--</shape>-->
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="@dimen/tanlu_normal_image_radius_size" />
|
||||
<gradient
|
||||
android:angle="135"
|
||||
android:endColor="#3F4057"
|
||||
android:startColor="#5E6079"
|
||||
android:startColor="@color/tanlu_top_bg_startcolor"
|
||||
android:endColor="@color/tanlu_top_bg_endcolor"
|
||||
android:type="linear"
|
||||
android:useLevel="true" />
|
||||
</shape>
|
||||
@@ -38,7 +38,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
tools:src="@drawable/tanlu_normal_image"
|
||||
android:src="@drawable/tanlu_normal_image"
|
||||
android:scaleType="fitXY" />
|
||||
</com.mogo.module.tanlu.view.RoundLayout>
|
||||
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!--bottom top -->
|
||||
<dimen name="tanlu_module_start_width">52px</dimen>
|
||||
<dimen name="tanlu_module_start_height">52px</dimen>
|
||||
<dimen name="tanlu_module_loading_width">48px</dimen>
|
||||
<dimen name="tanlu_module_loading_height">48px</dimen>
|
||||
<dimen name="tanlu_module_bottom_height">72px</dimen>
|
||||
<dimen name="tanlu_module_bottom_margin">5px</dimen>
|
||||
|
||||
<dimen name="tanlu_module_full_start_width">56px</dimen>
|
||||
<dimen name="tanlu_module_full_start_height">56px</dimen>
|
||||
<dimen name="tanlu_module_full_loading_width">96px</dimen>
|
||||
<dimen name="tanlu_module_full_loading_height">96px</dimen>
|
||||
<dimen name="tanlu_module_full_bottom_height">90px</dimen>
|
||||
<dimen name="tanlu_module_full_bottom_width">700px</dimen>
|
||||
<dimen name="tanlu_module_full_bottom_margin">10px</dimen>
|
||||
|
||||
<dimen name="tanlu_module_full_top_height">72px</dimen>
|
||||
<dimen name="tanlu_module_full_back_width">25px</dimen>
|
||||
<dimen name="tanlu_module_full_back_height">25px</dimen>
|
||||
<dimen name="tanlu_module_full_margin_left">16px</dimen>
|
||||
<dimen name="tanlu_module_full_margin_right">48px</dimen>
|
||||
<dimen name="tanlu_module_full_margin_top">22px</dimen>
|
||||
<dimen name="tanlu_module_full_margin_width">700px</dimen>
|
||||
|
||||
|
||||
<dimen name="tanlu_module_card_address_margin_top">5px</dimen>
|
||||
<dimen name="tanlu_module_card_distance_margin_bottom">15px</dimen>
|
||||
<dimen name="tanlu_module_card_distance_margin_top">2px</dimen>
|
||||
<dimen name="tanlu_module_card_video_marginbottom">19px</dimen>
|
||||
<dimen name="tanlu_module_card_previous_width">136px</dimen>
|
||||
<dimen name="tanlu_module_card_previous_height">44px</dimen>
|
||||
<dimen name="tanlu_module_card_empty_magintop">2px</dimen>
|
||||
<dimen name="tanlu_module_card_empty_maginleft">109px</dimen>
|
||||
<dimen name="tanlu_module_card_empty_tv_magintop">10px</dimen>
|
||||
<dimen name="tanlu_module_card_empty_tv_magintop_2">23px</dimen>
|
||||
<dimen name="tanlu_module_card_previous_margin_left">30px</dimen>
|
||||
<dimen name="tanlu_module_card_next_margin_left">28px</dimen>
|
||||
<dimen name="tanlu_module_logo_margin_left">16px</dimen>
|
||||
<dimen name="tanlu_module_radius">22px</dimen>
|
||||
<dimen name="tanlu_module_upload_radius">26px</dimen>
|
||||
|
||||
<!--播放器高度-->
|
||||
<dimen name="tanlu_module_small_player_height">6px</dimen>
|
||||
|
||||
<dimen name="tanlu_module_map_left">400px</dimen>
|
||||
<dimen name="tanlu_module_map_top">150px</dimen>
|
||||
<dimen name="tanlu_module_map_right">80px</dimen>
|
||||
<dimen name="tanlu_module_map_bottom">32px</dimen>
|
||||
|
||||
<dimen name="tanlu_module_upload_width">260px</dimen>
|
||||
<dimen name="tanlu_module_map_bottom_height">44px</dimen>
|
||||
|
||||
<!--字体-->
|
||||
<dimen name="tanlu_module_full_title_content">18px</dimen>
|
||||
<dimen name="tanlu_module_full_title_time">14px</dimen>
|
||||
<dimen name="tanlu_module_card_address_size">15px</dimen>
|
||||
<dimen name="tanlu_module_card_distance_size">13px</dimen>
|
||||
<dimen name="tanlu_module_card_next_size">16px</dimen>
|
||||
|
||||
<!--dialog-->
|
||||
<dimen name="tanlu_dialog_width">418px</dimen>
|
||||
<dimen name="tanlu_dialog_height">278px</dimen>
|
||||
<dimen name="tanlu_dialog_button_height">69px</dimen>
|
||||
<dimen name="tanlu_dialog_content_size">22px</dimen>
|
||||
<dimen name="tanlu_dialog_margin_top">36px</dimen>
|
||||
<dimen name="tanlu_dialog_first_margin_top">18px</dimen>
|
||||
<dimen name="tanlu_dialog_margin_button_top">32px</dimen>
|
||||
|
||||
<dimen name="tanlu_dialog_neterror_button_top">20px</dimen>
|
||||
<dimen name="tanlu_dialog_neterror_button_height">56px</dimen>
|
||||
<dimen name="tanlu_dialog_neterror_margin_left">23px</dimen>
|
||||
|
||||
<dimen name="tanlu_dialog_radius">10px</dimen>
|
||||
<dimen name="tanlu_dialog_neterror_radius">8px</dimen>
|
||||
|
||||
<!--new-->
|
||||
<dimen name="tanlu_module_card_width">642px</dimen>
|
||||
<dimen name="tanlu_module_card_height">170px</dimen>
|
||||
<dimen name="tanlu_module_card_video_width">234px</dimen>
|
||||
<dimen name="tanlu_module_card_video_height">156px</dimen>
|
||||
<dimen name="tanlu_module_close_height">45px</dimen>
|
||||
|
||||
<dimen name="tanlu_module_card_margin_top">13px</dimen>
|
||||
<dimen name="tanlu_module_card_margin_left">8px</dimen>
|
||||
<dimen name="tanlu_module_margin_right">13px</dimen>
|
||||
<dimen name="tanlu_module_margin_left">17px</dimen>
|
||||
<dimen name="tanlu_module_margin_top">3px</dimen>
|
||||
<dimen name="tanlu_module_mavi_height">18px</dimen>
|
||||
<dimen name="tanlu_module_button_height">26px</dimen>
|
||||
|
||||
<dimen name="tanlu_head_image_size">28px</dimen>
|
||||
<dimen name="tanlu_image_size">56px</dimen>
|
||||
<dimen name="tanlu_button_radius_size">3px</dimen>
|
||||
<dimen name="tanlu_normal_image_radius_size">16px</dimen>
|
||||
|
||||
</resources>
|
||||
@@ -25,7 +25,7 @@
|
||||
<dimen name="tanlu_module_full_margin_top">40px</dimen>
|
||||
<dimen name="tanlu_module_full_margin_width">800px</dimen>
|
||||
|
||||
<dimen name="tanlu_module_card_address_margin_top">14px</dimen>
|
||||
<dimen name="tanlu_module_card_address_margin_top">11px</dimen>
|
||||
<dimen name="tanlu_module_card_distance_margin_bottom">28px</dimen>
|
||||
<dimen name="tanlu_module_card_distance_margin_top">4px</dimen>
|
||||
<dimen name="tanlu_module_card_video_marginbottom">32px</dimen>
|
||||
@@ -82,11 +82,11 @@
|
||||
<dimen name="tanlu_module_card_video_height">270px</dimen>
|
||||
<dimen name="tanlu_module_close_height">80px</dimen>
|
||||
|
||||
<dimen name="tanlu_module_card_margin_top">20px</dimen>
|
||||
<dimen name="tanlu_module_card_margin_left">15px</dimen>
|
||||
<dimen name="tanlu_module_margin_right">25px</dimen>
|
||||
<dimen name="tanlu_module_margin_left">15px</dimen>
|
||||
<dimen name="tanlu_module_margin_top">5px</dimen>
|
||||
<dimen name="tanlu_module_card_margin_top">19px</dimen>
|
||||
<dimen name="tanlu_module_card_margin_left">13px</dimen>
|
||||
<dimen name="tanlu_module_margin_right">23px</dimen>
|
||||
<dimen name="tanlu_module_margin_left">30px</dimen>
|
||||
<dimen name="tanlu_module_margin_top">9px</dimen>
|
||||
<dimen name="tanlu_module_mavi_height">27px</dimen>
|
||||
<dimen name="tanlu_module_button_height">46px</dimen>
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<dimen name="tanlu_module_full_margin_top">40px</dimen>
|
||||
<dimen name="tanlu_module_full_margin_width">800px</dimen>
|
||||
|
||||
<dimen name="tanlu_module_card_address_margin_top">30px</dimen>
|
||||
<dimen name="tanlu_module_card_address_margin_top">11px</dimen>
|
||||
<dimen name="tanlu_module_card_distance_margin_bottom">28px</dimen>
|
||||
<dimen name="tanlu_module_card_distance_margin_top">4px</dimen>
|
||||
<dimen name="tanlu_module_card_video_marginbottom">32px</dimen>
|
||||
@@ -77,16 +77,16 @@
|
||||
|
||||
<!--new-->
|
||||
<dimen name="tanlu_module_card_width">1060px</dimen>
|
||||
<dimen name="tanlu_module_card_height">350px</dimen>
|
||||
<dimen name="tanlu_module_card_video_width">480px</dimen>
|
||||
<dimen name="tanlu_module_card_video_height">320px</dimen>
|
||||
<dimen name="tanlu_module_card_height">306px</dimen>
|
||||
<dimen name="tanlu_module_card_video_width">421px</dimen>
|
||||
<dimen name="tanlu_module_card_video_height">280px</dimen>
|
||||
<dimen name="tanlu_module_close_height">80px</dimen>
|
||||
|
||||
<dimen name="tanlu_module_card_margin_top">23px</dimen>
|
||||
<dimen name="tanlu_module_card_margin_left">15px</dimen>
|
||||
<dimen name="tanlu_module_margin_right">25px</dimen>
|
||||
<dimen name="tanlu_module_margin_left">15px</dimen>
|
||||
<dimen name="tanlu_module_margin_top">10px</dimen>
|
||||
<dimen name="tanlu_module_card_margin_top">19px</dimen>
|
||||
<dimen name="tanlu_module_card_margin_left">13px</dimen>
|
||||
<dimen name="tanlu_module_margin_right">23px</dimen>
|
||||
<dimen name="tanlu_module_margin_left">30px</dimen>
|
||||
<dimen name="tanlu_module_margin_top">9px</dimen>
|
||||
<dimen name="tanlu_module_mavi_height">27px</dimen>
|
||||
<dimen name="tanlu_module_button_height">46px</dimen>
|
||||
|
||||
|
||||
@@ -49,5 +49,7 @@
|
||||
<color name="tanlu_dialog_bt_startcolor">#3E7FFC</color>
|
||||
<color name="tanlu_dialog_bt_endcolor">#5CC1FF</color>
|
||||
<color name="tanlu_dialog_bt_right_color">#50526E</color>
|
||||
<color name="tanlu_top_bg_startcolor">#5E6079</color>
|
||||
<color name="tanlu_top_bg_endcolor">#3F4057</color>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<dimen name="tanlu_module_full_margin_width">700px</dimen>
|
||||
|
||||
|
||||
<dimen name="tanlu_module_card_address_margin_top">10px</dimen>
|
||||
<dimen name="tanlu_module_card_address_margin_top">5px</dimen>
|
||||
<dimen name="tanlu_module_card_distance_margin_bottom">15px</dimen>
|
||||
<dimen name="tanlu_module_card_distance_margin_top">2px</dimen>
|
||||
<dimen name="tanlu_module_card_video_marginbottom">19px</dimen>
|
||||
@@ -82,11 +82,11 @@
|
||||
<dimen name="tanlu_module_card_video_height">194px</dimen>
|
||||
<dimen name="tanlu_module_close_height">45px</dimen>
|
||||
|
||||
<dimen name="tanlu_module_card_margin_top">16px</dimen>
|
||||
<dimen name="tanlu_module_card_margin_top">13px</dimen>
|
||||
<dimen name="tanlu_module_card_margin_left">8px</dimen>
|
||||
<dimen name="tanlu_module_margin_right">13px</dimen>
|
||||
<dimen name="tanlu_module_margin_left">15px</dimen>
|
||||
<dimen name="tanlu_module_margin_top">10px</dimen>
|
||||
<dimen name="tanlu_module_margin_left">17px</dimen>
|
||||
<dimen name="tanlu_module_margin_top">3px</dimen>
|
||||
<dimen name="tanlu_module_mavi_height">18px</dimen>
|
||||
<dimen name="tanlu_module_button_height">26px</dimen>
|
||||
|
||||
|
||||
@@ -20,13 +20,6 @@ public class SpacesItemDecoration extends RecyclerView.ItemDecoration {
|
||||
@Override
|
||||
public void getItemOffsets(Rect outRect, View view,
|
||||
RecyclerView parent, RecyclerView.State state) {
|
||||
outRect.left = space;
|
||||
outRect.right = space;
|
||||
outRect.bottom = space;
|
||||
|
||||
// Add top margin only for the first item to avoid double space between items
|
||||
if (parent.getChildPosition(view) == 0) {
|
||||
outRect.top = space;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
package com.mogo.module.v2x.fragment
|
||||
|
||||
import android.content.Intent
|
||||
import android.graphics.Typeface
|
||||
import android.view.View
|
||||
import android.widget.ImageView
|
||||
import android.widget.RadioButton
|
||||
import android.widget.RadioGroup
|
||||
import androidx.constraintlayout.widget.ConstraintLayout
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.viewpager2.widget.ViewPager2
|
||||
import com.google.android.material.tabs.TabLayoutMediator
|
||||
@@ -11,14 +16,12 @@ import com.mogo.module.v2x.V2XConst.MODULE_NAME
|
||||
import com.mogo.module.v2x.V2XServiceManager
|
||||
import com.mogo.module.v2x.adapter.V2XEventPagerAdapter
|
||||
import com.mogo.module.v2x.presenter.EventPanelPresenter
|
||||
import com.mogo.module.v2x.presenter.ShareEventsPresenter
|
||||
import com.mogo.module.v2x.utils.TrackUtils
|
||||
import com.mogo.module.v2x.view.V2XEventPanelHistoryCountView
|
||||
import com.mogo.module.v2x.voice.V2XVoiceCallbackListener
|
||||
import com.mogo.module.v2x.voice.V2XVoiceConstants
|
||||
import com.mogo.module.v2x.voice.V2XVoiceManager
|
||||
import com.mogo.utils.logger.Logger
|
||||
import kotlinx.android.synthetic.main.module_v2x_event_panel_fragment_event_panel.*
|
||||
|
||||
|
||||
/**
|
||||
@@ -38,6 +41,14 @@ class V2XEventPanelFragment : MvpFragment<V2XEventPanelFragment, EventPanelPrese
|
||||
|
||||
private var mV2XEventPanelHistoryCountView: V2XEventPanelHistoryCountView? = null
|
||||
|
||||
private var mClPanelContainer: ConstraintLayout? = null
|
||||
private var mVpEventPanel: ViewPager2? = null
|
||||
private var mRgTabSelect: RadioGroup? = null
|
||||
private var mBtnHidePanels: ImageView? = null
|
||||
private var mRbScenarioHistory: RadioButton? = null
|
||||
private var mRbSurroundingEvent: RadioButton? = null
|
||||
private var mRbShareEvents: RadioButton? = null
|
||||
|
||||
private val mV2XScenarioHistoryFragment = V2XScenarioHistoryFragment()
|
||||
private val mV2XShareEventsFragment = V2XShareEventsFragment()
|
||||
|
||||
@@ -51,7 +62,7 @@ class V2XEventPanelFragment : MvpFragment<V2XEventPanelFragment, EventPanelPrese
|
||||
// 打开出行动态TAB
|
||||
private val mCheckHistoryEventCb = V2XVoiceCallbackListener { command: String?, intent: Intent? ->
|
||||
try {
|
||||
rbScenarioHistory?.isChecked = true
|
||||
mRbScenarioHistory?.isChecked = true
|
||||
} catch (e: java.lang.Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
@@ -60,7 +71,7 @@ class V2XEventPanelFragment : MvpFragment<V2XEventPanelFragment, EventPanelPrese
|
||||
// 打开周边事件TAB
|
||||
private val mCheckSurroundingCb = V2XVoiceCallbackListener { command: String?, intent: Intent? ->
|
||||
try {
|
||||
rbSurroundingEvent?.isChecked = true
|
||||
mRbSurroundingEvent?.isChecked = true
|
||||
} catch (e: java.lang.Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
@@ -69,7 +80,7 @@ class V2XEventPanelFragment : MvpFragment<V2XEventPanelFragment, EventPanelPrese
|
||||
// 打开我的分享TAB
|
||||
private val mCheckShearEventCb = V2XVoiceCallbackListener { command: String?, intent: Intent? ->
|
||||
try {
|
||||
rbShareEvents?.isChecked = true
|
||||
mRbShareEvents?.isChecked = true
|
||||
} catch (e: java.lang.Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
@@ -92,48 +103,75 @@ class V2XEventPanelFragment : MvpFragment<V2XEventPanelFragment, EventPanelPrese
|
||||
override fun initViews() {
|
||||
Logger.d(MODULE_NAME, "事件面板初始化……")
|
||||
try {
|
||||
mClPanelContainer = mRootView.findViewById(R.id.clPanelContainer)
|
||||
mVpEventPanel = mRootView.findViewById(R.id.vpEventPanel)
|
||||
mRgTabSelect = mRootView.findViewById(R.id.rgTabSelect)
|
||||
mBtnHidePanels = mRootView.findViewById(R.id.btnHidePanels)
|
||||
mRbScenarioHistory = mRootView.findViewById(R.id.rbScenarioHistory)
|
||||
mRbSurroundingEvent = mRootView.findViewById(R.id.rbSurroundingEvent)
|
||||
mRbShareEvents = mRootView.findViewById(R.id.rbShareEvents)
|
||||
|
||||
fragments = arrayOf(
|
||||
mV2XScenarioHistoryFragment,
|
||||
V2XSurroundingFragment(),
|
||||
mV2XShareEventsFragment
|
||||
)
|
||||
//禁用预加载
|
||||
vpEventPanel.offscreenPageLimit = ViewPager2.OFFSCREEN_PAGE_LIMIT_DEFAULT
|
||||
vpEventPanel.adapter = V2XEventPagerAdapter(this, fragments!!)
|
||||
vpEventPanel.isUserInputEnabled = false; //true:滑动,false:禁止滑动
|
||||
mVpEventPanel?.offscreenPageLimit = ViewPager2.OFFSCREEN_PAGE_LIMIT_DEFAULT
|
||||
mVpEventPanel?.adapter = V2XEventPagerAdapter(this, fragments!!)
|
||||
mVpEventPanel?.isUserInputEnabled = false; //true:滑动,false:禁止滑动
|
||||
|
||||
rgTabSelect?.setOnCheckedChangeListener { group, checkedId ->
|
||||
mRgTabSelect?.setOnCheckedChangeListener { group, checkedId ->
|
||||
when (checkedId) {
|
||||
R.id.rbScenarioHistory -> {
|
||||
// 更改选中是否加粗
|
||||
mRbScenarioHistory?.typeface = Typeface.defaultFromStyle(Typeface.BOLD)
|
||||
mRbSurroundingEvent?.typeface = Typeface.defaultFromStyle(Typeface.NORMAL)
|
||||
mRbShareEvents?.typeface = Typeface.defaultFromStyle(Typeface.NORMAL)
|
||||
|
||||
TrackUtils.trackV2xHistoryEvent(2)
|
||||
vpEventPanel.setCurrentItem(0, false)
|
||||
mVpEventPanel?.setCurrentItem(0, false)
|
||||
}
|
||||
R.id.rbSurroundingEvent -> {
|
||||
// 更改选中是否加粗
|
||||
mRbScenarioHistory?.typeface = Typeface.defaultFromStyle(Typeface.NORMAL)
|
||||
mRbSurroundingEvent?.typeface = Typeface.defaultFromStyle(Typeface.BOLD)
|
||||
mRbShareEvents?.typeface = Typeface.defaultFromStyle(Typeface.NORMAL)
|
||||
|
||||
TrackUtils.trackV2xHistoryEvent(3)
|
||||
vpEventPanel.setCurrentItem(1, false)
|
||||
mVpEventPanel?.setCurrentItem(1, false)
|
||||
}
|
||||
R.id.rbShareEvents -> {
|
||||
// 更改选中是否加粗
|
||||
mRbScenarioHistory?.typeface = Typeface.defaultFromStyle(Typeface.NORMAL)
|
||||
mRbSurroundingEvent?.typeface = Typeface.defaultFromStyle(Typeface.NORMAL)
|
||||
mRbShareEvents?.typeface = Typeface.defaultFromStyle(Typeface.BOLD)
|
||||
|
||||
TrackUtils.trackV2xHistoryEvent(4)
|
||||
vpEventPanel.setCurrentItem(2, false)
|
||||
mVpEventPanel?.setCurrentItem(2, false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
btnHidePanels.setOnClickListener {
|
||||
mBtnHidePanels?.setOnClickListener {
|
||||
TrackUtils.trackV2xHistoryEvent(5)
|
||||
hidePanel()
|
||||
}
|
||||
|
||||
mV2XEventPanelHistoryCountView = V2XEventPanelHistoryCountView(context)
|
||||
mV2XEventPanelHistoryCountView!!.setOnClickListener {
|
||||
if (clPanelContainer != null) {
|
||||
if (mClPanelContainer == null) {
|
||||
mClPanelContainer = mRootView.findViewById(R.id.clPanelContainer);
|
||||
}
|
||||
if (mClPanelContainer != null) {
|
||||
if (!isPanelShow()) {
|
||||
TrackUtils.trackV2xHistoryEvent(1)
|
||||
showPanel()
|
||||
}
|
||||
}
|
||||
}
|
||||
V2XServiceManager.getMogoEntranceButtonController().addBottomLayerView(mV2XEventPanelHistoryCountView)
|
||||
V2XServiceManager.getMogoEntranceButtonController()
|
||||
.addBottomLayerView(mV2XEventPanelHistoryCountView)
|
||||
changeEventCount()
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
@@ -151,7 +189,7 @@ class V2XEventPanelFragment : MvpFragment<V2XEventPanelFragment, EventPanelPrese
|
||||
|
||||
fun showPanel() {
|
||||
Logger.d(MODULE_NAME, "in fragment show panel")
|
||||
clPanelContainer.visibility = View.VISIBLE
|
||||
mClPanelContainer?.visibility = View.VISIBLE
|
||||
// 注册语音交互
|
||||
V2XVoiceManager.registerUnWakeVoice(V2XVoiceConstants.COMMAND_ZHIDAO_V2X_OPEN_HISTORY_EVENT_UN_WAKEUP, mCheckHistoryEventCb)
|
||||
.registerUnWakeVoice(V2XVoiceConstants.COMMAND_ZHIDAO_V2X_OPEN_SURROUNDING_EVENT_UN_WAKEUP, mCheckSurroundingCb)
|
||||
@@ -171,7 +209,7 @@ class V2XEventPanelFragment : MvpFragment<V2XEventPanelFragment, EventPanelPrese
|
||||
|
||||
fun hidePanel() {
|
||||
Logger.d(MODULE_NAME, "in fragment hide panel")
|
||||
clPanelContainer.visibility = View.GONE
|
||||
mClPanelContainer?.visibility = View.GONE
|
||||
// 注册语音交互
|
||||
V2XVoiceManager.unRegisterUnWakeVoice(V2XVoiceConstants.COMMAND_ZHIDAO_V2X_OPEN_HISTORY_EVENT_UN_WAKEUP)
|
||||
.unRegisterUnWakeVoice(V2XVoiceConstants.COMMAND_ZHIDAO_V2X_OPEN_SURROUNDING_EVENT_UN_WAKEUP)
|
||||
@@ -180,7 +218,7 @@ class V2XEventPanelFragment : MvpFragment<V2XEventPanelFragment, EventPanelPrese
|
||||
}
|
||||
|
||||
fun isPanelShow(): Boolean {
|
||||
return clPanelContainer.visibility == View.VISIBLE
|
||||
return mClPanelContainer?.visibility == View.VISIBLE
|
||||
}
|
||||
|
||||
// 修改未处理消息
|
||||
|
||||
@@ -1,63 +1,64 @@
|
||||
package com.mogo.module.v2x.utils.animation;
|
||||
|
||||
import android.graphics.drawable.AnimationDrawable;
|
||||
import android.util.Log;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.os.Message;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import com.mogo.utils.ThreadPoolService;
|
||||
import com.mogo.utils.UiThreadHandler;
|
||||
|
||||
public class V2XAnimationManager implements Animation {
|
||||
|
||||
private static final String TAG = "V2XAnimationManager";
|
||||
private ImageView targetImageView;
|
||||
private Animation delegate;
|
||||
private boolean isStarted = false;
|
||||
|
||||
private int mStartIndex = 0;
|
||||
|
||||
private final static int MSG_LOOP = 3004;
|
||||
private long INTERVAL = 100L;
|
||||
|
||||
private Handler mHandler = new Handler( Looper.getMainLooper() ) {
|
||||
@Override
|
||||
public void handleMessage( Message msg ) {
|
||||
super.handleMessage( msg );
|
||||
switch ( msg.what ) {
|
||||
case MSG_LOOP:
|
||||
if ( isStarted ) {
|
||||
targetImageView.setImageResource( AnimationResources.loadingRes[mStartIndex++ % AnimationResources.loadingRes.length] );
|
||||
mHandler.sendEmptyMessageDelayed( MSG_LOOP, INTERVAL );
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public void animationWithTarget(ImageView imageView, int[] resources, int duration) {
|
||||
targetImageView = imageView;
|
||||
ThreadPoolService.execute(() -> {
|
||||
final AnimationDrawable drawable = new AnimationDrawable();
|
||||
for (int i = 0; i < resources.length; i++) {
|
||||
drawable.setOneShot(false);
|
||||
drawable.addFrame(targetImageView.getResources().getDrawable(resources[i]), duration);
|
||||
}
|
||||
UiThreadHandler.post(() -> {
|
||||
targetImageView.setBackground(drawable);
|
||||
delegate = new DelegateDrawable(drawable);
|
||||
start();
|
||||
});
|
||||
});
|
||||
INTERVAL = duration;
|
||||
start();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
synchronized public void start() {
|
||||
if (delegate != null && !isStarted) {
|
||||
targetImageView.setVisibility(View.VISIBLE);
|
||||
isStarted = true;
|
||||
delegate.start();
|
||||
}
|
||||
isStarted = true;
|
||||
mHandler.sendEmptyMessage( MSG_LOOP );
|
||||
targetImageView.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
synchronized public void stop() {
|
||||
if (delegate != null && isStarted) {
|
||||
isStarted = false;
|
||||
delegate.stop();
|
||||
targetImageView.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
isStarted = false;
|
||||
mHandler.removeMessages( MSG_LOOP );
|
||||
targetImageView.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
|
||||
public void soptWithError(){
|
||||
if (delegate != null && isStarted) {
|
||||
isStarted = false;
|
||||
delegate.stop();
|
||||
}
|
||||
stop();
|
||||
targetImageView.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
public void release() {
|
||||
delegate = null;
|
||||
stop();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,8 @@ import android.util.AttributeSet;
|
||||
import android.widget.RelativeLayout;
|
||||
|
||||
import com.mogo.module.v2x.R;
|
||||
import com.mogo.skin.support.IMogoSkinCompatSupportable;
|
||||
import com.mogo.skin.support.helper.MogoSkinCompatBackgroundHelperDelegate;
|
||||
|
||||
/**
|
||||
* author : donghongyu
|
||||
@@ -17,29 +19,34 @@ import com.mogo.module.v2x.R;
|
||||
* desc :
|
||||
* version: 1.0
|
||||
*/
|
||||
public class RoundLayout extends RelativeLayout {
|
||||
public class RoundLayout extends RelativeLayout implements IMogoSkinCompatSupportable {
|
||||
private float roundLayoutRadius = 14f;
|
||||
private Path roundPath;
|
||||
private RectF rectF;
|
||||
private MogoSkinCompatBackgroundHelperDelegate mBackgroundTintHelper;
|
||||
|
||||
public RoundLayout(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public RoundLayout(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
this(context, attrs);
|
||||
public RoundLayout(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
}
|
||||
|
||||
public RoundLayout(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
public RoundLayout(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
super(context, attrs, defStyleAttr);
|
||||
|
||||
TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.RoundLayout);
|
||||
roundLayoutRadius = typedArray.getDimensionPixelSize(R.styleable.RoundLayout_roundLayoutRadius, (int) roundLayoutRadius);
|
||||
typedArray.recycle();
|
||||
|
||||
init();
|
||||
|
||||
mBackgroundTintHelper = new MogoSkinCompatBackgroundHelperDelegate(this);
|
||||
mBackgroundTintHelper.loadFromAttributes(attrs, defStyleAttr);
|
||||
}
|
||||
|
||||
|
||||
private void init() {
|
||||
setWillNotDraw(false);//如果你继承的是ViewGroup,注意此行,否则draw方法是不会回调的;
|
||||
roundPath = new Path();
|
||||
@@ -72,5 +79,12 @@ public class RoundLayout extends RelativeLayout {
|
||||
}
|
||||
super.draw(canvas);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applySkin() {
|
||||
if (mBackgroundTintHelper != null) {
|
||||
mBackgroundTintHelper.applySkin();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ import com.mogo.module.v2x.voice.V2XVoiceCallbackListener;
|
||||
import com.mogo.module.v2x.voice.V2XVoiceConstants;
|
||||
import com.mogo.module.v2x.voice.V2XVoiceManager;
|
||||
import com.mogo.skin.support.IMogoSkinCompatSupportable;
|
||||
import com.mogo.skin.support.helper.MogoSkinCompatBackgroundHelperDelegate;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
import com.mogo.utils.network.utils.GsonUtil;
|
||||
import com.tencent.rtmp.ITXLivePlayListener;
|
||||
@@ -51,6 +52,8 @@ public class V2XLiveGSYVideoView extends RoundLayout implements IMogoSkinCompatS
|
||||
private ConstraintLayout mClLoadError;
|
||||
private TextView mTvRefreshButton;
|
||||
|
||||
private MogoSkinCompatBackgroundHelperDelegate mBackgroundTintHelper;
|
||||
|
||||
private MarkerCarInfo.CarLiveInfo mCarLiveInfo;
|
||||
// 重新刷新直播流
|
||||
private V2XVoiceCallbackListener v2XVoiceCallbackRefreshListener = new V2XVoiceCallbackListener() {
|
||||
@@ -76,6 +79,9 @@ public class V2XLiveGSYVideoView extends RoundLayout implements IMogoSkinCompatS
|
||||
public V2XLiveGSYVideoView(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
super(context, attrs, defStyleAttr);
|
||||
initView(context);
|
||||
|
||||
mBackgroundTintHelper = new MogoSkinCompatBackgroundHelperDelegate(this);
|
||||
mBackgroundTintHelper.loadFromAttributes(attrs, defStyleAttr);
|
||||
}
|
||||
|
||||
private void initView(Context context) {
|
||||
@@ -282,6 +288,8 @@ public class V2XLiveGSYVideoView extends RoundLayout implements IMogoSkinCompatS
|
||||
|
||||
@Override
|
||||
public void applySkin() {
|
||||
|
||||
if (mBackgroundTintHelper != null) {
|
||||
mBackgroundTintHelper.applySkin();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 144 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 144 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 5.0 KiB |
BIN
modules/mogo-module-v2x/src/main/res/drawable-xhdpi/v2x_panel_close.png
Normal file → Executable file
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="@dimen/dp_11"/>
|
||||
<corners android:radius="@dimen/dp_24"/>
|
||||
<gradient
|
||||
android:startColor="#5E6079"
|
||||
android:endColor="#3F4057"
|
||||
|
||||
@@ -2,6 +2,5 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#1F2131"/>
|
||||
<corners android:radius="12px"/>
|
||||
|
||||
<corners android:radius="@dimen/dp_21"/>
|
||||
</shape>
|
||||
|
Before Width: | Height: | Size: 144 KiB |
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="@dimen/dp_40" />
|
||||
<corners android:radius="@dimen/dp_22" />
|
||||
<gradient
|
||||
android:angle="135"
|
||||
android:endColor="#3F4057"
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
<gradient
|
||||
android:startColor="#10121E"
|
||||
android:endColor="#10121E"/>
|
||||
<corners android:radius="28.8px"/>
|
||||
<corners android:radius="@dimen/dp_40"/>
|
||||
</shape>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="12px"/>
|
||||
<corners android:radius="@dimen/dp_28"/>
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:startColor="@android:color/transparent"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<shape>
|
||||
<corners android:radius="@dimen/dp_180" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:angle="0"
|
||||
android:endColor="#5CC1FF"
|
||||
android:startColor="#256BFF" />
|
||||
</shape>
|
||||
@@ -13,7 +13,7 @@
|
||||
<shape>
|
||||
<corners android:radius="@dimen/dp_180" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:angle="0"
|
||||
android:endColor="#5CC1FF"
|
||||
android:startColor="#256BFF" />
|
||||
</shape>
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
android:layout_width="@dimen/module_v2x_event_image_width"
|
||||
android:layout_height="@dimen/module_v2x_event_image_height"
|
||||
android:scaleType="center"
|
||||
app:miv_failureHolder="@drawable/icon_default_black_logo"
|
||||
app:miv_overlayImageId="@drawable/icon_default_black_logo"
|
||||
app:miv_placeHolder="@drawable/icon_default_black_logo" />
|
||||
app:miv_failureHolder="@drawable/v2x_icon_live_logo"
|
||||
app:miv_overlayImageId="@drawable/v2x_icon_live_logo"
|
||||
app:miv_placeHolder="@drawable/v2x_icon_live_logo" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivEventPlay"
|
||||
@@ -61,7 +61,7 @@
|
||||
android:id="@+id/tvEventAddress"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_5"
|
||||
android:layout_marginRight="@dimen/dp_30"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
@@ -76,7 +76,7 @@
|
||||
android:id="@+id/ivEventDistanceLogo"
|
||||
android:layout_width="@dimen/dp_35"
|
||||
android:layout_height="@dimen/dp_35"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_5"
|
||||
android:src="@drawable/v2x_icon_help_navi"
|
||||
app:layout_constraintStart_toStartOf="@id/tvEventTypeTitle"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvEventAddress" />
|
||||
@@ -121,77 +121,88 @@
|
||||
app:miv_shape="circle"
|
||||
app:miv_shapeBorderWidth="@dimen/dp_4" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivEventLive"
|
||||
android:layout_width="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_height="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_marginLeft="@dimen/dp_10"
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:src="@drawable/selector_live_btn"
|
||||
android:visibility="gone"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/rlRoadEventImg"
|
||||
app:layout_constraintStart_toEndOf="@+id/rlRoadEventImg"
|
||||
tools:visibility="visible" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/ivEventDistanceLogo">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivEventReportTrue"
|
||||
android:layout_width="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_height="@dimen/module_v2x_event_button_size_detail"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/icon_report_true"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ivEventLive"
|
||||
app:layout_constraintStart_toEndOf="@id/ivEventLive"
|
||||
app:layout_goneMarginLeft="@dimen/dp_10"
|
||||
tools:visibility="visible" />
|
||||
<ImageView
|
||||
android:id="@+id/ivEventLive"
|
||||
android:layout_width="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_height="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_marginLeft="@dimen/dp_10"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:src="@drawable/selector_live_btn"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivEventReportErr"
|
||||
android:layout_width="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_height="@dimen/module_v2x_event_button_size_detail"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:src="@drawable/icon_report_err"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ivEventLive"
|
||||
app:layout_constraintStart_toEndOf="@id/ivEventReportTrue"
|
||||
app:layout_goneMarginLeft="@dimen/dp_10"
|
||||
tools:visibility="visible" />
|
||||
<ImageView
|
||||
android:id="@+id/ivEventReportTrue"
|
||||
android:layout_width="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_height="@dimen/module_v2x_event_button_size_detail"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/icon_report_true"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ivEventLive"
|
||||
app:layout_constraintStart_toEndOf="@id/ivEventLive"
|
||||
app:layout_goneMarginLeft="@dimen/dp_10"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivEventCallChart"
|
||||
android:layout_width="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_height="@dimen/module_v2x_event_button_size_detail"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:src="@drawable/selector_talk_btn"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ivEventLive"
|
||||
app:layout_constraintStart_toEndOf="@id/ivEventReportErr"
|
||||
app:layout_goneMarginLeft="@dimen/dp_10"
|
||||
tools:visibility="visible" />
|
||||
<ImageView
|
||||
android:id="@+id/ivEventReportErr"
|
||||
android:layout_width="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_height="@dimen/module_v2x_event_button_size_detail"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:src="@drawable/icon_report_err"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ivEventLive"
|
||||
app:layout_constraintStart_toEndOf="@id/ivEventReportTrue"
|
||||
app:layout_goneMarginLeft="@dimen/dp_10"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivEventEventNav"
|
||||
android:layout_width="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_height="@dimen/module_v2x_event_button_size_detail"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:src="@drawable/selector_nav_btn"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ivEventLive"
|
||||
app:layout_constraintStart_toEndOf="@id/ivEventCallChart"
|
||||
app:layout_goneMarginLeft="@dimen/dp_10"
|
||||
tools:visibility="visible" />
|
||||
<ImageView
|
||||
android:id="@+id/ivEventCallChart"
|
||||
android:layout_width="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_height="@dimen/module_v2x_event_button_size_detail"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:src="@drawable/selector_talk_btn"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ivEventLive"
|
||||
app:layout_constraintStart_toEndOf="@id/ivEventReportErr"
|
||||
app:layout_goneMarginLeft="@dimen/dp_10"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivEventEventNav"
|
||||
android:layout_width="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_height="@dimen/module_v2x_event_button_size_detail"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:src="@drawable/selector_nav_btn"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ivEventLive"
|
||||
app:layout_constraintStart_toEndOf="@id/ivEventCallChart"
|
||||
app:layout_goneMarginLeft="@dimen/dp_10"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivEventZan"
|
||||
android:layout_width="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_height="@dimen/module_v2x_event_button_size_detail"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:src="@drawable/v2x_event_icon_zan"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ivEventLive"
|
||||
app:layout_constraintStart_toEndOf="@id/ivEventEventNav"
|
||||
app:layout_goneMarginLeft="@dimen/dp_10"
|
||||
tools:visibility="visible" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivEventZan"
|
||||
android:layout_width="@dimen/module_v2x_event_button_size_detail"
|
||||
android:layout_height="@dimen/module_v2x_event_button_size_detail"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:src="@drawable/v2x_event_icon_zan"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ivEventLive"
|
||||
app:layout_constraintStart_toEndOf="@id/ivEventEventNav"
|
||||
app:layout_goneMarginLeft="@dimen/dp_10"
|
||||
tools:visibility="visible" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -7,7 +7,7 @@
|
||||
android:background="@drawable/v2x_alert_window_bg"
|
||||
android:gravity="center"
|
||||
app:roundLayoutRadius="@dimen/dp_40"
|
||||
tools:layout_height="@dimen/dp_382">
|
||||
tools:layout_height="@dimen/module_v2x_event_window_height">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_110"
|
||||
|
||||
@@ -2,17 +2,18 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="40px"
|
||||
android:paddingTop="40px">
|
||||
android:paddingTop="@dimen/dp_40"
|
||||
android:paddingBottom="@dimen/dp_40">
|
||||
|
||||
<Button
|
||||
android:id="@+id/event_share_load_status"
|
||||
android:layout_width="@dimen/v2x_share_btn_width"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="12px"
|
||||
android:paddingBottom="12px"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="@drawable/v2xt_dw_common_corner_bkg_light"
|
||||
android:gravity="center"
|
||||
android:paddingTop="@dimen/dp_12"
|
||||
android:paddingBottom="@dimen/dp_12"
|
||||
android:text="查看更早记录"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="@dimen/dp_34" />
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/module_v2x_fatigue_driving_window_height_ground"
|
||||
android:background="@drawable/bg_v2x_event_list_item">
|
||||
android:background="@drawable/v2x_alert_window_bg">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvImgTextContent"
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
android:layout_height="@dimen/module_v2x_event_icon_size"
|
||||
android:src="@drawable/icon_illegal_parking"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
android:background="@drawable/v2x_alert_window_bg">
|
||||
|
||||
<com.mogo.module.v2x.view.V2XLiveGSYVideoView
|
||||
android:id="@+id/videoPlayer"
|
||||
|
||||
@@ -6,52 +6,44 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/module_v2x_event_window_height">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvRoadEventList"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:cardBackgroundColor="#FFFFFF"
|
||||
app:cardCornerRadius="12px"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:overScrollMode="never"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:listitem="@layout/item_v2x_live_video" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvRoadEventList"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:overScrollMode="never"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:listitem="@layout/item_v2x_live_video" />
|
||||
<TextView
|
||||
android:id="@+id/tvEventStubClose"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_25"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:background="@drawable/bg_count_down"
|
||||
android:paddingLeft="@dimen/dp_12"
|
||||
android:paddingTop="@dimen/dp_3"
|
||||
android:paddingRight="@dimen/dp_12"
|
||||
android:paddingBottom="@dimen/dp_3"
|
||||
android:text="30s"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="@dimen/dp_30"
|
||||
app:layout_constraintStart_toStartOf="@+id/rvRoadEventList"
|
||||
app:layout_constraintTop_toTopOf="@+id/rvRoadEventList" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvEventStubClose"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_25"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:background="@drawable/bg_count_down"
|
||||
android:paddingLeft="@dimen/dp_12"
|
||||
android:paddingTop="@dimen/dp_3"
|
||||
android:paddingRight="@dimen/dp_12"
|
||||
android:paddingBottom="@dimen/dp_3"
|
||||
android:text="30s"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="@dimen/dp_30"
|
||||
app:layout_constraintStart_toStartOf="@+id/rvRoadEventList"
|
||||
app:layout_constraintTop_toTopOf="@+id/rvRoadEventList" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_130"
|
||||
android:layout_height="@dimen/dp_46"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginTop="@dimen/dp_28"
|
||||
android:layout_marginEnd="@dimen/dp_28"
|
||||
android:src="@drawable/v2x_icon_event_live_top"
|
||||
app:layout_constraintEnd_toEndOf="@+id/rvRoadEventList"
|
||||
app:layout_constraintTop_toTopOf="@+id/rvRoadEventList" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_130"
|
||||
android:layout_height="@dimen/dp_46"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginTop="@dimen/dp_28"
|
||||
android:layout_marginEnd="@dimen/dp_28"
|
||||
android:src="@drawable/v2x_icon_event_live_top"
|
||||
app:layout_constraintEnd_toEndOf="@+id/rvRoadEventList"
|
||||
app:layout_constraintTop_toTopOf="@+id/rvRoadEventList" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -5,9 +5,6 @@
|
||||
android:id="@+id/rlContent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10px"
|
||||
android:layout_marginRight="10px"
|
||||
android:layout_marginBottom="14px"
|
||||
android:background="@drawable/bg_v2x_event_list_item">
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -4,9 +4,6 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10px"
|
||||
android:layout_marginRight="10px"
|
||||
android:layout_marginBottom="14px"
|
||||
android:background="@drawable/bg_v2x_event_list_item">
|
||||
|
||||
<TextView
|
||||
@@ -72,7 +69,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_10"
|
||||
android:layout_marginEnd="@dimen/dp_30"
|
||||
android:textColor="@android:color/white"
|
||||
android:textColor="@color/v2x_FFF_333"
|
||||
android:textSize="@dimen/dp_33"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toStartOf="@+id/tvFaultHelpDistance"
|
||||
@@ -86,11 +83,11 @@
|
||||
android:id="@+id/tvFaultHelpEventTime"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/dp_24"
|
||||
android:alpha="0.59"
|
||||
android:textColor="@android:color/white"
|
||||
android:textColor="@color/v2x_FFF_999"
|
||||
android:textSize="@dimen/dp_29"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:layout_marginBottom="@dimen/dp_24"
|
||||
app:layout_constraintStart_toStartOf="@+id/tvFaultHelpName"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvFaultHelpName"
|
||||
tools:text="15:30发布求助信息" />
|
||||
@@ -101,7 +98,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_30"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="#FFF"
|
||||
android:textColor="@color/v2x_FFF_333"
|
||||
android:textSize="@dimen/dp_80"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/ivFaultHelpEventCall"
|
||||
|
||||
@@ -83,8 +83,7 @@
|
||||
android:gravity="center_horizontal"
|
||||
android:text="周边5公里,暂无交通事件"
|
||||
android:textColor="@color/v2x_FFF_333"
|
||||
android:textSize="@dimen/module_v2x_surrounding_top_textsize"
|
||||
android:textStyle="bold" />
|
||||
android:textSize="@dimen/module_v2x_surrounding_top_textsize" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_main_empty_2"
|
||||
@@ -96,8 +95,7 @@
|
||||
android:gravity="center_horizontal"
|
||||
android:text="你可以试着分享一个事件给其他车主"
|
||||
android:textColor="@color/v2x_FFF_333"
|
||||
android:textSize="@dimen/module_v2x_surrounding_top_textsize"
|
||||
android:textStyle="bold" />
|
||||
android:textSize="@dimen/module_v2x_surrounding_top_textsize" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
android:layout_marginLeft="@dimen/module_v2x_surrounding_item_marigin_left"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/icon_default_black_logo" />
|
||||
android:src="@drawable/v2x_icon_live_logo" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_poitype"
|
||||
|
||||
@@ -13,9 +13,13 @@
|
||||
<RadioGroup
|
||||
android:id="@+id/rgTabSelect"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_154"
|
||||
android:layout_height="@dimen/module_v2x_panel_tab_height"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rbScenarioHistory"
|
||||
@@ -24,17 +28,17 @@
|
||||
android:button="@null"
|
||||
android:checked="true"
|
||||
android:gravity="center"
|
||||
android:paddingStart="@dimen/dp_40"
|
||||
android:paddingEnd="@dimen/dp_40"
|
||||
android:paddingStart="@dimen/dp_48"
|
||||
android:paddingEnd="@dimen/dp_35"
|
||||
android:text="出行动态"
|
||||
android:textColor="@color/radiobutton_textcolor"
|
||||
android:textSize="@dimen/dp_40"
|
||||
android:textSize="@dimen/dp_36"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="0.5px"
|
||||
android:layout_width="1px"
|
||||
android:layout_height="@dimen/dp_42"
|
||||
android:background="#757575" />
|
||||
android:background="#CE757575" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rbSurroundingEvent"
|
||||
@@ -42,17 +46,16 @@
|
||||
android:layout_height="match_parent"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:paddingStart="@dimen/dp_40"
|
||||
android:paddingEnd="@dimen/dp_40"
|
||||
android:paddingStart="@dimen/dp_35"
|
||||
android:paddingEnd="@dimen/dp_35"
|
||||
android:text="周边事件"
|
||||
android:textColor="@color/radiobutton_textcolor"
|
||||
android:textSize="@dimen/dp_40"
|
||||
android:textStyle="bold" />
|
||||
android:textSize="@dimen/dp_36" />
|
||||
|
||||
<View
|
||||
android:layout_width="0.5px"
|
||||
android:layout_width="1px"
|
||||
android:layout_height="@dimen/dp_42"
|
||||
android:background="#757575" />
|
||||
android:background="#CE757575" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rbShareEvents"
|
||||
@@ -60,12 +63,11 @@
|
||||
android:layout_height="match_parent"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:paddingStart="@dimen/dp_40"
|
||||
android:paddingEnd="@dimen/dp_40"
|
||||
android:paddingStart="@dimen/dp_35"
|
||||
android:paddingEnd="@dimen/dp_35"
|
||||
android:text="我的分享"
|
||||
android:textColor="@color/radiobutton_textcolor"
|
||||
android:textSize="@dimen/dp_40"
|
||||
android:textStyle="bold" />
|
||||
android:textSize="@dimen/dp_36" />
|
||||
</RadioGroup>
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
@@ -82,18 +84,18 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnHidePanels"
|
||||
android:layout_width="@dimen/dp_88"
|
||||
android:layout_height="@dimen/dp_88"
|
||||
android:layout_marginRight="28px"
|
||||
android:layout_width="@dimen/dp_79"
|
||||
android:layout_height="@dimen/dp_79"
|
||||
android:layout_marginRight="@dimen/dp_50"
|
||||
android:background="@drawable/v2x_panel_close"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/rgTabSelect"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/rgTabSelect" />
|
||||
|
||||
<!-- <View-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="58px"-->
|
||||
<!-- android:background="@drawable/v2x_shadow_shape_view"-->
|
||||
<!-- app:layout_constraintBottom_toBottomOf="parent" />-->
|
||||
<!-- <View-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="58px"-->
|
||||
<!-- android:background="@drawable/v2x_shadow_shape_view"-->
|
||||
<!-- app:layout_constraintBottom_toBottomOf="parent" />-->
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
@@ -13,27 +13,27 @@
|
||||
tools:visibility="visible" />
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/clHistoryList"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="@dimen/dp_48"
|
||||
android:paddingEnd="@dimen/dp_48">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvMessage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/dp_60"
|
||||
android:paddingBottom="@dimen/dp_27"
|
||||
android:text="今日出行遇到的交通事件"
|
||||
android:textColor="@color/v2x_FFF_333"
|
||||
android:textSize="@dimen/dp_36"
|
||||
android:textStyle="bold"
|
||||
app:layout_scrollFlags="scroll|enterAlways" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="@dimen/dp_27"
|
||||
android:overScrollMode="never"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||
tools:listitem="@layout/item_v2x_illegal_parking" />
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/share_event_guide_des"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:alpha="0.8"
|
||||
|
||||
@@ -27,8 +27,9 @@
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="@dimen/share_empty_btn_padding">
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/share_empty_btn_padding"
|
||||
android:paddingBottom="@dimen/dp_10">
|
||||
|
||||
<Button
|
||||
android:id="@+id/share_event_button"
|
||||
@@ -38,10 +39,11 @@
|
||||
android:layout_toLeftOf="@id/center"
|
||||
android:background="@drawable/v2x_bkg_dark_light_same"
|
||||
android:clickable="true"
|
||||
android:gravity="center"
|
||||
android:onClick="shareEventAction"
|
||||
android:text="去分享"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="@dimen/dp_34" />
|
||||
android:textColor="@color/v2x_FFF_333"
|
||||
android:textSize="@dimen/dp_32" />
|
||||
|
||||
<View
|
||||
android:id="@+id/center"
|
||||
@@ -55,9 +57,10 @@
|
||||
android:layout_height="@dimen/v2x_share_btn_height"
|
||||
android:layout_toRightOf="@id/center"
|
||||
android:background="@drawable/v2xt_dw_common_corner_bkg_light"
|
||||
android:gravity="center"
|
||||
android:text="刷新"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="@dimen/dp_34" />
|
||||
android:textSize="@dimen/dp_32" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
android:id="@+id/road_case_style"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="20px"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_24"
|
||||
android:background="@drawable/bg_v2x_event_type_read"
|
||||
android:gravity="center"
|
||||
@@ -76,7 +76,7 @@
|
||||
android:layout_toLeftOf="@id/road_case_uselful"
|
||||
android:ellipsize="end"
|
||||
android:gravity="left"
|
||||
android:layout_marginTop="@dimen/dp_24"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:lines="1"
|
||||
android:text="东城区北三环附近维多欧美"
|
||||
android:textColor="@color/v2x_FFF_333"
|
||||
@@ -88,7 +88,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/road_case_address"
|
||||
android:layout_alignLeft="@id/road_case_style"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:layout_marginTop="@dimen/dp_3"
|
||||
android:layout_marginBottom="@dimen/dp_24"
|
||||
android:alpha="0.5"
|
||||
android:gravity="left"
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
android:background="@drawable/v2xt_dw_common_corner_bkg_light"
|
||||
android:text="刷新"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="@dimen/dp_34"
|
||||
android:textSize="@dimen/dp_32"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/loading_imageview" />
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/module_v2x_event_window_height"
|
||||
android:background="@drawable/v2x_alert_window_bg">
|
||||
>
|
||||
|
||||
<com.tencent.rtmp.ui.TXCloudVideoView
|
||||
android:id="@+id/txcVideoView"
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
<dimen name="module_v2x_search_marginLeft">18px</dimen>
|
||||
<dimen name="module_v2x_operation_panel_share_goneMarginRight">20px</dimen>
|
||||
<dimen name="module_v2x_event_window_height">194px</dimen>
|
||||
<dimen name="module_v2x_event_window_height">170px</dimen>
|
||||
<dimen name="module_v2x_event_window_height_ground">250px</dimen>
|
||||
<dimen name="module_v2x_push_img_height">190px</dimen>
|
||||
|
||||
<dimen name="module_v2x_fatigue_driving_window_height_ground">130px</dimen>
|
||||
<dimen name="module_v2x_fatigue_driving_window_height_ground">122px</dimen>
|
||||
|
||||
<dimen name="module_v2x_event_icon_size">82px</dimen>
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
<dimen name="module_v2x_event_button_size_detail">64px</dimen>
|
||||
|
||||
<dimen name="module_v2x_event_image_height">175px</dimen>
|
||||
<dimen name="module_v2x_event_image_width">262px</dimen>
|
||||
<dimen name="module_v2x_event_image_height">156px</dimen>
|
||||
<dimen name="module_v2x_event_image_width">234px</dimen>
|
||||
|
||||
|
||||
<dimen name="module_v2x_event_distance_text">34px</dimen>
|
||||
@@ -73,5 +73,7 @@
|
||||
<dimen name="share_btn_middle_padding">29px</dimen>
|
||||
<dimen name="v2x_panel_btn_translationY">-8px</dimen>
|
||||
|
||||
<dimen name="module_v2x_panel_tab_height">84px</dimen>
|
||||
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<dimen name="module_v2x_history_event_icon_size">80px</dimen>
|
||||
|
||||
<dimen name="module_v2x_surrounding_item_bottom_size">6px</dimen>
|
||||
<dimen name="module_v2x_surrounding_item_bottom_size">10px</dimen>
|
||||
<dimen name="module_v2x_map_left">550px</dimen>
|
||||
<dimen name="module_v2x_map_top">200px</dimen>
|
||||
<dimen name="module_v2x_map_right">200px</dimen>
|
||||
@@ -54,7 +54,8 @@
|
||||
<dimen name="module_v2x_surrounding_item_bottom_right_textsize">28px</dimen>
|
||||
<dimen name="module_v2x_des_index_width">16px</dimen>
|
||||
<dimen name="module_v2x_des_index_height">42px</dimen>
|
||||
<dimen name="module_v2x_panel_cor">16px</dimen>
|
||||
<dimen name="module_v2x_panel_width">120px</dimen>
|
||||
|
||||
<dimen name="module_v2x_panel_tab_height">158px</dimen>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -4,19 +4,19 @@
|
||||
|
||||
<dimen name="module_v2x_search_marginLeft">32px</dimen>
|
||||
<dimen name="module_v2x_operation_panel_share_goneMarginRight">32px</dimen>
|
||||
<dimen name="module_v2x_event_window_height">350px</dimen>
|
||||
<dimen name="module_v2x_event_window_height">306px</dimen>
|
||||
<dimen name="module_v2x_event_window_height_ground">450px</dimen>
|
||||
<dimen name="module_v2x_push_img_height">390px</dimen>
|
||||
|
||||
<dimen name="module_v2x_fatigue_driving_window_height_ground">220px</dimen>
|
||||
<dimen name="module_v2x_fatigue_driving_window_height_ground">210px</dimen>
|
||||
|
||||
<dimen name="module_v2x_event_icon_size">147px</dimen>
|
||||
|
||||
<dimen name="module_v2x_event_button_size">98px</dimen>
|
||||
<dimen name="module_v2x_event_button_size_detail">130px</dimen>
|
||||
|
||||
<dimen name="module_v2x_event_image_height">320px</dimen>
|
||||
<dimen name="module_v2x_event_image_width">480px</dimen>
|
||||
<dimen name="module_v2x_event_image_height">280px</dimen>
|
||||
<dimen name="module_v2x_event_image_width">421px</dimen>
|
||||
|
||||
|
||||
<dimen name="module_v2x_event_distance_text">60px</dimen>
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
<dimen name="module_v2x_history_event_icon_size">80px</dimen>
|
||||
|
||||
<dimen name="module_v2x_surrounding_item_bottom_size">6px</dimen>
|
||||
<dimen name="module_v2x_surrounding_item_bottom_size">10px</dimen>
|
||||
<dimen name="module_v2x_map_left">550px</dimen>
|
||||
<dimen name="module_v2x_map_top">200px</dimen>
|
||||
<dimen name="module_v2x_map_right">200px</dimen>
|
||||
@@ -72,5 +72,7 @@
|
||||
<dimen name="v2x_panel_btn_translationY">-10px</dimen>
|
||||
<dimen name="v2x_panel_btn_image_width">114px</dimen>
|
||||
|
||||
<dimen name="module_v2x_panel_tab_height">158px</dimen>
|
||||
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<color name="transparent_white_30">#B3FFFFFF</color>
|
||||
<color name="surrounding_item_bottom_color">#1F2131</color>
|
||||
<color name="panel_shadow_shape_color">#10121E</color>
|
||||
<color name="share_event_no_more_color">#99FFFFFF</color>
|
||||
<color name="share_event_no_more_color">#4BFFFFFF</color>
|
||||
<color name="v2x_FFF_999">#FFFFFF</color>
|
||||
<color name="v2x_FFF_333">#FFFFFF</color>
|
||||
<color name="v2x_ff6163_333">#ff616381</color>
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
<dimen name="module_v2x_search_marginLeft">18px</dimen>
|
||||
<dimen name="module_v2x_operation_panel_share_goneMarginRight">20px</dimen>
|
||||
<dimen name="module_v2x_event_window_height">194px</dimen>
|
||||
<dimen name="module_v2x_event_window_height">170px</dimen>
|
||||
<dimen name="module_v2x_event_window_height_ground">250px</dimen>
|
||||
<dimen name="module_v2x_push_img_height">190px</dimen>
|
||||
|
||||
<dimen name="module_v2x_fatigue_driving_window_height_ground">130px</dimen>
|
||||
<dimen name="module_v2x_fatigue_driving_window_height_ground">122px</dimen>
|
||||
|
||||
<dimen name="module_v2x_event_icon_size">82px</dimen>
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
<dimen name="module_v2x_event_button_size_detail">64px</dimen>
|
||||
|
||||
<dimen name="module_v2x_event_image_height">175px</dimen>
|
||||
<dimen name="module_v2x_event_image_width">262px</dimen>
|
||||
<dimen name="module_v2x_event_image_height">156px</dimen>
|
||||
<dimen name="module_v2x_event_image_width">234px</dimen>
|
||||
|
||||
|
||||
<dimen name="module_v2x_event_distance_text">34px</dimen>
|
||||
@@ -74,5 +74,7 @@
|
||||
<dimen name="v2x_panel_btn_translationY">-8px</dimen>
|
||||
|
||||
|
||||
<dimen name="module_v2x_panel_tab_height">84px</dimen>
|
||||
|
||||
|
||||
</resources>
|
||||
|
||||
|
After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.6 KiB |
@@ -11,5 +11,7 @@
|
||||
<color name="tanlu_dialog_bt_startcolor_light">#FFFFFF</color>
|
||||
<color name="tanlu_dialog_bt_endcolor_light">#FFFFFF</color>
|
||||
<color name="tanlu_dialog_bt_right_color_light">#E8E8E8</color>
|
||||
<color name="tanlu_top_bg_startcolor_light">#F5F5F5</color>
|
||||
<color name="tanlu_top_bg_endcolor_light">#FFFFFF</color>
|
||||
|
||||
</resources>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.6 KiB |
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="12px"/>
|
||||
<corners android:radius="@dimen/dp_21"/>
|
||||
|
||||
<gradient
|
||||
android:startColor="#1F7EFF"
|
||||
android:endColor="#1E57A4"
|
||||
android:startColor="#B31F7EFF"
|
||||
android:endColor="#B31E57A4"
|
||||
android:type="linear"
|
||||
android:angle="180"/>
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#DDDDDD"/>
|
||||
<corners android:radius="12px"/>
|
||||
<corners android:radius="@dimen/dp_21"/>
|
||||
|
||||
</shape>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="@dimen/dp_40" />
|
||||
<corners android:radius="@dimen/dp_21" />
|
||||
<gradient
|
||||
android:angle="135"
|
||||
android:endColor="#FFFFFF"
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
<corners android:radius="@dimen/dp_180" />
|
||||
<gradient
|
||||
android:angle="135"
|
||||
android:endColor="#2E324B"
|
||||
android:startColor="#585E8B"
|
||||
android:endColor="#DDDDDD"
|
||||
android:startColor="#E6E6E6"
|
||||
android:type="linear"
|
||||
android:useLevel="true" />
|
||||
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
<gradient
|
||||
android:startColor="#FFFFFF"
|
||||
android:endColor="#F5F5F5"/>
|
||||
<corners android:radius="28.8px"/>
|
||||
<corners android:radius="@dimen/dp_40"/>
|
||||
</shape>
|
||||
@@ -4,7 +4,7 @@
|
||||
<shape>
|
||||
<corners android:radius="@dimen/dp_180" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:angle="360"
|
||||
android:endColor="#5CC1FF"
|
||||
android:startColor="#256BFF" />
|
||||
</shape>
|
||||
@@ -13,7 +13,7 @@
|
||||
<shape>
|
||||
<corners android:radius="@dimen/dp_180" />
|
||||
<gradient
|
||||
android:angle="180"
|
||||
android:angle="360"
|
||||
android:endColor="#5CC1FF"
|
||||
android:startColor="#256BFF" />
|
||||
</shape>
|
||||
|
||||
@@ -8,10 +8,9 @@
|
||||
<color name="v2x_white_light">#333333</color>
|
||||
<color name="v2x_item_white_light">#FFFFFF</color>
|
||||
<color name="v2x_white_refresh_light">#FFFFFF</color>
|
||||
<color name="transparent_white_30_light">#333333</color>
|
||||
<color name="share_event_no_more_color_light">#333333</color>
|
||||
<color name="share_event_no_more_color_light">#CB333333</color>
|
||||
<color name="v2x_FFF_999_light">#999999</color>
|
||||
<color name="v2x_FFF_333_light">#333333</color>
|
||||
<color name="v2x_FFF_333_light">#B2333333</color>
|
||||
<color name="v2x_FFF_666_light">#666666</color>
|
||||
<color name="v2x_555A_F5F5_light">#F5F5F5</color>
|
||||
<color name="v2x_000_FFF_light">#FFFFFF</color>
|
||||
|
||||