Ser*_*ici 5 android google-maps overlay
我遇到了一项任务,对我而言,这对我来说并不像以前那么微不足道.我需要创建一个使用MapActivity的应用程序,并在其上绘制一些叠加...(已经完成),现在我遇到了onTap()方法的问题,我需要让它看起来像在Android的原始Maps App中,像这样http://i.stack.imgur.com/EkZEr.png
我是android的新手,似乎没有教程可以解释如何为这样的叠加编写类...
in onTap()
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
LinearLayout ll = (LinearLayout)inflater.inflate(R.layout.mylocation_balloon, null);
LayoutParams lp = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT,mapOverlays.get(index).getPoint(), 0, -70, LayoutParams.MODE_MAP | LayoutParams.CENTER);
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
127 次 |
最近记录: |