Browse Source

用户协议与隐私政策

huyuguo 5 years ago
parent
commit
36c7fba9bb

+ 6 - 0
app/src/main/java/com/electric/chargingpile/activity/AboutActivity.java

62
        getVersion();
62
        getVersion();
63
    }
63
    }
64

64

65
    public void onPrivacyView(View view) {
66
        Intent intent = new Intent(getApplication(), IntegralDescriptionActivity.class);
67
        intent.putExtra("url", "http://evcharge.cc/pc/agreement.html");
68
        startActivity(intent);
69
    }
70

65
    public void getVersion() {
71
    public void getVersion() {
66
        try {
72
        try {
67
            PackageManager manager = getApplication().getPackageManager();
73
            PackageManager manager = getApplication().getPackageManager();

+ 11 - 0
app/src/main/res/layout/activity_about.xml

101

101

102

102

103
        <TextView
103
        <TextView
104
            android:text="《用户协议和隐私政策》"
105
            android:layout_width="wrap_content"
106
            android:layout_above="@+id/android"
107
            android:textSize="15sp"
108
            android:textColor="#1e90ff"
109
            android:layout_centerHorizontal="true"
110
            android:onClick="onPrivacyView"
111
            android:clickable="true"
112
            android:layout_marginBottom="10dp"
113
            android:layout_height="wrap_content"/>
114
        <TextView
104
            android:id="@+id/android"
115
            android:id="@+id/android"
105
            android:layout_width="wrap_content"
116
            android:layout_width="wrap_content"
106
            android:layout_height="wrap_content"
117
            android:layout_height="wrap_content"