我试图实现类似于谷歌地图导航的工作方式,请检查下图以供参考。在谷歌地图中,标记看起来位于静态位置,除非相机正在变化
。
为了实现这一点,我每次位置发生变化时都会对标记进行动画处理,然后通过在 Y 坐标中将其平移 -300px 将其定位到屏幕底部。
但我无法为相机设置动画以改变位置并同时将屏幕向下移动 300 像素。
当我为相机设置动画以改变位置时,标记会精确地移动到屏幕中心,稍后当我将相机移动到低于其他动画 300 像素时,会发生其他动画,这看起来非常烦人。
有什么办法可以实现谷歌地图的功能吗?任何参考或帮助表示赞赏。
我打算将google plus集成到我的第一个android项目中,但是在执行了developer.google.com网站中提到的所有步骤之后,一旦将google_play_service库导入到我的项目中,我的应用程序将无法启动并且日食会自动关闭。我刚刚导入了该库,但尚未使用该库编写任何代码。请帮我解决这个问题。

我使用了asyncTask来发出http请求,因此我使用了进度条来指示该线程中的ongoings的进度.一切正常,直到onPostexecute()方法被调用,我已经显示了响应字符串,Logcat但我的进度条没有退出.
有类似的问题,但我没有得到问题所需的解决方案.请帮忙.
这是我的代码:
class RequestTask extends AsyncTask<String, Integer, String> {
@SuppressWarnings("static-access")
@Override
protected void onPreExecute() {
// TODO Auto-generated method stub
super.onPreExecute();
prgDialog=new ProgressDialog(getActivity());
prgDialog.setCancelable(true);
prgDialog.show(getActivity(), null, "Loading...");
}
@Override
protected String doInBackground(String... uri) {
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response;
String responseString = null;
try {
response = httpclient.execute(new HttpGet(uri[0]));
StatusLine statusLine = response.getStatusLine();
if (statusLine.getStatusCode() == HttpStatus.SC_OK) {
ByteArrayOutputStream out = new ByteArrayOutputStream();
response.getEntity().writeTo(out);
out.close();
responseString = out.toString();
} else {
// Closes …Run Code Online (Sandbox Code Playgroud) android ×4
google-maps ×2
maps ×2
animation ×1
crash ×1
eclipse ×1
google-play ×1
google-plus ×1
progress-bar ×1