package com.mxdl.movecar;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import com.amap.api.maps.AMap;
import com.amap.api.maps.CameraUpdateFactory;
import com.amap.api.maps.MapView;
import com.amap.api.maps.model.BitmapDescriptorFactory;
import com.amap.api.maps.model.LatLng;
import com.amap.api.maps.model.Marker;
import com.amap.api.maps.model.MarkerOptions;
import com.amap.api.maps.model.Polyline;
import com.amap.api.maps.model.PolylineOptions;
import com.mxdl.movecar.service.MoveCarCustomThread;
import com.mxdl.movecar.service.MoveCarSmoothThread;
import com.mxdl.movecar.util.TrackMoveUtil;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.functions.Consumer;
import static com.mxdl.movecar.enums.MOVE_STATE.FINISH_STATUS;
import static com.mxdl.movecar.enums.MOVE_STATE.MOVE_STATUS;
import static com.mxdl.movecar.enums.MOVE_STATE.PAUSE_STATUS;
import static com.mxdl.movecar.enums.MOVE_STATE.START_STATUS;
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
public static final String TAG = MainActivity.class.getSimpleName();
String track = "116.295186|39.886758|116.295138|39.886782|116.295122|39.886806|116.29509|39.88683|116.29505|39.88691|116.29505|39.886954|116.295074|39.887005|116.295074|39.88715|116.295074|39.887222|116.29509|39.887294|116.29509|39.887429|116.29509|39.887502|116.29509|39.887574|116.29509|39.887718|116.29509|39.887782|116.29509|39.887842|116.29509|39.887926|116.29509|39.887958|116.29509|39.88801|116.29509|39.88803|116.29509|39.88805|116.29509|39.888078|116.29509|39.888098|116.29509|39.888114|116.295106|39.888146|116.295122|39.88815|116.295138|39.888158|116.295234|39.888166|116.295234|39.888178|116.295234|39.888186|116.295234|39.88819|116.295234|39.88819|116.295234|39.88819|116.295234|39.888194|116.295234|39.888194|116.295234|39.888198|116.295234|39.888198|116.295218|39.888198|116.295218|39.888198|116.295218|39.888202|116.295218|39.888202|116.295218|39.888202|116.295218|39.888202|116.295218|39.888202|116.295202|39.888202|116.295202|39.88821|116.295202|39.888246|116.295202|39.888274|116.295202|39.88831|116.295202|39.888382|116.295218|39.888422|116.295202|39.888474|116.295218|39.888602|116.295218|39.888682|116.295234|39.88877|116.295218|39.888974|116.295218|39.88907|116.295202|39.889258|116.295186|39.889338|116.295186|39.889414|116.295154|39.88955|116.295154|39.889602|116.295154|39.889654|116.295138|39.88975|116.295138|39.889794|116.295138|39.889838|116.295122|39.889914|116.295122|39.889946|116.295122|39.889978|116.295106|39.890022|116.295106|39.890038|116.295106|39.890042|116.29509|39.890042|116.29509|39.890042|116.29509|39.890042|116.29509|39.890042|116.29509|39.890042|116.29509|39.890042|116.29509|39.890042|116.29509|39.890042|116.29509|39.890042|116.29509|39.890042|116.29509|39.890042|116.29509|39.890042|116.29509|39.890042|116.29509|39.890042|116.295074|39.89007|116.295074|39.890098|116.29505|39.89013|116.29505|39.890222|116.29505|39.890274|116.295034|39.890322|116.295034|39.89041|116.295034|39.890458|116.295034|39.890542|116.295034|39.890594|116.295034|39.890646|116.295034|39.890738|116.295034|39.890782|116.295034|39.89083|116.295018|39.890926|116.295018|39.89097|116.29501|39.891014|116.294994|39.891102|116.294994|39.891146|116.294994|39.891242|116.294994|39.891281|116.294978|39.891326|116.294978|39.891422|116.294978|39.891482|116.294962|39.891549|116.294962|39.891718|116.294962|39.891814|116.294962|39.891918|116.294962|39.892154|116.294962|39.892282|116.294946|39.892558|116.294922|39.892694|116.294922|39.892838|116.29489|39.893105|116.29489|39.893242|116.29489|39.893378|116.294891|39.893641|116.294891|39.893778|116.294891|39.89391|116.294891|39.894178|116.294891|39.89431|116.294891|39.894434|116.294907|39.894646|116.294907|39.894741|116.294907|39.894842|116.294907|39.894934|116.294907|39.894954|116.294907|39.894961|116.294907|39.894938|116.294907|39.894942|116.294923|39.894954|116.294947|39.89501|116.294947|39.895058|116.294947|39.895106|116.294963|39.895218|116.294963|39.895282|116.294963|39.89535|116.294963|39.895498|116.294963|39.895574|116.294963|39.895654|116.294979|39.895826|116.294979|39.895914|116.294963|39.896002|116.294963|39.896162|116.294963|39.896222|116.294963|39.896278|116.294963|39.896294|116.294979|39.89631|116.294995|39.89637|116.294995|39.896406|116.294995|39.896462|116.295011|39.896582|116.295019|39.896654|116.295019|39.896738|116.295051|39.896894|116.295051|39.896974|116.295051|39.897054|116.295035|39.897274|116.295051|39.897386|116.295075|39.897614|116.295091|39.89773|116.295107|39.897858|116.295107|39.898122|116.295107|39.898262|116.295123|39.898398|116.295123|39.898666|116.295123|39.898786|116.295139|39.899002|116.295156|39.899102|116.295156|39.899214|116.295172|39.899462|116.295172|39.899586|116.295188|39.899706|116.295172|39.899946|116.295172|39.900058|116.295172|39.900166|116.295172|39.900366|116.295172|39.900463|116.295172|39.900538|116.295172|39.900678|116.295172|39.900747|116.295172|39.900822|116.295172|39.900958|116.295204|39.901026|116.295236|39.901098|116.295188|39.901298|116.295188|39.901394|116.295172|39.901502|116.295156|39.901714|116.29514|39.901826|116.29514|39.901946|116.295092|39.902194|116.295076|39.902314|116.295076|39.902434|116.295076|39.902678|116.295076|39.902794|116.295052|39.903002|116.295052|39.903094|116.295052|39.903178|116.295076|39.903302|116.295076|39.903358|116.295076|39.903398|116.295052|39.903462|116.295052|39.90347|116.295036|39.903474|116.295036|39.903482|116.29502|39.903486|116.29502|39.903486|116.29502|39.90349|116.29502|39.90349|116.29502|39.90349|116.295012|39.903494|116.294996|39.903498|116.29498|39.903498|116.29498|39.903498|116.29498|39.903498|116.29498|39.903498|116.29498|39.903498|116.294964|39.903498|116.294964|39.903498|116.294948|39.903498|116.294948|39.903498|116.294948|39.903506|116.294924|39.903538|116.294924|39.90357|116.294924|39.90361|116.294924|39.903726|116.294964|39.903794|116.29498|39.903878|116.29498|39.904054|116.29498|39.904142|116.29498|39.904238|116.29498|39.90441|116.294964|39.90451|116.29498|39.904614|116.294996|39.904819|116.294996|39.90493|116.294996|39.90503|116.294996|39.905234|116.295012|39.905326|116.295012|39.905522|116.29502|39.905606|116.29502|39.905702|116.295052|39.905887|116.295052|39.905978|116.295076|39.906062|116.295109|39.90623|116.295093|39.906318|116.295109|39.906394|116.295125|39.906546|116.295125|39.906627|116.295125|39.906691|116.295109|39.906806|116.295109|39.906842|116.295125|39.906911|116.295125|39.906938|116.295125|39.906967|116.295125|39.907011|116.295125|39.907035|116.295125|39.907067|116.295109|39.907131|116.295109|39.907162|116.295093|39.907198|116.295109|39.907258|116.295109|39.907282|116.295125|39.907307|116.295173|39.907331|116.295205|39.907335|116.295253|39.907335|116.295365|39.907351|116.295453|39.907355|116.295613|39.907367|116.295709|39.907371|116.295814|39.907375|116.296014|39.907384|116.296118|39.907388|116.29623|39.907392|116.296495|39.9074|116.296623|39.907405|116.296879|39.907405|116.297048|39.907409|116.297192|39.907417|116.297496|39.90743|116.297665|39.907442|116.297841|39.907438|116.298169|39.907451|116.298346|39.907463|116.29853|39.907479|116.298875|39.907504|116.299035|39.907512|116.299195|39.907512|116.29954|39.907509|116.2997|39.907509|116.299884|39.907505|116.300229|39.90749|116.300405|39.907482|116.300573|39.90747|116.30091|39.907455|116.301078|39.907455|116.301239|39.907455|116.301583|39.907456|116.301727|39.907456|116.301888|39.907456|116.3022|39.907449|116.302361|39.907453|116.302529|39.907453|116.302865|39.90747|116.30305|39.907474|116.30321|39.907474|116.303522|39.907471|116.303683|39.907475|116.303827|39.907479|116.303995|39.9074
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【作品名称】:基于 Java+Android车辆运动轨迹平滑移动(高仿DD打车)最佳实践 【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。 【项目介绍】:基于 Java+Android车辆运动轨迹平滑移动(高仿DD打车)最佳实践
资源推荐
资源详情
资源评论
收起资源包目录
android-amap-track-move.zip (46个子文件)
android-amap-track-move
gradle.properties 728B
gradle
wrapper
gradle-wrapper.jar 53KB
gradle-wrapper.properties 232B
app
src
androidTest
java
com
mxdl
movecar
ExampleInstrumentedTest.java 716B
test
java
com
mxdl
movecar
ExampleUnitTest.java 377B
main
java
com
mxdl
movecar
contract
IMoveCar.java 380B
service
MoveCarSmoothThread.java 4KB
MoveCarCustomThread.java 8KB
enums
MOVE_STATE.java 507B
MainActivity.java 43KB
util
TrackMoveUtil.java 5KB
res
mipmap-xxhdpi
ic_launcher_round.png 10KB
ic_launcher.png 6KB
mipmap-hdpi
ic_launcher_round.png 5KB
ic_launcher.png 3KB
drawable-v24
ic_launcher_foreground.xml 2KB
mipmap-anydpi-v26
ic_launcher.xml 270B
ic_launcher_round.xml 270B
mipmap-mdpi
ic_launcher_round.png 3KB
ic_launcher.png 2KB
mipmap-xxxhdpi
ic_launcher_round.png 15KB
ic_launcher.png 9KB
mipmap-xhdpi
ic_tour_track.png 99B
ic_launcher_round.png 7KB
ic_tour_record_car.png 3KB
ic_launcher.png 4KB
values
colors.xml 208B
strings.xml 83B
styles.xml 383B
layout
activity_main.xml 1KB
drawable
ic_launcher_background.xml 5KB
AndroidManifest.xml 2KB
proguard-rules.pro 751B
build.gradle 2KB
.gitignore 7B
gradlew.bat 2KB
build.gradle 549B
.idea
runConfigurations.xml 564B
markdown-navigator
profiles_settings.xml 144B
vcs.xml 180B
misc.xml 7KB
gradle.xml 580B
encodings.xml 135B
settings.gradle 15B
gradlew 5KB
.gitignore 203B
共 46 条
- 1
资源评论
MarcoPage
- 粉丝: 4298
- 资源: 8839
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功