[taxi-p]
[目的地字数限制放大]
This commit is contained in:
yangyakun
2023-12-28 18:07:52 +08:00
parent 5a6846bc98
commit af63eb3db9
4 changed files with 6 additions and 6 deletions

View File

@@ -86,8 +86,8 @@ class ItineraryView : ConstraintLayout, OrderInfoViewModel.ItineraryViewCallback
}
override fun setEndStation(endStation:String){
if(endStation.length>9){
actv_endstation.text = "${endStation.subSequence(0,9)}"
if(endStation.length>15){
actv_endstation.text = "${endStation.subSequence(0,15)}"
}else {
actv_endstation.text = endStation
}

View File

@@ -46,7 +46,7 @@
android:id="@+id/actv_endstation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLength="10"
android:maxLength="25"
android:maxLines="1"
android:layout_marginStart="@dimen/dp_7"
android:textColor="@color/taxi_p_293449"

View File

@@ -90,8 +90,8 @@ class ItineraryView : ConstraintLayout, OrderInfoViewModel.ItineraryViewCallback
}
override fun setEndStation(endStation:String){
if(endStation.length>9){
actv_endstation.text = "${endStation.subSequence(0,9)}"
if(endStation.length>15){
actv_endstation.text = "${endStation.subSequence(0,15)}"
}else {
actv_endstation.text = endStation
}

View File

@@ -46,7 +46,7 @@
android:id="@+id/actv_endstation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLength="10"
android:maxLength="25"
android:maxLines="1"
android:layout_marginStart="@dimen/dp_7"
android:textColor="@color/taxi_p_293449"