大神们帮忙看看这配置能wow怎么拖动对话框WOW不

后使用快捷导航没有帐号?
只需一步,快速开始
查看: 1058|回复: 2
百度地图不拖动就只显示灰色的表格不显示
TA的每日心情衰 15:18签到天数: 47 天连续签到: 1 天[LV.5]常住居民I
我做的百度地图不知道为啥不用手拖动一下就不显示,只显示灰色的网格,
代码如下:
package com.hnu.an.
import com.baidu.mapapi.BMapM
import com.baidu.mapapi.MKGeneralL
import com.baidu.mapapi.map.ItemizedO
import com.baidu.mapapi.map.MapC
import com.baidu.mapapi.map.MapV
import com.baidu.mapapi.map.OverlayI
import com.baidu.mapapi.map.PopupClickL
import com.baidu.mapapi.map.PopupO
import com.api.basestruct.GeoP
import android.os.B
import android.app.A
import android.content.C
import android.graphics.B
import android.graphics.drawable.D
import android.util.L
import android.view.LayoutI
import android.view.M
import android.view.V
import android.view.View.MeasureS
import android.widget.TextV
import android.widget.T
public class MainActivity extends Activity {
& & & & private MapView mapV
& & & & private BMapManager bMapM
& & & & private static final String KEY = &b7ae&;
& & & & private MapController mapC
& & & & @Override
& & & & protected void onCreate(Bundle savedInstanceState) {
& & & & & & & & super.onCreate(savedInstanceState);
//& & & & & & & & bMapManager = new BMapManager(getApplication());
//& & & & & & & & bMapManager.init(KEY, null);
//& & & & & & & & setContentView(R.layout.activity_main);
//& & & & & & & & mapView = (MapView) findViewById(R.id.bmapView);
//& & & & & & & & mapView.setBuiltInZoomControls(true);
//& & & & & & & & MapController mapController&&= mapView.getController();
//& & & & & & & & GeoPoint point =new GeoPoint((int)(39.915* 1E6),(int)(116.404* 1E6));//用给定的经纬度构造一个GeoPoint,单位是微度 (度 * 1E6)&&
//& & & & & & & & mapController.setCenter(point);//设置地图中心点&&
//& & & & & & & & mapController.setZoom(12);
//& & & & & & & & //mapView.refresh();
//& & & & & & & & //bMapManager.start();
& & & & & & & &
& & & & & & & &
& & & & & & & &
& & & & & & & &
& & & & & & & & bMapManager = new BMapManager(getApplication());
& & & & & & & & // init方法的第一个参数需填入申请的API Key
& & & & & & & & bMapManager.init(KEY, new MKGeneralListener() {
& & & & & & & & & & & & @Override
& & & & & & & & & & & & public void onGetPermissionState(int code) {
& & & & & & & & & & & & & & & & Log.i(&KeyCode&, code + &&);
& & & & & & & & & & & & & & & & Toast.makeText(MainActivity.this, code + &&, Toast.LENGTH_SHORT)
& & & & & & & & & & & & & & & & & & & & & & & & .show();
& & & & & & & & & & & & & & & & if (code == 300) {
& & & & & & & & & & & & & & & & & & & & Toast.makeText(MainActivity.this, &key 有错!&,
& & & & & & & & & & & & & & & & & & & & & & & & & & & & Toast.LENGTH_SHORT).show();
& & & & & & & & & & & & & & & & }
& & & & & & & & & & & & }
& & & & & & & & & & & & @Override
& & & & & & & & & & & & public void onGetNetworkState(int arg0) {
& & & & & & & & & & & & & & & & // TODO Auto-generated method stub
& & & & & & & & & & & & }
& & & & & & & & });
& & & & & & & & bMapManager.start();
& & & & & & & & setContentView(R.layout.activity_main);
& & & & & & & & mapView = (MapView) this.findViewById(R.id.bmapView);
& & & & & & & & mapController = mapView.getController();
& & & & & & & & GeoPoint point = new GeoPoint((int) (39.915 * 1E6),
& & & & & & & & & & & & & & & & (int) (116.404 * 1E6));
//& & & & & & & & mapController.setCenter(point);// 设置地图中心点
& & & & & & & & mapController.setZoom(12);// 设置地图zoom级别
& & & & & & & & mapView.setBuiltInZoomControls(true);&&
//& & & & & & & & mapView.refresh();
& & & & & & & & //mapView.getOverlay().add();
& & & & & & & & Drawable marker = MainActivity.this.getResources().getDrawable(R.drawable.marker);
& & & & & & & & MyOverLay myOverLay = new MyOverLay(marker, this,mapView);
& & & & & & & & mapView.getOverlays().clear();
& & & & & & & & OverlayItem item = new OverlayItem(point, &item&, &item&);
& & & & & & & & item.setMarker(marker);
& & & & & & & & myOverLay.addItem(item);
& & & & & & & & mapView.getOverlays().add(myOverLay);
& & & & & & & & mapView.refresh();
& & & & & & & & myOverLay.onTap(0);
& & & & & & & &
& & & & & & & &
& & & & & & & &
& & & & private void initMapManager() {
& & & & & & & & bMapManager = new BMapManager(MainActivity.this);
& & & & & & & & bMapManager.init(KEY, new MKGeneralListener() {
& & & & & & & & & & & & @Override
& & & & & & & & & & & & public void onGetPermissionState(int code) {
& & & & & & & & & & & & & & & & Log.i(&KeyCode&, code + &&);
& & & & & & & & & & & & & & & & Toast.makeText(MainActivity.this, code + &&, Toast.LENGTH_SHORT)
& & & & & & & & & & & & & & & & & & & & & & & & .show();
& & & & & & & & & & & & & & & & if (code == 300) {
& & & & & & & & & & & & & & & & & & & & Toast.makeText(MainActivity.this, &key 有错!&,
& & & & & & & & & & & & & & & & & & & & & & & & & & & & Toast.LENGTH_SHORT).show();
& & & & & & & & & & & & & & & & }
& & & & & & & & & & & & }
& & & & & & & & & & & & @Override
& & & & & & & & & & & & public void onGetNetworkState(int arg0) {
& & & & & & & & & & & & & & & & // TODO Auto-generated method stub
& & & & & & & & & & & & }
& & & & & & & & });
& & & & public class MyOverLay extends ItemizedOverlay&OverlayItem& {
& & & & & & & & private PopupOverlay pop =
& & & & & & & & private C
& & & & & & & & int detailP
& & & & & & & &
& & & & & & & & public MyOverLay(Drawable arg0, MapView arg1) {
& & & & & & & & & & & & super(arg0, arg1);
& & & & & & & & }
& & & & & & & &
& & & & & & & & public MyOverLay(Drawable marker,Context context, MapView mapView) {
& & & & & & & & & & & & super(marker, mapView);
& & & & & & & & & & & & this.context=
& & & & & & & & & & & & pop = new PopupOverlay(MainActivity.this.mapView, new PopupClickListener() {
& & & & & & & & & & & & & & & &
& & & & & & & & & & & & & & & & @Override
& & & & & & & & & & & & & & & & public void onClickedPopup(int arg0) {
& & & & & & & & & & & & & & & & & & & &
& & & & & & & & & & & & & & & & & & & &
& & & & & & & & & & & & & & & & }
& & & & & & & & & & & & });
& & & & & & & & & & & &
& & & & & & & & & & & &
& & & & & & & & & & & & & & & & & & & &
& & & & & & & & & & & &
& & & & & & & & & & & &
& & & & & & & & & & & &
& & & & & & & & & & & &
& & & & & & & & & & & &
& & & & & & & & }
& & & & & & & &
& & & & & & & &
& & & & & & & & @Override
& & & & & & & & protected boolean onTap(int index) {
& & & & & & & & & & & & // TODO Auto-generated method stub
& & & & & & & & & & & & Log.i(&Map&, index+&&);
& & & & & & & & & & & & mapView.getController().animateTo(getItem(index).getPoint());
& & & & & & & & & & & &
& & & & & & & & & & & & View popView = LayoutInflater.from(context).inflate(R.layout.map_popup_overlay, null);
& & & & & & & & & & & & TextView testText = (TextView) popView.findViewById(R.id.tv_popup_name);
& & & & & & & & & & & & testText.setText(&天安门&);
& & & & & & & & & & & & Bitmap popBitMap =convertViewToBitmap(popView);
& & & & & & & & & & & & pop.showPopup(popBitMap, getItem(index).getPoint(), 32);
& & & & & & & & & & & & detailPosition =
& & & & & & & & & & & & super.onTap(index);
& & & & & & & & & & & &
& & & & & & & & }
& & & & & & & &
& & & & & & & & public Bitmap convertViewToBitmap(View view) {&&
& & & && && && &view.measure(MeasureSpec.makeMeasureSpec(400, MeasureSpec.EXACTLY),&&
& & & && && && && && &&&MeasureSpec.makeMeasureSpec(140, MeasureSpec.EXACTLY));&&
& & & && && && &view.layout(0, 10, view.getMeasuredWidth(), view.getMeasuredHeight());&&
& & & && && && &view.buildDrawingCache();&&
& & & && && && &Bitmap bitmap = view.getDrawingCache();&&
& & & && &
& & & && && && &&&
& & & && &&&}
& & & & & & & & @Override
& & & & & & & & public boolean onTap(GeoPoint geoPoint, MapView mapView) {
& & & & & & & & & & & & if(pop!=null){
& & & & & & & & & & & & & & & & pop.hidePop();
& & & & & & & & & & & & }
& & & & & & & & & & & & super.onTap(geoPoint, mapView);
& & & & & & & & & & & &
& & & & & & & & }&&
& & & & & & & &
& & & & & & & &
& & & & & & & &
& & & & & & & &
& & & & & & & &
& & & & & & & &
& & & & private void initView() {
& & & & & & & & mapView = (MapView) this.findViewById(R.id.bmapView);
& & & & & & & & mapController = mapView.getController();
& & & & & & & & GeoPoint point = new GeoPoint((int) (39.915 * 1E6),
& & & & & & & & & & & & & & & & (int) (116.404 * 1E6));
& & & & & & & & mapController.setCenter(point);// 设置地图中心点
& & & & & & & & mapController.setZoom(12);// 设置地图zoom级别
& & & & }
& & & & @Override
& & & & public boolean onCreateOptionsMenu(Menu menu) {
& & & & & & & & // I this adds items to the action bar if it is present.
& & & & & & & & getMenuInflater().inflate(R.menu.main, menu);
& & & & & & & &
& & & & }
& & & & @Override
& & & & protected void onDestroy() {
& & & & & & & & if (mapView != null) {
& & & & & & & & & & & & mapView.destroy();
& & & & & & & & }
& & & & & & & & if (bMapManager != null) {
& & & & & & & & & & & & bMapManager.destroy();
& & & & & & & & }
& & & & & & & & super.onDestroy();
& & & & }
& & & & @Override
& & & & protected void onResume() {
& & & & & & & & if (mapView != null) {
& & & & & & & & & & & & mapView.onResume();
& & & & & & & & }
& & & & & & & & if (bMapManager != null) {
& & & & & & & & & & & & bMapManager.start();
& & & & & & & & }
& & & & & & & & super.onResume();
& & & & }
& & & & @Override
& & & & protected void onPause() {
& & & & & & & & if (mapView != null) {
& & & & & & & & & & & & mapView.onPause();
& & & & & & & & }
& & & & & & & & if (bMapManager != null) {
& & & & & & & & & & & & bMapManager.stop();
& & & & & & & & }
& & & & & & & & super.onPause();
& & & & }
}
复制代码
(74.82 KB, 下载次数: 1)
17:20 上传
该用户从未签到
如何解决 的 ?
Powered by后使用快捷导航没有帐号?
只需一步,快速开始
查看: 536|回复: 3
最后登录阅读权限10注册时间积分3精华0帖子威望0 PP豆16 活跃度3
, 积分 3, 距离下一级还需 97 积分
该用户从未签到帖子威望0 PP豆16 活跃度3 设备iPhone4s
PP助手官方微信
大神帮帮忙,s最上面一层的4个图标长按可以删除,也能向右拖动,就是不能向下拖动,要怎么解决?
最后登录阅读权限50注册时间积分3269精华0帖子威望39 PP豆1615 活跃度3360
, 积分 3269, 距离下一级还需 4731 积分
TA的每日心情花心7&天前签到天数: 181 天连续签到: 1 天[LV.7]常住居民III帖子威望39 PP豆1615 活跃度3360
4个图标下边还有图标么?
最后登录阅读权限10注册时间积分3精华0帖子威望0 PP豆16 活跃度3
, 积分 3, 距离下一级还需 97 积分
该用户从未签到帖子威望0 PP豆16 活跃度3 设备iPhone4s
最后登录阅读权限10注册时间积分3精华0帖子威望0 PP豆16 活跃度3
, 积分 3, 距离下一级还需 97 积分
该用户从未签到帖子威望0 PP豆16 活跃度3 设备iPhone4s
就是最上面的那4个图标很奇怪,其他的图标都可以正常拖动
世界杯半决赛竞猜达人
按半决赛的活动要求猜对,可获此勋章
站长推荐 /1
Powered by
Copyright&
Aihe Internet Technology Co.,Ltd. All Rights Reserved.广州爱禾网络技术有限公司 版权所有&&求各位大神帮忙看看, 电脑不能玩游戏还有拖动窗口都卡出残影_显卡吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:808,805贴子:
求各位大神帮忙看看, 电脑不能玩游戏还有拖动窗口都卡出残影收藏
<div class="clearfix BAIDU_CLB_AD BAIDU_CLB_AD_pb" id="BAIDU_CLB_AD_">
是显卡爆炸了吗- -,驱动装好几次了还是没用
登录百度帐号我的游戏推荐游戏
后查看最近玩过的游戏
使用签名档&&
为兴趣而生,贴吧更懂你。或帮忙看看这个电脑配置 跪谢大神们_百度知道
帮忙看看这个电脑配置 跪谢大神们
处理器 AMD FX -6300 Six-Core 六核主板 微星 970A-G46 (MS-7693) (ATI RD890 PCI to PCI bridge (external gfx0 port B))内存 4 GB ( 芝奇 DDR3 1600MHz )主硬盘 希捷 ST500DM002-1BD142 ( 500 GB &#47; 7200 转&#47;分 )显卡 ATI Radeon HD 7950 ( 3072 MB &#47; 微星 )声卡 瑞昱 ALC892 @ ATI IXP S肇臼介朗愫柯仅要境纽B600&#47;SB700&#47;SB800 高保真音频网卡 瑞昱 RTL8168E PCI-E Gigabit Ethernet NIC &#47; 微星
提问者采纳
FX-6300的性能恐怕难以支撑HD7950,估计最多能发挥HD7850的性能,建议CPU更换为I5-3470,主板更换为价格在500多元价位的微星,映泰等B75主板,应该再加500多的预算就够了注意HD7950功耗较高,建议电源至少额定550W的功率,最好能到额定600敛颧诫断慵登进券镜猾W,这个功率得电源价格在350~400不等
提问者评价
额哈哈哈哈~我主要拿来玩游戏啊玩游戏~别人装好的机子给我看的配置 虽然看不懂但是不明觉厉。怒点赞。
其他类似问题
按默认排序
其他7条回答
还行,高端配置,但是CPU性能偏低AMD推土机系列核心数是多但是倡姑娩蛔榈合民头漠莱就性能来说不高,不过对得起哪个价格了
显卡都上7950了,上毛的推土机啊,I5都能完爆了,I7走起啊,预算不够也是E3啊,然后电源你没说哦。
cpu和显卡非常强悍,玩现在的大型游戏基本上没有任何压力了,
这个配件性价比还可以,内存可以加到8G,不过以后内存价格平点再加也可以,另提醒一下,微星主板较多假货,硬件要保证正品才能保证性能.
配置怎么了,相当的高端啊。应该能玩各种大型游戏。
如果打算自己使用的电脑万万不可选择推土机甚至打桩机平台 !从它们推出那一天开始即广遭诟病. . .性能太次 ,运行效能低下 ,功耗高企 ,磁盘性能内存性能垃圾. . .
这配置不错呀
电脑配置的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 wow怎么拖动对话框 的文章

 

随机推荐