Android
chen_cjl_one
这个作者很懒,什么都没留下…
展开
-
关于百度地图两点的经纬度转化为距离(m)
double a,b,s,radLat1,radLat2; //球半径 private static final double EARTH_RADIUS = 6378.137; private double getDistanceFromXtoY(double lat_a,double lng_a,double lat_b,double lng_b){ radLat1=原创 2016-12-09 20:17:30 · 1318 阅读 · 0 评论 -
Android 如何在Java代码中手动设置控件的marginleft
1.定义LayoutParams LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);//定义一个LayoutParams 2.在LayoutParams中设原创 2016-12-15 14:48:01 · 383 阅读 · 0 评论