// btn_zhanCommentNo.setVisibility(View.VISIBLE);
// }
// tvQianDao = (TextView) findViewById(R.id.tv_qiandao);
// tvQianDao.setOnClickListener(this);
// tv_chenggong = (TextView) findViewById(R.id.tv_chenggong);
// tv_chenggong.setOnClickListener(this);
// tv_shibai = (TextView) findViewById(R.id.tv_shibai);
// tv_shibai.setOnClickListener(this);
// eteCityTime();
}
public static void reFreshUi() {
@ -471,13 +457,6 @@ public class NewZhanDetailsActivity extends AppCompatActivity implements View.On
}
// String json=JsonUtils.getKeyResult(postSta_url, "resultValue");
// String acNum=JsonUtils.getKeyResult(json, "acNum");
// String dcNum=JsonUtils.getKeyResult(json, "dcNum");
// String acableNum=JsonUtils.getKeyResult(json, "acableNum");
// String dcableNum=JsonUtils.getKeyResult(json, "dcableNum");
// System.out.println(acNum+"= acNum "+dcNum+"= dcNum "+acableNum+"= acableNum "+dcableNum+"= dcableNum ");
/**
* 重新设置viewPager高度
* <p/>
@ -562,14 +541,10 @@ public class NewZhanDetailsActivity extends AppCompatActivity implements View.On
break;
case R.id.iv_back:
isCollect(zhanname);
// Log.e("!!!", collect.getResources().toString());
if (collect.getTag().equals(R.drawable.icon_detail_collected)) {
setResult(0);
// startActivity(new Intent(getApplication(),MyCollectActivity.class));
finish();
} else {
// Intent intent = new Intent();
// intent.putExtra("data",zhan.getZhan_name());
setResult(1);
finish();
}
@ -865,18 +840,8 @@ public class NewZhanDetailsActivity extends AppCompatActivity implements View.On
break;
case R.id.iv_collect:
// SQLiteDatabase db = Connector.getDatabase();
// SharedPreferences settings = getSharedPreferences("PREFS_COLLECT", Activity.MODE_PRIVATE);
// SharedPreferences.Editor editor = settings.edit();
// editor.putInt("COLLECT_COUNT", ++mCreatedCount);
//
// editor.putString("zhan_name",name.getText().toString());
// editor.commit();
if (zhanname != null && !zhanname.equals("")) {
if (mapp.sph.getInt(zhanname) == 0) {
// Log.d("!@!",zhan.getId()+"");
// Log.d("!@!",zhan.getId()+"");
if (mapp.sph.removeData(zhanname)) {
collect.setImageResource(R.drawable.icon_clect1124);
collect.setTag(R.drawable.icon_clect1124);
@ -886,9 +851,7 @@ public class NewZhanDetailsActivity extends AppCompatActivity implements View.On
db.del(zhan_id);
Toast.makeText(this, "取消收藏", Toast.LENGTH_SHORT).show();
MobclickAgent.onEvent(getApplicationContext(), "0206", new HashMap<String, String>().put("type", "取消收藏"));
}/*else{
Toast.makeText(this,"取消收藏失败"+zhan.getId(),Toast.LENGTH_LONG).show();
}*/
}
} else {
if (mapp.sph.putInt(zhanname, 0)) {
collect.setImageResource(R.drawable.icon_detail_collected);
@ -906,10 +869,7 @@ public class NewZhanDetailsActivity extends AppCompatActivity implements View.On
db.insert(values);
Toast.makeText(this, "收藏成功", Toast.LENGTH_SHORT).show();
MobclickAgent.onEvent(getApplicationContext(), "0206", new HashMap<String, String>().put("type", "收藏"));
}/*else{
Toast.makeText(this,"收藏失败"+zhan.getId(),Toast.LENGTH_LONG).show();
}*/
}
}
} else {
Toast.makeText(this, "请稍后,正在加载数据", Toast.LENGTH_SHORT).show();
|
||
| 9 | 9 |
|
| 10 | 10 |
|
| 11 | 11 |
|
| 12 |
|
|
| 13 | 12 |
|
| 14 | 13 |
|
| 15 | 14 |
|
|
||
| 22 | 21 |
|
| 23 | 22 |
|
| 24 | 23 |
|
| 25 |
|
|
| 26 | 24 |
|
| 27 | 25 |
|
| 28 | 26 |
|
|
||
| 32 | 30 |
|
| 33 | 31 |
|
| 34 | 32 |
|
| 35 |
|
|
| 36 | 33 |
|
| 37 | 34 |
|
| 38 | 35 |
|
| 39 | 36 |
|
| 40 |
|
|
| 41 | 37 |
|
| 42 | 38 |
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 | 39 |
|
| 51 | 40 |
|
| 52 | 41 |
|
|
||
| 56 | 45 |
|
| 57 | 46 |
|
| 58 | 47 |
|
| 59 |
|
|
| 60 | 48 |
|
| 61 | 49 |
|
| 62 | 50 |
|
|
||
| 85 | 73 |
|
| 86 | 74 |
|
| 87 | 75 |
|
| 88 |
|
|
| 89 | 76 |
|
| 90 |
|
|
| 91 | 77 |
|
| 92 |
|
|
| 93 |
|
|
| 94 | 78 |
|
| 95 | 79 |
|
| 96 | 80 |
|
|
||
| 107 | 91 |
|
| 108 | 92 |
|
| 109 | 93 |
|
| 110 |
|
|
| 111 | 94 |
|
| 112 | 95 |
|
| 113 | 96 |
|
|
||
| 644 | 627 |
|
| 645 | 628 |
|
| 646 | 629 |
|
| 647 |
|
|
| 630 |
|
|
| 648 | 631 |
|
| 649 | 632 |
|
| 650 | 633 |
|
|
||
| 816 | 799 |
|
| 817 | 800 |
|
| 818 | 801 |
|
| 819 |
|
|
| 802 |
|
|
| 820 | 803 |
|
| 821 | 804 |
|
| 822 | 805 |
|
|
||
| 167 | 167 |
|
| 168 | 168 |
|
| 169 | 169 |
|
| 170 |
|
|
| 171 |
|
|
| 170 | 172 |
|
| 171 |
|
|
| 172 |
|
|
| 173 |
|
|
| 174 | 173 |
|
| 175 |
|
|
| 176 |
|
|
| 177 |
|
|
| 174 |
|
|
| 175 |
|
|
| 176 |
|
|
| 177 |
|
|
| 178 |
|
|
| 179 |
|
|
| 180 |
|
|
| 181 |
|
|
| 182 |
|
|
| 183 |
|
|
| 184 |
|
|
| 178 | 185 |
|
| 179 | 186 |
|
| 180 | 187 |
|
|
||
| 189 | 196 |
|
| 190 | 197 |
|
| 191 | 198 |
|
| 199 |
|
|
| 200 |
|
|
| 192 | 201 |
|
| 193 | 202 |
|
| 194 | 203 |
|
|
||
| 434 | 434 |
|
| 435 | 435 |
|
| 436 | 436 |
|
| 437 |
|
|
| 437 | 438 |
|
| 438 | 439 |
|
| 439 | 440 |
|
|
||
| 444 | 445 |
|
| 445 | 446 |
|
| 446 | 447 |
|
| 447 |
|
|
| 448 |
|
|
| 449 |
|
|
| 450 |
|
|
| 451 |
|
|
| 452 |
|
|
| 453 |
|
|
| 448 |
|
|
| 449 |
|
|
| 450 |
|
|
| 451 |
|
|
| 452 |
|
|
| 453 |
|
|
| 454 | 454 |
|
| 455 |
|
|
| 456 |
|
|
| 457 |
|
|
| 458 |
|
|
| 455 | 459 |
|
| 456 | 460 |
|
| 457 | 461 |
|
|
||
| 466 | 470 |
|
| 467 | 471 |
|
| 468 | 472 |
|
| 473 |
|
|
| 474 |
|
|
| 469 | 475 |
|
| 470 | 476 |
|
| 471 | 477 |
|
|
||
| 101 | 101 |
|
| 102 | 102 |
|
| 103 | 103 |
|
| 104 |
|
|
| 105 |
|
|
| 104 |
|
|
| 105 |
|
|
| 106 | 106 |
|
| 107 | 107 |
|
| 108 | 108 |
|
|
||
| 36 | 36 |
|
| 37 | 37 |
|
| 38 | 38 |
|
| 39 |
|
|
| 39 | 40 |
|
| 40 | 41 |
|
| 41 | 42 |
|
|
||
| 1242 | 1243 |
|
| 1243 | 1244 |
|
| 1244 | 1245 |
|
| 1245 |
|
|
| 1246 |
|
|
| 1246 | 1247 |
|
| 1247 | 1248 |
|
| 1248 | 1249 |
|
|
||
| 1260 | 1261 |
|
| 1261 | 1262 |
|
| 1262 | 1263 |
|
| 1263 |
|
|
| 1264 |
|
|
| 1265 |
|
|
| 1266 |
|
|
| 1267 |
|
|
| 1268 |
|
|
| 1269 |
|
|
| 1270 |
|
|
| 1271 |
|
|
| 1264 |
|
|
| 1272 | 1265 |
|
| 1273 | 1266 |
|
| 1274 | 1267 |
|
|
||
| 1384 | 1377 |
|
| 1385 | 1378 |
|
| 1386 | 1379 |
|
| 1387 |
|
|
| 1388 |
|
|
| 1389 |
|
|
| 1390 | 1380 |
|
| 1391 | 1381 |
|
| 1392 | 1382 |
|
| 1393 | 1383 |
|
| 1384 |
|
|
| 1385 |
|
|
| 1386 |
|
|
| 1394 | 1387 |
|
| 1395 |
|
|
| 1396 |
|
|
| 1397 |
|
|
| 1398 | 1388 |
|
| 1399 |
|
|
| 1400 |
|
|
| 1401 |
|
|
| 1389 |
|
|
| 1390 |
|
|
| 1391 |
|
|
| 1392 |
|
|
| 1393 |
|
|
| 1394 |
|
|
| 1395 |
|
|
| 1396 |
|
|
| 1397 |
|
|
| 1398 |
|
|
| 1399 |
|
|
| 1400 |
|
|
| 1402 | 1401 |
|
| 1403 | 1402 |
|
| 1404 | 1403 |
|
|
||
| 17 | 17 |
|
| 18 | 18 |
|
| 19 | 19 |
|
| 20 |
|
|
| 20 | 21 |
|
| 21 | 22 |
|
| 22 | 23 |
|
|
||
| 112 | 113 |
|
| 113 | 114 |
|
| 114 | 115 |
|
| 115 |
|
|
| 116 |
|
|
| 117 |
|
|
| 118 |
|
|
| 119 |
|
|
| 116 | 120 |
|
| 117 | 121 |
|
| 118 | 122 |
|
|
||
| 22 | 22 |
|
| 23 | 23 |
|
| 24 | 24 |
|
| 25 |
|
|
| 25 | 26 |
|
| 26 | 27 |
|
| 27 | 28 |
|
|
||
| 227 | 228 |
|
| 228 | 229 |
|
| 229 | 230 |
|
| 230 |
|
|
| 231 |
|
|
| 231 | 232 |
|
| 232 | 233 |
|
| 233 | 234 |
|
|
||
| 255 | 256 |
|
| 256 | 257 |
|
| 257 | 258 |
|
| 258 |
|
|
| 259 |
|
|
| 260 |
|
|
| 261 |
|
|
| 262 |
|
|
| 263 |
|
|
| 264 |
|
|
| 265 |
|
|
| 266 |
|
|
| 259 |
|
|
| 267 | 260 |
|
| 268 | 261 |
|
| 269 | 262 |
|
|
||
| 295 | 288 |
|
| 296 | 289 |
|
| 297 | 290 |
|
| 298 |
|
|
| 291 |
|
|
| 299 | 292 |
|
| 300 | 293 |
|
| 301 | 294 |
|
|
||
| 314 | 307 |
|
| 315 | 308 |
|
| 316 | 309 |
|
| 317 |
|
|
| 318 |
|
|
| 319 |
|
|
| 320 |
|
|
| 321 |
|
|
| 322 |
|
|
| 323 |
|
|
| 324 |
|
|
| 325 |
|
|
| 326 |
|
|
| 310 |
|
|
| 327 | 311 |
|
| 328 | 312 |
|
| 329 | 313 |
|
|
||
| 345 | 329 |
|
| 346 | 330 |
|
| 347 | 331 |
|
| 348 |
|
|
| 332 |
|
|
| 349 | 333 |
|
| 350 | 334 |
|
| 351 | 335 |
|
|
||
| 374 | 358 |
|
| 375 | 359 |
|
| 376 | 360 |
|
| 377 |
|
|
| 378 |
|
|
| 379 |
|
|
| 380 |
|
|
| 381 |
|
|
| 382 |
|
|
| 383 |
|
|
| 384 |
|
|
| 385 |
|
|
| 361 |
|
|
| 386 | 362 |
|
| 387 | 363 |
|
| 388 | 364 |
|