finish the basic demo

addvoice
李富 9 years ago
parent 67c0a357c7
commit 16e7c4ce27

@ -336,7 +336,7 @@ public class LocActivity extends ParentWithNaviActivity implements ObseverListen
LocationClientOption option = new LocationClientOption(); LocationClientOption option = new LocationClientOption();
option.setLocationMode(LocationClientOption.LocationMode.Hight_Accuracy);//可选,默认高精度,设置定位模式,高精度,低功耗,仅设备 option.setLocationMode(LocationClientOption.LocationMode.Hight_Accuracy);//可选,默认高精度,设置定位模式,高精度,低功耗,仅设备
option.setCoorType("bd09ll");//可选默认gcj02设置返回的定位结果坐标系 option.setCoorType("bd09ll");//可选默认gcj02设置返回的定位结果坐标系
int span=4000; int span=1000;
option.setScanSpan(span);//可选默认0即仅定位一次设置发起定位请求的间隔需要大于等于1000ms才是有效的 option.setScanSpan(span);//可选默认0即仅定位一次设置发起定位请求的间隔需要大于等于1000ms才是有效的
option.setIsNeedAddress(true);//可选,设置是否需要地址信息,默认不需要 option.setIsNeedAddress(true);//可选,设置是否需要地址信息,默认不需要
option.setOpenGps(true);//可选默认false,设置是否使用gps option.setOpenGps(true);//可选默认false,设置是否使用gps
@ -484,13 +484,16 @@ public class LocActivity extends ParentWithNaviActivity implements ObseverListen
LatLng point1 = my_loc; LatLng point1 = my_loc;
LatLng point2 = friend_loc; LatLng point2 = friend_loc;
// 构建Marker图标 // 构建Marker图标
BitmapDescriptor bitmap = null; BitmapDescriptor f_bitmap = null;
BitmapDescriptor m_bitmap = null;
f_bitmap = BitmapDescriptorFactory.fromResource(R.drawable.friend_loc); // 非推算结果
m_bitmap = BitmapDescriptorFactory.fromResource(R.drawable.my_loc); // 非推算结果
bitmap = BitmapDescriptorFactory.fromResource(R.drawable.chat_voice_bg_press); // 非推算结果
// 构建MarkerOption用于在地图上添加Marker // 构建MarkerOption用于在地图上添加Marker
OverlayOptions option1 = new MarkerOptions().position(point1).icon(bitmap); OverlayOptions option1 = new MarkerOptions().position(point1).icon(m_bitmap);
OverlayOptions option2 = new MarkerOptions().position(point2).icon(bitmap); OverlayOptions option2 = new MarkerOptions().position(point2).icon(f_bitmap);
// 在地图上添加Marker(多个),并显示 // 在地图上添加Marker(多个),并显示
FindUOverlayManager overlayManager = new FindUOverlayManager(mBaiduMap); FindUOverlayManager overlayManager = new FindUOverlayManager(mBaiduMap);

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 288 B

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 B

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 24 KiB

@ -1,14 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<color name="colorPrimary">#3F51B5</color> <color name="colorPrimary">#737478</color>
<color name="colorPrimaryDark">#303F9F</color> <color name="colorPrimaryDark">#3d3d3e</color>
<color name="colorAccent">#FF4081</color> <color name="colorAccent">#FF4081</color>
<color name="transparent">#00000000</color> <color name="transparent">#00000000</color>
<color name="base_color_text_black">#3e3e39</color> <color name="base_color_text_black">#3e3e39</color>
<color name="base_color_text_gray">#9fa0a0</color> <color name="base_color_text_gray">#9fa0a0</color>
<color name="base_color_text_white">#ffffff</color> <color name="base_color_text_white">#ffffff</color>
<color name="color_theme">#489cfa</color> <color name="color_theme">#4f5051</color>
<color name="color_emote_divder">#ffa1a1a1</color> <color name="color_emote_divder">#ffa1a1a1</color>
<color name="color_bottom_bg">#272a2e</color> <color name="color_bottom_bg">#272a2e</color>
@ -20,7 +20,7 @@
<color name="theme_bg_color">#f0f2f5</color> <color name="theme_bg_color">#f0f2f5</color>
<color name="c_f98800">#ed4e23</color> <color name="c_f98800">#ed4e23</color>
<color name="base_bg">#ffffff</color> <color name="base_bg">#ffffff</color>
<color name="dialog_color_title">#f82c22</color> <color name="dialog_color_title">#ef4e5c</color>
<color name="guide_color">#898989</color> <color name="guide_color">#898989</color>
<color name="common_bg">#fcfcfc</color> <color name="common_bg">#fcfcfc</color>

@ -1,5 +1,5 @@
<resources> <resources>
<string name="app_name">BmobIM2.0</string> <string name="app_name">FindU</string>
<string name="action_settings">Settings</string> <string name="action_settings">Settings</string>
<string name="login_username_hint">请输入用户名&#8230;</string> <string name="login_username_hint">请输入用户名&#8230;</string>
<string name="login_password_hint">请输入密码&#8230;</string> <string name="login_password_hint">请输入密码&#8230;</string>

Loading…
Cancel
Save