Commit 62790a9f authored by 周文华's avatar 周文华

【新增】新增dialog弹窗样式与文案

parent a3d94b8d
......@@ -94,6 +94,7 @@ object GlobalConfig {
const val KEY_GOOGLE_ADVERTISER_ID = "key_google_advertiser_id"
const val KEY_DEVICE_NAME = "key_device_name"
const val KEY_REFERRER = "referrer"
const val KEY_MALWARE_SCAN = "malware_scan_agree"
const val ID_CLEAN_JUNK = 12000
const val ID_WHATSAPP = 12010
......@@ -121,4 +122,8 @@ object GlobalConfig {
inline var isInit
get() = SPUtils.getInstance().getBoolean(KEY_INIT)
set(value) = SPUtils.getInstance().putBoolean(KEY_INIT, value)
inline var isMalwareAgree
get() = SPUtils.getInstance().getBoolean(KEY_MALWARE_SCAN)
set(value) = SPUtils.getInstance().putBoolean(KEY_MALWARE_SCAN, value)
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#5ac8ff"
android:endColor="#0578fc"
android:angle="0"
android:centerX="0.5"
android:centerY="0.5" />
<corners android:radius="53dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#86bffd"
android:endColor="#aae1ff"
android:angle="0"
android:centerX="0.5"
android:centerY="0.5" />
<corners android:radius="53dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/white" />
<corners android:radius="24dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/white_background_24"
android:paddingBottom="20dp">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="20dp"
android:includeFontPadding="false"
android:lineSpacingExtra="4dp"
android:text="@string/kind_tips"
android:textAlignment="center"
android:textColor="#1a1a1a"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ScrollView
android:id="@+id/sv"
android:layout_width="match_parent"
android:layout_height="500dp"
app:layout_constraintTop_toBottomOf="@id/tv_title">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="16dp"
android:includeFontPadding="false"
android:lineSpacingExtra="4dp"
android:text="Collect installed application information:"
android:textColor="#1a1a1a"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_content2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="4dp"
android:includeFontPadding="false"
android:lineSpacingExtra="4dp"
android:text="When you use the VlRUS scanning function, we will collect information about the applications you install, including: name of the installed application, application package name, application version code, application version name, MD5 hash and signature information, installation path and device File information on storage."
android:textColor="#666666"
android:textSize="13sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_content" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_content3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="16dp"
android:includeFontPadding="false"
android:lineSpacingExtra="4dp"
android:text="Using and transferring installed application information:"
android:textColor="#1a1a1a"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_content2" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_content4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="4dp"
android:includeFontPadding="false"
android:lineSpacingExtra="4dp"
android:text="Virus scanning functionality uses Trustlook SDK. When you use the virus scanning function, we will upload the collected installed application information to the Trustlook third-party virus database for scanning, so as to promptly discover possible security risks and provide better protection. Trustlook SDK provides security services, which Application collections are analyzed, applying static and behavioral analysis to give application risk reports."
android:textColor="#666666"
android:textSize="13sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_content3" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_content5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="16dp"
android:includeFontPadding="false"
android:lineSpacingExtra="4dp"
android:text="Installed application information access and sharing statement:"
android:textColor="#1a1a1a"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_content4" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_content6"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="4dp"
android:includeFontPadding="false"
android:lineSpacingExtra="4dp"
android:text="We take the confidentiality of your information very seriously, and we and Trustlook SDK will not sell, license, transfer or disclose this information unless authorized by you."
android:textColor="#666666"
android:textSize="13sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_content5" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_content7"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="16dp"
android:includeFontPadding="false"
android:lineSpacingExtra="4dp"
android:text="View information collection instructions:"
android:textColor="#1a1a1a"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_content6" />
<TextView
android:id="@+id/tv_content8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="4dp"
android:includeFontPadding="false"
android:lineSpacingExtra="4dp"
android:text="@string/trustlook_privacy_policy"
android:textColor="#3f92ff"
android:textSize="13sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_content7" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_content9"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="16dp"
android:includeFontPadding="false"
android:lineSpacingExtra="4dp"
android:text="Our privacy policy:"
android:textColor="#1a1a1a"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_content8" />
<TextView
android:id="@+id/tv_content10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="4dp"
android:includeFontPadding="false"
android:lineSpacingExtra="4dp"
android:text="https://sites.google.com/view/fclean/fcalener"
android:textColor="#3f92ff"
android:textSize="13sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_content9" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_cancel"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="28dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="4dp"
android:background="@drawable/gradient_not_clickable"
android:paddingVertical="10dp"
android:text="Reject"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintEnd_toStartOf="@id/tv_sure"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/sv" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_sure"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:background="@drawable/gradient"
android:paddingVertical="10dp"
android:text="Agree"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/tv_cancel" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -39,6 +39,10 @@
<string name="powered_by_trustlook">Powered by Trustlook</string>
<string name="scanning">Scanning…</string>
<string name="malware_recommended">It is recommended to turn on the network connection for more accurate results</string>
<string name="kind_tips">Kind Tips</string>
<string name="trustlook_privacy_policy">https://www.trustlook.com/privacy-policy</string>
<string name="no_network_try_again">No network, try again connect to network</string>
<string name="notification_malware_1">Your device may be at risk. Tap to scan and stay safe.</string>
<string name="notification_malware_2">Your device might be at risk. Tap to scan and secure it now.</string>
<string name="notification_malware_3">Your device may have potential threats. Tap to scan and eliminate them.</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment