[m1] 状态栏中的电量进度不可拖动,滑动不触发地图视角变化

This commit is contained in:
renwj
2023-03-21 11:08:56 +08:00
parent 3fc6417afa
commit 08eacd81a0
2 changed files with 6 additions and 4 deletions

View File

@@ -37,6 +37,8 @@ class StatusBarView @JvmOverloads constructor(
init {
LayoutInflater.from(context).inflate(R.layout.m1_statusview_datetime, this, true)
setBackgroundColor(ContextCompat.getColor(context,R.color.bus_p_m1_80ffffff))
isClickable = true
isFocusable = true
}
override fun onAttachedToWindow() {

View File

@@ -46,8 +46,9 @@
android:layout_gravity="center"
android:layout_marginStart="@dimen/dp_32" />
<SeekBar
<ProgressBar
android:id="@+id/progress"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="@dimen/dp_115"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_40"
@@ -57,9 +58,8 @@
app:layout_constraintStart_toEndOf="@+id/blueToothView"
android:maxHeight="@dimen/dp_10"
android:minHeight="@dimen/dp_10"
android:splitTrack="false"
android:progressDrawable="@drawable/taxi_video_seekbar_style"
android:thumb="@null" />
android:background="@null"
android:progressDrawable="@drawable/taxi_video_seekbar_style" />
<TextView
android:id="@+id/tv_power_cos"