[M2] 视频绘制选opengl,走马灯

This commit is contained in:
wangmingjun
2023-03-11 11:51:06 +08:00
parent 113a4b21e3
commit 053ae16fd1
4 changed files with 11 additions and 6 deletions

View File

@@ -49,6 +49,9 @@ class PM2DrivingInfoFragment :
context?.let { it -> ToggleDebugView.toggleDebugView.toggle(it) }
}
context?.getColor(R.color.m2_line_name_tv_color)?.let { line_name_tv.setTextColor(it) }
context?.getColor(R.color.m2_line_name_tv_color)?.let { station_name_tv.setTextColor(it) }
// current_time_tv.onClick {
// //测试V2X消息

View File

@@ -20,7 +20,7 @@ class AdvanceGSYVideoPlayer: StandardGSYVideoPlayer {
init {
hideWidget()
GSYVideoType.setShowType(GSYVideoType.SCREEN_MATCH_FULL)
GSYVideoType.setRenderType(GSYVideoType.TEXTURE)
GSYVideoType.setRenderType(GSYVideoType.GLSURFACE)
}
override fun hideAllWidget() {

View File

@@ -123,16 +123,17 @@
<com.mogo.och.common.module.wigets.MarqueeTextView
android:id="@+id/station_name_tv"
android:layout_width="0dp"
android:layout_width="@dimen/dp_240"
android:layout_height="wrap_content"
android:textStyle="bold"
android:singleLine="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
app:customGap="0.5"
app:useCustomGap="true"
android:text="@string/m2_p_empty_tv"
android:textSize="@dimen/dp_22"
android:layout_marginTop="@dimen/dp_8"
app:layout_constraintRight_toRightOf="@+id/img_line_location_bg"
app:layout_constraintTop_toBottomOf="@+id/station_name_title_tv"
app:layout_constraintLeft_toLeftOf="@+id/speed_tv"
android:textColor="@color/m2_line_name_tv_color"/>
@@ -184,15 +185,16 @@
<com.mogo.och.common.module.wigets.MarqueeTextView
android:id="@+id/line_name_tv"
android:layout_width="0dp"
android:layout_width="@dimen/dp_240"
android:layout_height="wrap_content"
android:textStyle="bold"
android:singleLine="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
app:customGap="0.5"
app:useCustomGap="true"
android:layout_marginTop="@dimen/dp_40"
android:textSize="@dimen/dp_22"
app:layout_constraintRight_toRightOf="@+id/img_line_location_bg"
app:layout_constraintTop_toTopOf="@+id/img_time_bg"
app:layout_constraintLeft_toLeftOf="@+id/speed_tv"
android:textColor="@color/m2_line_name_tv_color"/>

View File

@@ -38,7 +38,7 @@ project.android.productFlavors {
buildConfigField 'boolean', 'IS_DEMO_MODE', 'false'
// 构建的是否要动态更换模型
buildConfigField 'boolean', 'IS_CAR_MODEL_CHANGE', 'true'
buildConfigField 'boolean', 'IS_CAR_MODEL_CHANGE', 'false'
// 是否需要重写状态栏
buildConfigField 'boolean', 'IS_REPLACE_STATUSVIEW', 'true'