Ver Código Fonte

开发完成

huyuguo 3 anos atrás
pai
commit
381b82b3d2

+ 1 - 1
app/src/main/java/com/electric/chargingpile/activity/CarOwnerCertificateListActivity.java

@ -110,7 +110,7 @@ public class CarOwnerCertificateListActivity extends AppCompatActivity {
110 110
            @Override
111 111
            public void onClick(View v) {
112 112
                Intent i = new Intent(getApplication(), MyWebViewActivity.class);
113
                i.putExtra("url", "https://www.baidu.com");
113
                i.putExtra("url", "https://cdz.evcharge.cc/zhannew/share/share-2.html");
114 114
                startActivity(i);
115 115
            }
116 116
        });

+ 11 - 5
app/src/main/java/com/electric/chargingpile/activity/UserCenterActivity.java

@ -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

BIN
app/src/main/res/drawable-hdpi/car_friends_group.png


BIN
app/src/main/res/drawable-mdpi/car_friends_group.png


BIN
app/src/main/res/drawable-xhdpi/car_friends_group.png


BIN
app/src/main/res/drawable-xxhdpi/car_friends_group.png


BIN
app/src/main/res/drawable-xxxhdpi/car_friends_group.png


+ 2 - 2
app/src/main/res/layout/activity_user_center.xml

@ -906,8 +906,8 @@
906 906
                        android:layout_width="match_parent"
907 907
                        android:layout_height="10dp"
908 908
                        android:background="@color/activity_bgcolor"/>
909
                    <ImageView android:id="@+id/chat_share_bar"
910
                        android:src="@drawable/chat_share_bar"
909
                    <ImageView android:id="@+id/car_friends_group"
910
                        android:src="@drawable/car_friends_group"
911 911
                        android:layout_width="match_parent"
912 912
                        android:layout_height="wrap_content" />
913 913
                    <View