Browse Source

开发完成

huyuguo 3 years ago
parent
commit
381b82b3d2

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

110
            @Override
110
            @Override
111
            public void onClick(View v) {
111
            public void onClick(View v) {
112
                Intent i = new Intent(getApplication(), MyWebViewActivity.class);
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
                startActivity(i);
114
                startActivity(i);
115
            }
115
            }
116
        });
116
        });

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

57
import com.electric.chargingpile.util.NetUtil;
57
import com.electric.chargingpile.util.NetUtil;
58
import com.electric.chargingpile.util.OkHttpUtil;
58
import com.electric.chargingpile.util.OkHttpUtil;
59
import com.electric.chargingpile.util.PicassoUtil;
59
import com.electric.chargingpile.util.PicassoUtil;
60
import com.electric.chargingpile.util.ScreenUtils;
60
import com.electric.chargingpile.util.Util;
61
import com.electric.chargingpile.util.Util;
61
import com.electric.chargingpile.view.AlertDialogTwo;
62
import com.electric.chargingpile.view.AlertDialogTwo;
62
import com.electric.chargingpile.view.ObservableScrollView;
63
import com.electric.chargingpile.view.ObservableScrollView;
174
     * See https://g.co/AppIndexing/AndroidStudio for more information.
175
     * See https://g.co/AppIndexing/AndroidStudio for more information.
175
     */
176
     */
176
    private GoogleApiClient client;
177
    private GoogleApiClient client;
177
    private ImageView chat_share_bar;
178
    private ImageView car_friends_group;
178
    private TextView car_owner_certificate_label;
179
    private TextView car_owner_certificate_label;
179
180
180
    //把一个url的网络图片变成一个本地的BitMap
181
    //把一个url的网络图片变成一个本地的BitMap
329
        rl_offline_upload = (RelativeLayout) findViewById(R.id.rl_offline_upload);
330
        rl_offline_upload = (RelativeLayout) findViewById(R.id.rl_offline_upload);
330
        rl_offline_upload.setOnClickListener(this);
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
        rl_car_owner_certificate = findViewById(R.id.rl_car_owner_certificate);
341
        rl_car_owner_certificate = findViewById(R.id.rl_car_owner_certificate);
336
        rl_car_owner_certificate.setOnClickListener(this);
342
        rl_car_owner_certificate.setOnClickListener(this);
882
                MobclickAgent.onEvent(getApplicationContext(), "0816");
888
                MobclickAgent.onEvent(getApplicationContext(), "0816");
883
                break;
889
                break;
884
890
885
            case R.id.chat_share_bar: // 聊聊入口 -> 更新为加入车友群入口(h5)
891
            case R.id.car_friends_group: // 聊聊入口 -> 更新为加入车友群入口(h5)
886
                MobclickAgent.onEvent(getApplicationContext(), "1123");
892
                MobclickAgent.onEvent(getApplicationContext(), "1123");
887
//                Intent i = new Intent(getApplicationContext(), ChatActivity.class);//聊聊页面
893
//                Intent i = new Intent(getApplicationContext(), ChatActivity.class);//聊聊页面
888
//                i.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
894
//                i.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
889
//                startActivity(i);
895
//                startActivity(i);
890
                Intent i = new Intent(getApplication(), MyWebViewActivity.class);
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
                startActivity(i);
898
                startActivity(i);
893
                break;
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
                        android:layout_width="match_parent"
906
                        android:layout_width="match_parent"
907
                        android:layout_height="10dp"
907
                        android:layout_height="10dp"
908
                        android:background="@color/activity_bgcolor"/>
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
                        android:layout_width="match_parent"
911
                        android:layout_width="match_parent"
912
                        android:layout_height="wrap_content" />
912
                        android:layout_height="wrap_content" />
913
                    <View
913
                    <View