UI opt
This commit is contained in:
@@ -142,7 +142,7 @@ class OCHTaxiFragment extends BaseOchFragment< OCHTaxiView, OCHTaxiPresenter > i
|
||||
slidePanelView.setVisibility( View.VISIBLE );
|
||||
slidePanelView.setText( getString( R.string.module_och_taxi_arrive_at_end_station ) );
|
||||
mOrderStatus.setText( "已到达乘客下车地点" );
|
||||
showNotice( "请携带好随身物品,注意侧后\n方来车,感谢体验蘑菇智行自\n动驾驶车" );
|
||||
showNotice( "请携带好随身物品,注意侧后\n方来车,感谢体验蘑菇智行自\n动驾驶车!" );
|
||||
} else if ( MogoOCHTaxiModel.getInstance().isOnTheWay2EndStation() ) {
|
||||
Logger.d( TAG, "已经去往终点" );
|
||||
slidePanelView.setVisibility( View.GONE );
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<gradient
|
||||
android:centerColor="#080F25"
|
||||
android:endColor="#121A35"
|
||||
android:startColor="#131D42" />
|
||||
android:angle="0"
|
||||
android:centerColor="#7f080F25"
|
||||
android:endColor="#7f121A35"
|
||||
android:startColor="#7f131D42" />
|
||||
<corners
|
||||
android:bottomLeftRadius="17px"
|
||||
android:bottomRightRadius="17px"
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
|
||||
<View
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="2px"
|
||||
android:layout_height="1px"
|
||||
android:layout_marginLeft="30px"
|
||||
android:layout_marginTop="23px"
|
||||
android:layout_marginRight="30px"
|
||||
android:background="#151B37" />
|
||||
android:background="#4D151B37" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -27,6 +27,7 @@ import com.mogo.service.statusmanager.StatusDescriptor;
|
||||
*/
|
||||
public abstract class BaseOchFragment<V extends IView, P extends Presenter<V>> extends MvpFragment<V, P> {
|
||||
protected SlidePanelView slidePanelView;
|
||||
private View tvNoticeContainer;
|
||||
private TextView tvNotice;
|
||||
private CheckedTextView ctvAutopilotStatus;
|
||||
private FrameLayout flStationPanelContainer;
|
||||
@@ -48,6 +49,7 @@ public abstract class BaseOchFragment<V extends IView, P extends Presenter<V>> e
|
||||
@Override
|
||||
protected void initViews() {
|
||||
slidePanelView = findViewById(R.id.module_mogo_och_slide_panel);
|
||||
tvNoticeContainer = findViewById(R.id.module_mogo_och_notice_container);
|
||||
tvNotice = findViewById(R.id.module_mogo_och_notice);
|
||||
ctvAutopilotStatus = findViewById(R.id.module_mogo_och_autopilot_status);
|
||||
flStationPanelContainer = findViewById(R.id.module_mogo_och_station_panel_container);
|
||||
@@ -113,7 +115,7 @@ public abstract class BaseOchFragment<V extends IView, P extends Presenter<V>> e
|
||||
getActivity().runOnUiThread(() -> {
|
||||
tvNotice.setText(notice);
|
||||
AIAssist.getInstance(getContext()).speakTTSVoice(notice);
|
||||
tvNotice.setVisibility(View.VISIBLE);
|
||||
tvNoticeContainer.setVisibility(View.VISIBLE);
|
||||
fivNoticeHead.setVisibility(View.VISIBLE);
|
||||
fivNoticeHead.startAnim();
|
||||
});
|
||||
@@ -121,7 +123,7 @@ public abstract class BaseOchFragment<V extends IView, P extends Presenter<V>> e
|
||||
|
||||
public void hideNotice() {
|
||||
getActivity().runOnUiThread(() -> {
|
||||
tvNotice.setVisibility(View.GONE);
|
||||
tvNoticeContainer.setVisibility(View.GONE);
|
||||
fivNoticeHead.setVisibility(View.GONE);
|
||||
fivNoticeHead.stopAnim();
|
||||
});
|
||||
|
||||
@@ -41,19 +41,28 @@
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/module_mogo_och_notice"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/module_mogo_och_base_notice_box_bg"
|
||||
android:maxWidth="@dimen/module_mogo_och_notice_text_max_width"
|
||||
android:text="请携带好随身物品\n注意侧后方来车\n感谢体验蘑菇智行自动驾驶车!"
|
||||
android:textColor="#fff"
|
||||
android:textSize="@dimen/module_mogo_och_notice_text_size"
|
||||
<FrameLayout
|
||||
android:id="@+id/module_mogo_och_notice_container"
|
||||
android:visibility="gone"
|
||||
tools:visibility = "visible"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:background="@drawable/module_mogo_och_base_notice_box_bg"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:id="@+id/module_mogo_och_notice"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:maxWidth="@dimen/module_mogo_och_notice_text_max_width"
|
||||
android:text="请携带好随身物品\n注意侧后方来车\n感谢体验蘑菇智行自动驾驶车!"
|
||||
android:textColor="#fff"
|
||||
android:textSize="@dimen/module_mogo_och_notice_text_size"
|
||||
android:textStyle="bold"
|
||||
android:lineSpacingExtra="5px" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<com.mogo.och.view.FrameAnimImageView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -62,8 +71,8 @@
|
||||
android:src="@drawable/ic_happy1_00000"
|
||||
android:visibility="gone"
|
||||
android:layout_marginTop="185px"
|
||||
app:layout_constraintRight_toRightOf="@id/module_mogo_och_notice"
|
||||
app:layout_constraintTop_toTopOf="@id/module_mogo_och_notice"/>
|
||||
app:layout_constraintRight_toRightOf="@id/module_mogo_och_notice_container"
|
||||
app:layout_constraintTop_toTopOf="@id/module_mogo_och_notice_container"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
Reference in New Issue
Block a user