Commit 4cadf54f authored by wanglei's avatar wanglei

储存权限删除

parent 9e72fc89
...@@ -100,10 +100,6 @@ ...@@ -100,10 +100,6 @@
android:screenOrientation="portrait" android:screenOrientation="portrait"
tools:ignore="DiscouragedApi,LockedOrientationActivity" /> tools:ignore="DiscouragedApi,LockedOrientationActivity" />
<activity
android:name=".activity.PrivacyWebActivity"
android:screenOrientation="portrait"
tools:ignore="DiscouragedApi,LockedOrientationActivity" />
<meta-data <meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID" android:name="com.google.android.gms.ads.APPLICATION_ID"
...@@ -118,13 +114,7 @@ ...@@ -118,13 +114,7 @@
android:name="com.google.android.gms.ads.flag.NATIVE_AD_DEBUGGER_ENABLED" android:name="com.google.android.gms.ads.flag.NATIVE_AD_DEBUGGER_ENABLED"
android:value="false" /> android:value="false" />
<service
android:name=".display.NotificationService"
android:permission="android.permission.FOREGROUND_SERVICE" />
<service
android:name=".service.FlashlightService"
android:exported="true"
tools:ignore="ExportedService" />
<activity <activity
android:name=".activity.photocompress.photo.StartCompressionPhotoActivity" android:name=".activity.photocompress.photo.StartCompressionPhotoActivity"
...@@ -147,14 +137,6 @@ ...@@ -147,14 +137,6 @@
android:screenOrientation="portrait" android:screenOrientation="portrait"
tools:ignore="DiscouragedApi,LockedOrientationActivity" /> tools:ignore="DiscouragedApi,LockedOrientationActivity" />
<receiver
android:name=".display.CloseNotificationReceiver"
android:exported="true"
tools:ignore="ExportedReceiver">
<intent-filter>
<action android:name="com.file.notification.CloseNotificationReceiver" />
</intent-filter>
</receiver>
<meta-data <meta-data
android:name="com.facebook.sdk.ApplicationId" android:name="com.facebook.sdk.ApplicationId"
......
package com.test.easy.easycleanerjunk.activity
import android.annotation.SuppressLint
import android.graphics.Color
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.core.view.updatePadding
import com.test.easy.easycleanerjunk.databinding.ActivityLayoutWebPrivacyBinding
import com.test.easy.easycleanerjunk.helps.BaseActivity
import com.test.easy.easycleanerjunk.utils.BarUtils
class PrivacyWebActivity : BaseActivity<ActivityLayoutWebPrivacyBinding>() {
override val binding: ActivityLayoutWebPrivacyBinding by lazy {
ActivityLayoutWebPrivacyBinding.inflate(layoutInflater)
}
@SuppressLint("SetJavaScriptEnabled")
override fun initView() {
BarUtils.setStatusBarLightMode(this, true)
BarUtils.setStatusBarColor(this, Color.TRANSPARENT)
binding.root.updatePadding(top = BarUtils.getStatusBarHeight())
binding.idWeb.settings.setJavaScriptEnabled(true)
binding.idWeb.webViewClient = object : WebViewClient() {
override fun shouldOverrideUrlLoading(view: WebView?, url: String?): Boolean {
view?.loadUrl(url!!)
return true
}
}
binding.idWeb.loadUrl("https://sites.google.com/view/fast-cleaner-junk/fast-cleaner-junk")
binding.idBack.setOnClickListener {
finishToMain()
}
}
}
\ No newline at end of file
...@@ -17,7 +17,6 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() { ...@@ -17,7 +17,6 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() {
} }
override fun initView() { override fun initView() {
binding.switchRemainNotification.isChecked = remainNotification
} }
override fun initListener() { override fun initListener() {
......
...@@ -123,82 +123,19 @@ public class PermissionUtils { ...@@ -123,82 +123,19 @@ public class PermissionUtils {
} }
public static final String CALENDAR = "CALENDAR";
public static final String CAMERA = "CAMERA";
public static final String CONTACTS = "CONTACTS";
public static final String LOCATION = "LOCATION";
public static final String MICROPHONE = "MICROPHONE";
public static final String PHONE = "PHONE";
public static final String SENSORS = "SENSORS";
public static final String SMS = "SMS";
public static final String STORAGE = "STORAGE"; public static final String STORAGE = "STORAGE";
public static final String ACTIVITY_RECOGNITION = "ACTIVITY_RECOGNITION";
private static final String[] GROUP_CALENDAR = {
Manifest.permission.READ_CALENDAR, Manifest.permission.WRITE_CALENDAR
};
private static final String[] GROUP_CAMERA = {
Manifest.permission.CAMERA
};
private static final String[] GROUP_CONTACTS = {
Manifest.permission.READ_CONTACTS, Manifest.permission.WRITE_CONTACTS, Manifest.permission.GET_ACCOUNTS
};
private static final String[] GROUP_LOCATION = {
Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_BACKGROUND_LOCATION
};
private static final String[] GROUP_MICROPHONE = {
Manifest.permission.RECORD_AUDIO
};
private static final String[] GROUP_PHONE = {
Manifest.permission.READ_PHONE_STATE, Manifest.permission.READ_PHONE_NUMBERS, Manifest.permission.CALL_PHONE,
Manifest.permission.READ_CALL_LOG, Manifest.permission.WRITE_CALL_LOG, Manifest.permission.ADD_VOICEMAIL,
Manifest.permission.USE_SIP, Manifest.permission.PROCESS_OUTGOING_CALLS, Manifest.permission.ANSWER_PHONE_CALLS
};
private static final String[] GROUP_PHONE_BELOW_O = {
Manifest.permission.READ_PHONE_STATE, Manifest.permission.READ_PHONE_NUMBERS, Manifest.permission.CALL_PHONE,
Manifest.permission.READ_CALL_LOG, Manifest.permission.WRITE_CALL_LOG, Manifest.permission.ADD_VOICEMAIL,
Manifest.permission.USE_SIP, Manifest.permission.PROCESS_OUTGOING_CALLS
};
private static final String[] GROUP_SENSORS = {
Manifest.permission.BODY_SENSORS
};
private static final String[] GROUP_SMS = {
Manifest.permission.SEND_SMS, Manifest.permission.RECEIVE_SMS, Manifest.permission.READ_SMS,
Manifest.permission.RECEIVE_WAP_PUSH, Manifest.permission.RECEIVE_MMS,
};
private static final String[] GROUP_STORAGE = { private static final String[] GROUP_STORAGE = {
Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE,
}; };
private static final String[] GROUP_ACTIVITY_RECOGNITION = {
Manifest.permission.ACTIVITY_RECOGNITION,
};
public static String[] getPermissionssss(final String permission) { public static String[] getPermissionssss(final String permission) {
if (permission == null) return new String[0]; if (permission == null) return new String[0];
switch (permission) { switch (permission) {
case CALENDAR:
return GROUP_CALENDAR;
case CAMERA:
return GROUP_CAMERA;
case CONTACTS:
return GROUP_CONTACTS;
case LOCATION:
return GROUP_LOCATION;
case MICROPHONE:
return GROUP_MICROPHONE;
case PHONE:
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
return GROUP_PHONE_BELOW_O;
} else {
return GROUP_PHONE;
}
case SENSORS:
return GROUP_SENSORS;
case SMS:
return GROUP_SMS;
case STORAGE: case STORAGE:
return GROUP_STORAGE; return GROUP_STORAGE;
case ACTIVITY_RECOGNITION:
return GROUP_ACTIVITY_RECOGNITION;
} }
return new String[]{permission}; return new String[]{permission};
} }
......
This diff is collapsed.
This diff is collapsed.
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_back_notification"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:paddingHorizontal="7dp"
android:src="@mipmap/fanhui"
android:tint="@color/black"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Notification Cleaner"
android:textColor="#000000"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/id_back_notification"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/id_back_notification"
tools:ignore="HardcodedText" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_img_shezhi"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="13dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@+id/id_back_notification"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/id_back_notification" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/id_notify_clean"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginVertical="18dp"
app:layout_constraintBottom_toTopOf="@+id/id_view_line"
app:layout_constraintTop_toBottomOf="@+id/id_back_notification" />
<TextView
android:id="@+id/id_no_notification"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@mipmap/notifications"
android:gravity="center"
android:text="No notifications"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="HardcodedText,UseCompatTextViewDrawableXml" />
<View
android:id="@+id/id_view_line"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginBottom="8dp"
android:background="#EEEEEE"
app:layout_constraintBottom_toTopOf="@+id/id_tv_clean_all_t" />
<com.noober.background.view.BLTextView
android:id="@+id/id_tv_clean_all_t"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginHorizontal="41dp"
android:layout_marginBottom="38dp"
android:gravity="center"
android:text="CLEAN ALL"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold"
app:bl_corners_radius="24dp"
app:bl_solid_color="@color/theme_color"
app:layout_constraintBottom_toBottomOf="parent"
tools:ignore="HardcodedText" />
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/id_ll_animation"
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="@color/white"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/id_back_notification">
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/id_animation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="46dp"
android:adjustViewBounds="true"
app:lottie_autoPlay="true"
app:lottie_loop="true"
app:lottie_rawRes="@raw/new_notification_lottie" />
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Scan notification"
android:textColor="#333333"
android:textSize="18sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:layout_marginBottom="100dp">
<com.noober.background.view.BLView
android:layout_width="4dp"
android:layout_height="4dp"
app:bl_shape="oval"
app:bl_solid_color="#333333" />
<com.noober.background.view.BLView
android:layout_width="4dp"
android:layout_height="4dp"
android:layout_marginHorizontal="2dp"
app:bl_shape="oval"
app:bl_solid_color="#333333" />
<com.noober.background.view.BLView
android:layout_width="4dp"
android:layout_height="4dp"
app:bl_shape="oval"
app:bl_solid_color="#333333" />
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/id_need_notifcation_premison"
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="@color/white"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/id_back_notification">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/notificationtu" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="40dp"
android:layout_marginTop="67dp"
android:layout_marginBottom="8dp"
android:text=" We need to request your notification access permission to help you clear your notification bar messages. This feature can help you keep your notification bar clean. "
android:textColor="#666666"
android:textSize="14sp" />
<com.noober.background.view.BLTextView
android:id="@+id/id_gant"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginHorizontal="41dp"
android:layout_marginTop="12dp"
android:gravity="center"
android:text="GRANT"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold"
app:bl_corners_radius="24dp"
app:bl_solid_color="@color/theme_color" />
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.constraintlayout.widget.ConstraintLayout>
\ 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="match_parent">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_t_guanbi"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="17dp"
android:visibility="gone"
android:src="@mipmap/guanbi"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/id_tv_ss"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="60dp"
android:gravity="center"
android:text="Close unimportant notifications,\n make notification bar much cleaner"
android:textColor="#000000"
android:textSize="13sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/id_t_guanbi" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/id_tz_guest"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="50dp"
android:layout_marginBottom="34dp"
android:adjustViewBounds="true"
app:layout_constraintBottom_toTopOf="@+id/id_tv_try_now"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/id_tv_ss"
app:lottie_autoPlay="true"
app:lottie_loop="true">
</com.airbnb.lottie.LottieAnimationView>
<com.noober.background.view.BLTextView
android:id="@+id/id_tv_try_now"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginHorizontal="41dp"
android:layout_marginBottom="40dp"
android:gravity="center"
android:text="TRY NOW"
android:visibility="gone"
android:textColor="@color/white"
android:textSize="18sp"
app:bl_corners_radius="24dp"
app:bl_solid_color="@color/theme_color"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="14dp">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:paddingHorizontal="12dp"
android:src="@mipmap/fanhui"
android:tint="#333333" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="Privacy Policy"
android:textColor="#333333"
android:textSize="17sp"
android:textStyle="bold" />
</RelativeLayout>
<WebView
android:id="@+id/id_web"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="14dp"
android:layout_weight="1"
android:padding="10dp" />
</LinearLayout>
\ 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"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout
android:id="@+id/fl_top"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#FDFDFD"
app:layout_constraintTop_toTopOf="parent">
<FrameLayout
android:id="@+id/fl_back"
android:layout_width="50dp"
android:layout_height="50dp"
tools:ignore="UselessParent">
<ImageView
android:layout_width="17dp"
android:layout_height="17dp"
android:layout_gravity="center"
android:src="@drawable/iv_return"
tools:ignore="ContentDescription" />
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Recent App Usage"
android:textColor="#000000"
android:textSize="19sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
</FrameLayout>
<LinearLayout
android:id="@+id/ll_content"
android:layout_width="match_parent"
android:layout_height="0dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/fl_top">
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="20dp"
android:background="@color/white"
app:tabIndicatorColor="#4772FF"
app:tabSelectedTextColor="#4772FF"
app:tabTextColor="#666666" />
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/viewpager2"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
<FrameLayout
android:id="@+id/fl_permission"
android:layout_width="match_parent"
android:layout_height="0dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/fl_top">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical"
tools:ignore="UselessParent">
<ImageView
android:layout_width="99dp"
android:layout_height="185dp"
android:layout_gravity="center_horizontal"
android:src="@drawable/accesspermission"
tools:ignore="ContentDescription" />
<TextView
android:id="@+id/tv_permission_tip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginHorizontal="8dp"
android:layout_marginTop="70dp"
android:gravity="center"
android:textColor="#666666"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_grand"
android:layout_width="289dp"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="12dp"
android:background="@drawable/bg_corners_4772ff"
android:gravity="center"
android:text="@string/grant"
android:textColor="@color/white"
android:textSize="19sp"
android:textStyle="bold" />
</LinearLayout>
</FrameLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/ll_lottie"
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="@color/white"
android:gravity="center"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/lottie"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:lottie_autoPlay="true"
app:lottie_loop="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="150dp"
android:gravity="center"
android:lineHeight="20dp"
android:text="Scan recent app\n..."
android:textColor="@color/black"
android:textSize="19sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:ignore="HardcodedText,UnusedAttribute" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
...@@ -34,38 +34,6 @@ ...@@ -34,38 +34,6 @@
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />
</FrameLayout> </FrameLayout>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="20dp"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="15dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="12dp"
android:text="Notification toolbar"
android:textColor="@color/black"
android:textSize="16sp"
tools:ignore="HardcodedText" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/switch_remain_notification"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|end"
android:layout_marginEnd="15dp"
android:layout_marginBottom="5dp"
android:thumb="@drawable/bg_switch_thumb_ffffff"
app:thumbTint="@color/white"
app:track="@drawable/bg_switch_track"
app:trackTint="@color/color_switch_track_selector" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:id="@+id/card_privacy" android:id="@+id/card_privacy"
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="38dp"
android:layout_height="2dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="8dp"
android:src="@drawable/bg_corners_e0e0e0"
tools:ignore="ContentDescription" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="19dp">
<TextView
android:id="@+id/tv_app_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginTop="20dp"
android:singleLine="true"
android:textColor="#000000"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintEnd_toStartOf="@+id/iv_icon"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="收音机" />
<TextView
android:id="@+id/tv_pkg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#666666"
android:textSize="12sp"
app:layout_constraintStart_toStartOf="@id/tv_app_name"
app:layout_constraintTop_toBottomOf="@id/tv_app_name"
tools:text="com.sec.android.app.voicenote" />
<ImageView
android:id="@+id/iv_icon"
android:layout_width="46dp"
android:layout_height="46dp"
android:layout_marginEnd="20dp"
app:layout_constraintBottom_toBottomOf="@id/tv_pkg"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/tv_app_name"
tools:ignore="ContentDescription" />
</androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="17dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:paddingVertical="7dp"
android:text="@string/version_"
android:textColor="#000000"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_version"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="3dp"
android:gravity="center"
android:textColor="#666666"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:paddingVertical="7dp"
android:text="@string/size_"
android:textColor="#000000"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_size"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="3dp"
android:gravity="center"
android:textColor="#666666"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:paddingVertical="7dp"
android:text="@string/install_"
android:textColor="#000000"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_install"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="3dp"
android:gravity="center"
android:textColor="#666666"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_installer"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:paddingVertical="7dp"
android:text="@string/installed_by_"
android:textColor="#000000"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_installer"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="3dp"
android:gravity="center"
android:textColor="#666666"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="18dp"
android:background="#EEEEEE" />
<TextView
android:id="@+id/tv_detail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="?android:attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:paddingHorizontal="20dp"
android:paddingVertical="10dp"
android:text="@string/detail_info"
android:textColor="#000000"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_share"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:paddingHorizontal="20dp"
android:paddingVertical="10dp"
android:text="@string/share"
android:textColor="#000000"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_uninstall"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="50dp"
android:background="?android:attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:paddingHorizontal="20dp"
android:paddingVertical="10dp"
android:text="@string/uninstall"
android:textColor="#000000"
android:textSize="14sp" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="10dp">
<LinearLayout
android:layout_width="319dp"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="167dp"
android:src="@mipmap/tanchuangbg"
tools:ignore="ContentDescription" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="20dp"
android:text="Don't miss important tips"
android:textColor="@color/black"
android:textSize="16sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginHorizontal="27dp"
android:layout_marginTop="16dp"
android:gravity="center"
android:text="Enable notifications to receive important suggestions."
tools:ignore="HardcodedText" />
<com.noober.background.view.BLTextView
android:layout_width="251dp"
android:layout_height="44dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="8dp"
android:layout_marginBottom="30dp"
app:bl_corners_radius="24dp"
app:bl_solid_color="#4772FF" />
</LinearLayout>
</androidx.cardview.widget.CardView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="350dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginHorizontal="10dp"
android:layout_marginVertical="10dp"
android:background="@color/white"
android:orientation="vertical"
android:padding="15dp"
android:paddingVertical="10dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/permission_state"
android:textColor="@color/black"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_all"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="?android:attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:paddingVertical="10dp"
android:text="@string/all"
android:textColor="@color/black"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_authorized"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:paddingVertical="10dp"
android:text="@string/only_authorized"
android:textColor="@color/black"
android:textSize="12sp" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/fl_content"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--suppress AndroidElementNotAllowed -->
<ProgressBar
android:id="@+id/progressbar"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:indeterminateTint="#0066FD" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</FrameLayout>
<LinearLayout
android:id="@+id/fl_permission"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical"
android:visibility="gone">
<ImageView
android:layout_width="290dp"
android:layout_height="130dp"
android:layout_gravity="center_horizontal"
android:src="@mipmap/managertu"
tools:ignore="ContentDescription" />
<TextView
android:id="@+id/tv_permission_tip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginHorizontal="8dp"
android:layout_marginTop="24dp"
android:gravity="center"
android:text=" We need to request your app management permission to help you identify which apps are taking up storage space and memory on your device, and assist you in managing and uninstalling unnecessary apps."
android:textColor="#666666"
android:textSize="14sp"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/tv_authorization"
android:layout_width="289dp"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="28dp"
android:background="#4078FF"
android:gravity="center"
android:text="@string/authorization"
android:textColor="@color/white"
android:textSize="19sp"
android:textStyle="bold" />
</LinearLayout>
</FrameLayout>
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="15dp"
android:layout_marginVertical="15dp">
<ImageView
android:id="@+id/iv_icon"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center_vertical"
tools:ignore="ContentDescription" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginHorizontal="5dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:textSize="15sp" />
<TextView
android:id="@+id/tv_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:textColor="#999999"
android:textSize="12sp"
tools:text="50 Launches" />
</LinearLayout>
<TextView
android:id="@+id/tv_stop"
android:layout_width="52dp"
android:layout_height="23dp"
android:layout_gravity="center_vertical"
android:background="@drawable/bg_corners_bfbfbf"
android:gravity="center"
android:text="STOP"
android:textColor="@color/white"
android:textSize="12sp"
tools:ignore="HardcodedText" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="15dp"
android:layout_marginVertical="15dp">
<ImageView
android:id="@+id/iv_icon"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center_vertical"
tools:ignore="ContentDescription" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginHorizontal="5dp"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="bottom"
android:paddingEnd="5dp"
android:textColor="@color/black"
android:textSize="15sp"
tools:ignore="RtlSymmetry"
tools:text="File Manager Select" />
<TextView
android:id="@+id/tv_time"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="bottom"
android:includeFontPadding="false"
android:textColor="#999999"
android:textSize="12sp"
tools:text="26.6 m" />
</LinearLayout>
<ProgressBar
android:id="@+id/progress_bar"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_marginTop="5dp"
android:max="100"
android:progress="0"
android:progressDrawable="@drawable/progressbar_bg_screen_time" />
</LinearLayout>
<TextView
android:textStyle="bold"
android:id="@+id/tv_manage"
android:layout_width="58dp"
android:layout_height="23dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="15dp"
android:background="@drawable/bg_corners_4772ff"
android:gravity="center"
android:text="@string/manage"
android:textColor="@color/white"
android:textSize="12sp" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="11dp"
android:gravity="center_vertical">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_icon"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginStart="18dp"
android:layout_marginEnd="15dp" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/id_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:layout_weight="1"
android:ellipsize="middle"
android:lines="1"
android:text="Aaa"
android:textColor="#333333"
android:textSize="13sp" />
<TextView
android:id="@+id/id_tra_used"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="305. 8 MB"
android:textColor="#999999"
android:textSize="11sp" />
</androidx.appcompat.widget.LinearLayoutCompat>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ProgressBar
android:id="@+id/id_wifi_pro"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_marginTop="7dp"
android:progressDrawable="@drawable/shape_pros_b"
tools:progress="40" />
<ProgressBar
android:id="@+id/id_mobile_pro"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_marginTop="7dp"
android:progressDrawable="@drawable/shape_pros_m"
tools:progress="10" />
</FrameLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
<com.noober.background.view.BLTextView
android:id="@+id/id_tv_stop"
android:layout_width="52dp"
android:layout_height="22dp"
android:layout_marginStart="22dp"
android:layout_marginEnd="18dp"
android:gravity="center"
android:text="STOP"
android:textColor="@color/white"
android:textSize="11sp"
app:bl_corners_radius="4dp"
app:bl_enabled_solid_color="#4772FF"
app:bl_unEnabled_solid_color="#BFBFBF" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="15dp"
android:layout_marginVertical="9dp"
android:orientation="vertical">
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical">
<androidx.cardview.widget.CardView
android:layout_width="48dp"
android:layout_height="48dp"
app:cardCornerRadius="7dp">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_app_icon"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</androidx.cardview.widget.CardView>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="11dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/id_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:includeFontPadding="false"
android:lines="1"
android:textColor="#000000"
android:textSize="15sp"
tools:text="Clean Junk" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:includeFontPadding="false"
android:text="risk"
android:textColor="#FCAD45"
android:textSize="12sp" />
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_sc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/shanchu" />
</androidx.appcompat.widget.LinearLayoutCompat>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="3dp"
android:layout_marginStart="12dp"
android:layout_marginEnd="15dp"
android:orientation="vertical">
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_t_icon"
android:layout_width="43dp"
android:layout_height="43dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginEnd="10dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/id_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Notifications will be blocked and listedhere"
android:textColor="#000000"
android:textSize="13sp" />
<TextView
android:id="@+id/id_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="Notifications will be blocked and listedhere"
android:textColor="#999999"
android:textSize="12sp" />
</androidx.appcompat.widget.LinearLayoutCompat>
<TextView
android:id="@+id/id_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#666666"
android:textSize="12sp"
tools:text="Just now" />
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_big_img"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="48dp"
android:layout_marginTop="8dp"
android:adjustViewBounds="true"
android:visibility="gone" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="48dp"
android:layout_marginTop="12dp"
android:background="#EEEEEE" />
</androidx.appcompat.widget.LinearLayoutCompat>
\ No newline at end of file
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