code nl-56 ol-56"> 56
        android:visibility="visible"
57
        android:id="@+id/noDataText"
58
        android:layout_width="wrap_content"
59
        android:layout_height="wrap_content"
60
        android:text="没有相关话题"
61
        android:textColor="#ff7b7b7b"
62
        android:textSize="14sp"
63
        app:layout_constraintBottom_toBottomOf="parent"
64
        app:layout_constraintEnd_toEndOf="parent"
65
        app:layout_constraintStart_toStartOf="parent"
66
        app:layout_constraintTop_toBottomOf="@+id/rl_title" />
67
</androidx.constraintlayout.widget.ConstraintLayout>

+ 17 - 2
app/src/main/res/layout/activity_zhan_comment.xml

@ -36,12 +36,12 @@
36 36
        android:background="@color/title_background">
37 37
38 38
        <TextView
39
            android:drawablePadding="5dp"
40
            android:drawableEnd="@drawable/ic_comm_hint"
41 39
            android:id="@+id/tv_zhan_name"
42 40
            android:layout_width="wrap_content"
43 41
            android:layout_height="wrap_content"
44 42
            android:layout_centerInParent="true"
43
            android:drawableEnd="@drawable/ic_comm_hint"
44
            android:drawablePadding="5dp"
45 45
            android:text="发表评论"
46 46
            android:textColor="#222222"
47 47
            android:textSize="16sp" />
@ -198,6 +198,20 @@
198 198
                android:textSize="13sp"
199 199
                android:visibility="visible" />
200 200
201
202
            <TextView
203
                android:layout_marginBottom="13dp"
204
                android:id="@+id/topicText"
205
                android:background="@drawable/bg_topic_tab"
206
                android:layout_width="66dp"
207
                android:layout_height="28dp"
208
                android:layout_marginStart="15dp"
209
                android:gravity="center"
210
                android:text="╋  话题"
211
                android:textColor="#ff0e0e0e"
212
                android:textSize="13sp" />
213
214
201 215
            <GridView
202 216
                android:id="@+id/noScrollgridview"
203 217
                android:layout_width="match_parent"
@ -272,6 +286,7 @@
272 286
                    android:textColor="@color/white"
273 287
                    android:textSize="19sp" />
274 288
            </LinearLayout>
289
275 290
            <TextView
276 291
                android:layout_width="wrap_content"
277 292
                android:layout_height="wrap_content"

+ 58 - 0
app/src/main/res/layout/layout_item_topic.xml

@ -0,0 +1,58 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    xmlns:app="http://schemas.android.com/apk/res-auto"
5
    xmlns:tools="http://schemas.android.com/tools"
6
    android:padding="12dp"
7
    android:layout_height="wrap_content">
8
    <TextView
9
        app:layout_constraintTop_toTopOf="parent"
10
        app:layout_constraintStart_toStartOf="parent"
11
        android:id="@+id/topicImg"
12
        android:layout_width="wrap_content"
13
        android:layout_height="wrap_content"
14
        android:text="#"
15
        android:textColor="#3EC34C"
16
        android:textSize="13sp"
17
        />
18
19
    <TextView
20
        android:textStyle="bold"
21
        android:ellipsize="end"
22
        android:maxLines="1"
23
        android:layout_width="0dp"
24
        android:layout_height="wrap_content"
25
        android:layout_marginStart="4dp"
26
        tools:text="首届电动车主代表海选"
27
        android:textColor="#ff0e0e0e"
28
        android:textSize="14sp"
29
        app:layout_constraintBottom_toBottomOf="@+id/topicImg"
30
        android:id="@+id/title"
31
        app:layout_constraintEnd_toEndOf="parent"
32
        app:layout_constraintStart_toEndOf="@+id/topicImg"
33
        app:layout_constraintTop_toTopOf="@+id/topicImg" />
34
    <TextView
35
        android:id="@+id/participateText"
36
        android:layout_marginTop="8dp"
37
        app:layout_constraintStart_toStartOf="parent"
38
        app:layout_constraintTop_toBottomOf="@+id/topicImg"
39
        android:layout_width="wrap_content"
40
        android:layout_height="wrap_content"
41
        tools:text="1492车主参与"
42
        android:textColor="#ff7b7b7b"
43
        android:textSize="12sp"
44
        />
45
    <TextView
46
        android:id="@+id/onlookersText"
47
        android:layout_marginStart="16dp"
48
        app:layout_constraintBottom_toBottomOf="@+id/participateText"
49
        app:layout_constraintTop_toTopOf="@+id/participateText"
50
        app:layout_constraintStart_toEndOf="@+id/participateText"
51
        android:layout_width="wrap_content"
52
        android:layout_height="wrap_content"
53
        tools:text="1492车主围观"
54
        android:textColor="#ff7b7b7b"
55
        android:textSize="12sp"
56
        />
57
58
</androidx.constraintlayout.widget.ConstraintLayout>

关于我们 · 3e8e0a92ee - Gogs: Go Git Service
Parcourir la Source

关于我们

1.联系我们方式修改为公众号
2.联系我们公众号复制到剪切板功能
huyuguo 7 ans auparavant
Parent
commit
3e8e0a92ee

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

@ -2,6 +2,8 @@ package com.electric.chargingpile.activity;
2 2

3 3
import android.Manifest;
4 4
import android.app.Activity;
5
import android.content.ClipData;
6
import android.content.ClipboardManager;
5 7
import android.content.Context;
6 8
import android.content.Intent;
7 9
import android.content.pm.PackageInfo;
@ -20,6 +22,7 @@ import android.widget.Toast;
20 22

21 23
import com.electric.chargingpile.R;
22 24
import com.electric.chargingpile.util.BarColorUtil;
25
import com.electric.chargingpile.util.ToastUtil;
23 26
import com.umeng.analytics.MobclickAgent;
24 27

25 28
import java.io.File;
@ -54,6 +57,7 @@ public class AboutActivity extends Activity implements OnClickListener, EasyPerm
54 57
        icon_scan.setOnClickListener(this);
55 58
        tv_call = (TextView) findViewById(R.id.tv_call);
56 59
        tv_call.setOnClickListener(this);
60
        findViewById(R.id.tv_2).setOnClickListener(this);
57 61
        android = (TextView) findViewById(R.id.android);
58 62
        getVersion();
59 63
    }
@ -73,12 +77,22 @@ public class AboutActivity extends Activity implements OnClickListener, EasyPerm
73 77

74 78
    @Override
75 79
    public void onClick(View v) {
80
        ClipboardManager cm = (ClipboardManager)getSystemService(Context.CLIPBOARD_SERVICE);
76 81
        switch (v.getId()) {
77 82
            case R.id.iv_back:
78 83
                finish();
79 84
                break;
80 85
            case R.id.tv_call:
81
                telTask();
86
//                telTask();
87
                ClipData cdzData = ClipData.newPlainText("Label", "chongdianzhuang2");
88
                cm.setPrimaryClip(cdzData);
89

90
                ToastUtil.showToast(getApplicationContext(), "微信号复制成功", Toast.LENGTH_SHORT);
91
                break;
92
            case R.id.tv_2:
93
                ToastUtil.showToast(getApplicationContext(), "微信号复制成功", Toast.LENGTH_SHORT);
94
                ClipData data = ClipData.newPlainText("Label", "firstev");
95
                cm.setPrimaryClip(data);
82 96
                break;
83 97

84 98
            case R.id.icon_scan:

+ 7 - 3
app/src/main/res/layout/activity_about.xml

@ -69,16 +69,20 @@
69 69
            android:layout_height="wrap_content"
70 70
            android:layout_below="@+id/tv_1"
71 71
            android:layout_centerHorizontal="true"
72
            android:text="加入电动车主QQ群:450781871"
72
            android:text="加入电动车主微信群客服号:firstev"
73
            android:textIsSelectable="true"
73 74
            android:textColor="@color/ui_65"
74 75
            android:layout_marginTop="28px"
75 76
            android:textSize="15sp"/>
76 77

77 78
        <TextView
78 79
            android:id="@+id/tv_call"
79
            android:layout_width="697px"
80
            android:textIsSelectable="true"
81
            android:layout_width="wrap_content"
82
            android:paddingLeft="15dp"
83
            android:paddingRight="15dp"
80 84
            android:layout_height="127px"
81
            android:text="呼叫客服:400-881-0405"
85
            android:text="充电桩客服微信号:chongdianzhuang2"
82 86
            android:textColor="@color/ui_68"
83 87
            android:textSize="16sp"
84 88
            android:background="@drawable/textviewhuiline_style"