增加小巴进入vr模式
This commit is contained in:
1
.idea/gradle.xml
generated
1
.idea/gradle.xml
generated
@@ -89,6 +89,7 @@
|
|||||||
</set>
|
</set>
|
||||||
</option>
|
</option>
|
||||||
<option name="resolveModulePerSourceSet" value="false" />
|
<option name="resolveModulePerSourceSet" value="false" />
|
||||||
|
<option name="useQualifiedModuleNames" value="true" />
|
||||||
</GradleProjectSettings>
|
</GradleProjectSettings>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import com.mogo.och.bus.fragment.OchBusFragment;
|
|||||||
import com.mogo.service.connection.IMogoOnMessageListener;
|
import com.mogo.service.connection.IMogoOnMessageListener;
|
||||||
import com.mogo.service.statusmanager.IMogoStatusChangedListener;
|
import com.mogo.service.statusmanager.IMogoStatusChangedListener;
|
||||||
import com.mogo.service.statusmanager.StatusDescriptor;
|
import com.mogo.service.statusmanager.StatusDescriptor;
|
||||||
|
import com.mogo.utils.UiThreadHandler;
|
||||||
import com.mogo.utils.logger.Logger;
|
import com.mogo.utils.logger.Logger;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -33,6 +34,20 @@ public class OchBusProvider implements IMogoOCH {
|
|||||||
public void init(FragmentActivity activity, int containerId) {
|
public void init(FragmentActivity activity, int containerId) {
|
||||||
this.containerId = containerId;
|
this.containerId = containerId;
|
||||||
this.activity = activity;
|
this.activity = activity;
|
||||||
|
|
||||||
|
UiThreadHandler.postDelayed(this::stepIntoVrMode, 5_000L );
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 进入鹰眼模式,设置手势缩放地图失效
|
||||||
|
*/
|
||||||
|
private void stepIntoVrMode(){
|
||||||
|
Logger.d( TAG, "进入vr模式" );
|
||||||
|
MogoApisHandler.getInstance()
|
||||||
|
.getApis()
|
||||||
|
.getMapServiceApi()
|
||||||
|
.getMapUIController()
|
||||||
|
.openVrMode(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -223,14 +223,14 @@ public class OchBusFragment extends BaseOchFragment<OchBusFragment, OchBusPresen
|
|||||||
tvStationNotice.setText("当前车站");
|
tvStationNotice.setText("当前车站");
|
||||||
tvStationName.setText(station.getSiteName());
|
tvStationName.setText(station.getSiteName());
|
||||||
if (i == stationList.size() - 1) {
|
if (i == stationList.size() - 1) {
|
||||||
showNotice("行程结束,请携带好随身物品\n注意侧后方来车\n感谢体验蘑菇智行自动驾驶车!");
|
showNotice("行程结束,请携带好随身物品,注意侧后方来车,感谢体验蘑菇智行自动驾驶车!");
|
||||||
tvStationNotice.setText("终点");
|
tvStationNotice.setText("终点");
|
||||||
showSlidePanle("单程结束");
|
showSlidePanle("单程结束");
|
||||||
} else if (i == 0) {
|
} else if (i == 0) {
|
||||||
hideNotice();
|
hideNotice();
|
||||||
showSlidePanle("准备出发");
|
showSlidePanle("准备出发");
|
||||||
} else {
|
} else {
|
||||||
showNotice("行程结束,请携带好随身物品\n注意侧后方来车\n感谢体验蘑菇智行自动驾驶车!");
|
showNotice("行程结束,请携带好随身物品,注意侧后方来车,感谢体验蘑菇智行自动驾驶车!");
|
||||||
showSlidePanle("乘客已上车,准备出发");
|
showSlidePanle("乘客已上车,准备出发");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
<item>
|
<item>
|
||||||
<shape>
|
<shape>
|
||||||
<corners android:radius="17px" />
|
<corners android:radius="17px" />
|
||||||
<solid android:color="#AD3D4E81" />
|
<gradient
|
||||||
|
android:angle="270"
|
||||||
|
android:endColor="#152147"
|
||||||
|
android:startColor="#354E8A" />
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
@@ -14,8 +17,9 @@
|
|||||||
<shape>
|
<shape>
|
||||||
<corners android:radius="17px" />
|
<corners android:radius="17px" />
|
||||||
<gradient
|
<gradient
|
||||||
android:endColor="#202D4E"
|
android:angle="270"
|
||||||
android:startColor="#2C3862" />
|
android:endColor="#141C35"
|
||||||
|
android:startColor="#344687" />
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
</layer-list>
|
</layer-list>
|
||||||
Reference in New Issue
Block a user