[m1] 状态栏中的电量进度不可拖动,滑动不触发地图视角变化
This commit is contained in:
@@ -37,6 +37,8 @@ class StatusBarView @JvmOverloads constructor(
|
|||||||
init {
|
init {
|
||||||
LayoutInflater.from(context).inflate(R.layout.m1_statusview_datetime, this, true)
|
LayoutInflater.from(context).inflate(R.layout.m1_statusview_datetime, this, true)
|
||||||
setBackgroundColor(ContextCompat.getColor(context,R.color.bus_p_m1_80ffffff))
|
setBackgroundColor(ContextCompat.getColor(context,R.color.bus_p_m1_80ffffff))
|
||||||
|
isClickable = true
|
||||||
|
isFocusable = true
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onAttachedToWindow() {
|
override fun onAttachedToWindow() {
|
||||||
|
|||||||
@@ -46,8 +46,9 @@
|
|||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:layout_marginStart="@dimen/dp_32" />
|
android:layout_marginStart="@dimen/dp_32" />
|
||||||
|
|
||||||
<SeekBar
|
<ProgressBar
|
||||||
android:id="@+id/progress"
|
android:id="@+id/progress"
|
||||||
|
style="?android:attr/progressBarStyleHorizontal"
|
||||||
android:layout_width="@dimen/dp_115"
|
android:layout_width="@dimen/dp_115"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="@dimen/dp_40"
|
android:layout_marginStart="@dimen/dp_40"
|
||||||
@@ -57,9 +58,8 @@
|
|||||||
app:layout_constraintStart_toEndOf="@+id/blueToothView"
|
app:layout_constraintStart_toEndOf="@+id/blueToothView"
|
||||||
android:maxHeight="@dimen/dp_10"
|
android:maxHeight="@dimen/dp_10"
|
||||||
android:minHeight="@dimen/dp_10"
|
android:minHeight="@dimen/dp_10"
|
||||||
android:splitTrack="false"
|
android:background="@null"
|
||||||
android:progressDrawable="@drawable/taxi_video_seekbar_style"
|
android:progressDrawable="@drawable/taxi_video_seekbar_style" />
|
||||||
android:thumb="@null" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_power_cos"
|
android:id="@+id/tv_power_cos"
|
||||||
|
|||||||
Reference in New Issue
Block a user