|
@ -57,6 +57,7 @@ import com.electric.chargingpile.util.LoadingDialog;
|
57
|
57
|
import com.electric.chargingpile.util.NetUtil;
|
58
|
58
|
import com.electric.chargingpile.util.OkHttpUtil;
|
59
|
59
|
import com.electric.chargingpile.util.PicassoUtil;
|
|
60
|
import com.electric.chargingpile.util.ScreenUtils;
|
60
|
61
|
import com.electric.chargingpile.util.Util;
|
61
|
62
|
import com.electric.chargingpile.view.AlertDialogTwo;
|
62
|
63
|
import com.electric.chargingpile.view.ObservableScrollView;
|
|
@ -174,7 +175,7 @@ public class UserCenterActivity extends Activity implements View.OnClickListener
|
174
|
175
|
* See https://g.co/AppIndexing/AndroidStudio for more information.
|
175
|
176
|
*/
|
176
|
177
|
private GoogleApiClient client;
|
177
|
|
private ImageView chat_share_bar;
|
|
178
|
private ImageView car_friends_group;
|
178
|
179
|
private TextView car_owner_certificate_label;
|
179
|
180
|
|
180
|
181
|
//把一个url的网络图片变成一个本地的BitMap
|
|
@ -329,8 +330,13 @@ public class UserCenterActivity extends Activity implements View.OnClickListener
|
329
|
330
|
rl_offline_upload = (RelativeLayout) findViewById(R.id.rl_offline_upload);
|
330
|
331
|
rl_offline_upload.setOnClickListener(this);
|
331
|
332
|
|
332
|
|
chat_share_bar = findViewById(R.id.chat_share_bar);
|
333
|
|
chat_share_bar.setOnClickListener(this);
|
|
333
|
car_friends_group = findViewById(R.id.car_friends_group);
|
|
334
|
car_friends_group.setOnClickListener(this);
|
|
335
|
|
|
336
|
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams)car_friends_group.getLayoutParams();
|
|
337
|
int screenWidth = ScreenUtils.getScreenWidth(this);
|
|
338
|
layoutParams.height = (int)(screenWidth * 75.0/375.0);
|
|
339
|
car_friends_group.setLayoutParams(layoutParams);
|
334
|
340
|
|
335
|
341
|
rl_car_owner_certificate = findViewById(R.id.rl_car_owner_certificate);
|
336
|
342
|
rl_car_owner_certificate.setOnClickListener(this);
|
|
@ -882,13 +888,13 @@ public class UserCenterActivity extends Activity implements View.OnClickListener
|
882
|
888
|
MobclickAgent.onEvent(getApplicationContext(), "0816");
|
883
|
889
|
break;
|
884
|
890
|
|
885
|
|
case R.id.chat_share_bar: // 聊聊入口 -> 更新为加入车友群入口(h5)
|
|
891
|
case R.id.car_friends_group: // 聊聊入口 -> 更新为加入车友群入口(h5)
|
886
|
892
|
MobclickAgent.onEvent(getApplicationContext(), "1123");
|
887
|
893
|
// Intent i = new Intent(getApplicationContext(), ChatActivity.class);//聊聊页面
|
888
|
894
|
// i.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
|
889
|
895
|
// startActivity(i);
|
890
|
896
|
Intent i = new Intent(getApplication(), MyWebViewActivity.class);
|
891
|
|
i.putExtra("url", "https://www.baidu.com");
|
|
897
|
i.putExtra("url", "https://cdz.evcharge.cc/zhannew/share/share-2.html");
|
892
|
898
|
startActivity(i);
|
893
|
899
|
break;
|
894
|
900
|
|