[3.2.0] UI调整

This commit is contained in:
wangmingjun
2023-05-12 12:50:44 +08:00
parent b7ca5bc757
commit a4ad075992
4 changed files with 16 additions and 15 deletions

View File

@@ -32,7 +32,8 @@
<com.mogo.och.common.module.wigets.MarqueeTextView
android:id="@+id/bus_p_line_name_tv"
android:layout_width="@dimen/dp_340"
android:layout_width="wrap_content"
android:maxWidth="@dimen/dp_340"
android:layout_height="@dimen/dp_76"
android:singleLine="true"
android:ellipsize="marquee"
@@ -55,8 +56,8 @@
android:src="@drawable/bus_line_logo"
app:layout_constraintTop_toTopOf="@+id/bus_p_line_name_tv"
app:layout_constraintBottom_toBottomOf="@+id/bus_p_line_name_tv"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_marginLeft="@dimen/dp_160"/>
app:layout_constraintRight_toLeftOf="@+id/bus_p_line_name_tv"
android:layout_marginRight="@dimen/dp_20"/>
<com.mogo.och.common.module.wigets.OCHGradientTextView
android:id="@+id/bus_p_speed_tv"

View File

@@ -22,8 +22,8 @@ public class BlinkAnimationUtil {
AnimatorSet animationSet = new AnimatorSet();
imageView.setTag(imageView.getId(),animationSet);
ObjectAnimator valueAnimator = ObjectAnimator.ofFloat(imageView, "alpha",0f, 1.0f);
ObjectAnimator valueAnimatorDisappare = ObjectAnimator.ofFloat(imageView, "alpha",1.0f, 0f);
ObjectAnimator valueAnimator = ObjectAnimator.ofFloat(imageView, "alpha",1.0f, 0f);
ObjectAnimator valueAnimatorDisappare = ObjectAnimator.ofFloat(imageView, "alpha",0f, 1.0f);
valueAnimator.setDuration(1000);
valueAnimatorDisappare.setDuration(800);

View File

@@ -14,8 +14,8 @@
android:layout_height="@dimen/dp_65"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginTop="@dimen/dp_10"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginTop="@dimen/dp_30"
android:layout_marginLeft="@dimen/dp_40"
android:src="@drawable/count_down_rotate_bg"/>
<TextView
@@ -26,8 +26,8 @@
android:gravity="center"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginTop="@dimen/dp_10"
android:layout_marginLeft="@dimen/dp_10"
android:layout_marginTop="@dimen/dp_30"
android:layout_marginLeft="@dimen/dp_40"
android:text="120"
android:textSize="@dimen/dp_20"/>
@@ -63,8 +63,8 @@
android:background="#66B8BFE8"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/common_tips"
android:layout_marginTop="80dp"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="@dimen/dp_136"
/>
<View

View File

@@ -24,12 +24,12 @@
<com.mogo.och.common.module.wigets.MarqueeTextView
android:id="@+id/bus_p_line_name_tv"
android:layout_width="@dimen/dp_698"
android:layout_width="wrap_content"
android:maxWidth="@dimen/dp_340"
android:layout_height="@dimen/dp_76"
android:singleLine="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:background="@drawable/route_line_name_bg"
android:text="@string/bus_p_no_line"
android:gravity="center"
app:customGap="0.5"
@@ -48,8 +48,8 @@
android:src="@drawable/bus_line_logo"
app:layout_constraintTop_toTopOf="@+id/bus_p_line_name_tv"
app:layout_constraintBottom_toBottomOf="@+id/bus_p_line_name_tv"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_marginLeft="@dimen/dp_194"/>
app:layout_constraintRight_toLeftOf="@+id/bus_p_line_name_tv"
android:layout_marginRight="@dimen/dp_20"/>
<com.mogo.och.common.module.wigets.OCHGradientTextView
android:id="@+id/bus_p_speed_tv"