Commit d2855e56 authored by wanglei's avatar wanglei

修改drawable 和 mipmap图标位置

parent 1dbf2cf7
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission <uses-permission
android:name="android.permission.DELETE_CACHE_FILES" android:name="android.permission.DELETE_CACHE_FILES"
tools:ignore="ProtectedPermissions" /> tools:ignore="ProtectedPermissions" />
...@@ -365,7 +365,6 @@ ...@@ -365,7 +365,6 @@
</service> </service>
</application> </application>
</manifest> </manifest>
\ No newline at end of file
...@@ -163,68 +163,68 @@ object NotificationHelper { ...@@ -163,68 +163,68 @@ object NotificationHelper {
when (actionId) { when (actionId) {
ID_JUNK_CLEAN_PUSH -> { ID_JUNK_CLEAN_PUSH -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.lajiqingli) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.lajiqingli)
remoteViews.setTextViewText(R.id.tv_desc, "Clean up remaining junk files") remoteViews.setTextViewText(R.id.tv_desc, "Clean up remaining junk files")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up") remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
} }
ID_VIRUS_PUSH -> { ID_VIRUS_PUSH -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.bingdu) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.bingdu)
remoteViews.setTextViewText(R.id.tv_desc, "Protect your device and privacy, scan for virus threats now!") remoteViews.setTextViewText(R.id.tv_desc, "Protect your device and privacy, scan for virus threats now!")
remoteViews.setTextViewText(R.id.tv_btn, "Scan") remoteViews.setTextViewText(R.id.tv_btn, "Scan")
} }
ID_BATTERY_OPTIMIZATION -> { ID_BATTERY_OPTIMIZATION -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.dianchi_notifi) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.dianchi_notifi)
val random = Random.nextInt(0, 50) val random = Random.nextInt(0, 50)
remoteViews.setTextViewText(R.id.tv_desc, "$random Apps are consuming photo power") remoteViews.setTextViewText(R.id.tv_desc, "$random Apps are consuming photo power")
remoteViews.setTextViewText(R.id.tv_btn, "Optimize") remoteViews.setTextViewText(R.id.tv_btn, "Optimize")
} }
ID_BIGFILE_PUSH -> { ID_BIGFILE_PUSH -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.dawenjian_notifi) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.dawenjian_notifi)
remoteViews.setTextViewText(R.id.tv_desc, "Clean big files to free up storage space") remoteViews.setTextViewText(R.id.tv_desc, "Clean big files to free up storage space")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up") remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
} }
ID_PHOTO_COMPRESS -> { ID_PHOTO_COMPRESS -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.yasuo) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.yasuo)
remoteViews.setTextViewText(R.id.tv_desc, "Compress images to release more space") remoteViews.setTextViewText(R.id.tv_desc, "Compress images to release more space")
remoteViews.setTextViewText(R.id.tv_btn, "Compress") remoteViews.setTextViewText(R.id.tv_btn, "Compress")
} }
ID_APP_MANAGER -> { ID_APP_MANAGER -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.appmanager_notifi) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.appmanager_notifi)
remoteViews.setTextViewText(R.id.tv_desc, "Check apps size and uninstall junk apps to release storage space") remoteViews.setTextViewText(R.id.tv_desc, "Check apps size and uninstall junk apps to release storage space")
remoteViews.setTextViewText(R.id.tv_btn, "Manage") remoteViews.setTextViewText(R.id.tv_btn, "Manage")
} }
ID_NETWORK_TRAFFIC -> { ID_NETWORK_TRAFFIC -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.liuliang) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.liuliang)
remoteViews.setTextViewText(R.id.tv_desc, "View network traffic usage and stop traffic-consuming apps.") remoteViews.setTextViewText(R.id.tv_desc, "View network traffic usage and stop traffic-consuming apps.")
remoteViews.setTextViewText(R.id.tv_btn, "View") remoteViews.setTextViewText(R.id.tv_btn, "View")
} }
ID_CLEAN_NOTIFICATION -> { ID_CLEAN_NOTIFICATION -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.tongzhi_notifi) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.tongzhi_notifi)
remoteViews.setTextViewText(R.id.tv_desc, "Too many annoying notifications? Block and clean") remoteViews.setTextViewText(R.id.tv_desc, "Too many annoying notifications? Block and clean")
remoteViews.setTextViewText(R.id.tv_btn, "View") remoteViews.setTextViewText(R.id.tv_btn, "View")
} }
ID_RECENT_USE_APP -> { ID_RECENT_USE_APP -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.zuijin_notifi) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.zuijin_notifi)
remoteViews.setTextViewText(R.id.tv_desc, "Check and manage recently active apps") remoteViews.setTextViewText(R.id.tv_desc, "Check and manage recently active apps")
remoteViews.setTextViewText(R.id.tv_btn, "Manage") remoteViews.setTextViewText(R.id.tv_btn, "Manage")
} }
ID_SIMILAR_IMAGE -> { ID_SIMILAR_IMAGE -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.xiangsi_notifi) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.xiangsi_notifi)
remoteViews.setTextViewText(R.id.tv_desc, "Check similar photos to release more space") remoteViews.setTextViewText(R.id.tv_desc, "Check similar photos to release more space")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up") remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
} }
ID_CLEAN_SPEAKER -> { ID_CLEAN_SPEAKER -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.yangshenqi) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.yangshenqi)
remoteViews.setTextViewText(R.id.tv_desc, "Clean the speaker dust and fix the low volume problem") remoteViews.setTextViewText(R.id.tv_desc, "Clean the speaker dust and fix the low volume problem")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up") remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
} }
...@@ -232,31 +232,31 @@ object NotificationHelper { ...@@ -232,31 +232,31 @@ object NotificationHelper {
//==================================下面是被动推送的情况=============================================== //==================================下面是被动推送的情况===============================================
ID_INSTALL_PACKAGE_PUSH -> { ID_INSTALL_PACKAGE_PUSH -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.anzhuang_notifi) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.anzhuang_notifi)
remoteViews.setTextViewText(R.id.tv_desc, "Install successfully, scan for virus threats now!") remoteViews.setTextViewText(R.id.tv_desc, "Install successfully, scan for virus threats now!")
remoteViews.setTextViewText(R.id.tv_btn, "Scan") remoteViews.setTextViewText(R.id.tv_btn, "Scan")
} }
ID_UNINSTALL_PACKAGE_PUSH -> { ID_UNINSTALL_PACKAGE_PUSH -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.xiezai_notifi) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.xiezai_notifi)
remoteViews.setTextViewText(R.id.tv_desc, "Uninstalled successfully, clean residual files from your device") remoteViews.setTextViewText(R.id.tv_desc, "Uninstalled successfully, clean residual files from your device")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up") remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
} }
ID_CHARGE -> { ID_CHARGE -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.chongdian_notifi) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.chongdian_notifi)
remoteViews.setTextViewText(R.id.tv_desc, "View phone battery consumption recently") remoteViews.setTextViewText(R.id.tv_desc, "View phone battery consumption recently")
remoteViews.setTextViewText(R.id.tv_btn, "View") remoteViews.setTextViewText(R.id.tv_btn, "View")
} }
ID_LOW_BATTERY_PUSH -> { ID_LOW_BATTERY_PUSH -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.dianliangdi) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.dianliangdi)
remoteViews.setTextViewText(R.id.tv_desc, "The battery is $extra%, view the battery information") remoteViews.setTextViewText(R.id.tv_desc, "The battery is $extra%, view the battery information")
remoteViews.setTextViewText(R.id.tv_btn, "View") remoteViews.setTextViewText(R.id.tv_btn, "View")
} }
ID_PHONE_ACCELERATE -> { ID_PHONE_ACCELERATE -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.neicundi) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.neicundi)
remoteViews.setTextViewText(R.id.tv_desc, "Ram usage reached $extra%, optimize now!") remoteViews.setTextViewText(R.id.tv_desc, "Ram usage reached $extra%, optimize now!")
remoteViews.setTextViewText(R.id.tv_btn, "Optimize") remoteViews.setTextViewText(R.id.tv_btn, "Optimize")
} }
......
...@@ -146,7 +146,7 @@ class JunkAdapter( ...@@ -146,7 +146,7 @@ class JunkAdapter(
} }
1 -> { 1 -> {
viewHolder.binding.idImgIcon.setImageResource(R.mipmap.adicon) viewHolder.binding.idImgIcon.setImageResource(R.drawable.adicon)
} }
2 -> { 2 -> {
......
...@@ -98,15 +98,15 @@ class RateStarPop(private val activity: Activity) : PopupWindow() { ...@@ -98,15 +98,15 @@ class RateStarPop(private val activity: Activity) : PopupWindow() {
).forEachIndexed { index, it -> ).forEachIndexed { index, it ->
it.setImageResource( it.setImageResource(
if (index <= star) { if (index <= star) {
R.mipmap.xing_s2 R.drawable.xing_s2
} else { } else {
R.mipmap.xing_n2 R.drawable.xing_n2
} }
) )
if (star < 4) { if (star < 4) {
binding.idBiaoqing.setImageResource(R.mipmap.kulian) binding.idBiaoqing.setImageResource(R.drawable.kulian)
} else { } else {
binding.idBiaoqing.setImageResource(R.mipmap.xiaolian2) binding.idBiaoqing.setImageResource(R.drawable.xiaolian2)
} }
} }
} }
......
...@@ -51,7 +51,7 @@ class MainActivity : TopActivity<ActivityMainBinding>() { ...@@ -51,7 +51,7 @@ class MainActivity : TopActivity<ActivityMainBinding>() {
val shortcutName = "My Shortcut" val shortcutName = "My Shortcut"
// 快捷方式图标 // 快捷方式图标
val shortcutIcon = Icon.createWithResource(this, R.mipmap.ic_launcher) val shortcutIcon = Icon.createWithResource(this, R.mipmap.logo)
// 快捷方式意图 // 快捷方式意图
val shortcutIntent = Intent(Intent.ACTION_VIEW, Uri.parse("http://www.example.com")) val shortcutIntent = Intent(Intent.ACTION_VIEW, Uri.parse("http://www.example.com"))
......
...@@ -31,17 +31,17 @@ class ToolsAdapter( ...@@ -31,17 +31,17 @@ class ToolsAdapter(
private val list = listOf( private val list = listOf(
ToolsUI( ToolsUI(
tools = listOf( tools = listOf(
ToolUI(AFunOb.APP_MANAGER, context.getString(R.string.app_manager), R.mipmap.appmanager), ToolUI(AFunOb.APP_MANAGER, context.getString(R.string.app_manager), R.drawable.appmanager),
ToolUI(JUNK_CLEANER, context.getString(R.string.clean_junk), R.mipmap.cleanjunk), ToolUI(JUNK_CLEANER, context.getString(R.string.clean_junk), R.drawable.cleanjunk),
ToolUI(NOTIFICATION_CLEANER, context.getString(R.string.notification_cleaner), R.mipmap.notification), ToolUI(NOTIFICATION_CLEANER, context.getString(R.string.notification_cleaner), R.drawable.notification),
ToolUI(Antivirus, context.getString(R.string.virus_scan), R.mipmap.virus), ToolUI(Antivirus, context.getString(R.string.virus_scan), R.drawable.virus),
ToolUI(RECENT_APP_USAGE, context.getString(R.string.recent_app_usage), R.mipmap.recent), ToolUI(RECENT_APP_USAGE, context.getString(R.string.recent_app_usage), R.drawable.recent),
ToolUI(NETWORK_TRAFFIC, context.getString(R.string.network_traffic), R.mipmap.network), ToolUI(NETWORK_TRAFFIC, context.getString(R.string.network_traffic), R.drawable.network),
ToolUI(LARGE_FILE_CLEANER, context.getString(R.string.large_file_clean), R.mipmap.large), ToolUI(LARGE_FILE_CLEANER, context.getString(R.string.large_file_clean), R.drawable.large),
ToolUI(SIMILAR_PHOTOS, context.getString(R.string.similar_photos), R.mipmap.similar), ToolUI(SIMILAR_PHOTOS, context.getString(R.string.similar_photos), R.drawable.similar),
ToolUI(SPEAK_CLEANER, context.getString(R.string.speaker_cleaner), R.mipmap.speaker21422), ToolUI(SPEAK_CLEANER, context.getString(R.string.speaker_cleaner), R.drawable.speaker21422),
ToolUI(PHOTO_COMPRESS, context.getString(R.string.photo_compress), R.mipmap.photo97612), ToolUI(PHOTO_COMPRESS, context.getString(R.string.photo_compress), R.drawable.photo97612),
// ToolUI(APPP_LOCK, context.getString(R.string.app_lock), R.mipmap.applock), // ToolUI(APPP_LOCK, context.getString(R.string.app_lock), R.drawable.applock),
) )
), ),
......
...@@ -64,14 +64,14 @@ class PopExitWindow(private val activity: Activity) : PopupWindow() { ...@@ -64,14 +64,14 @@ class PopExitWindow(private val activity: Activity) : PopupWindow() {
AdmobUtils.showNativeAd(activity, binding.idFlAd) AdmobUtils.showNativeAd(activity, binding.idFlAd)
// MaxAdUtils.showMaxNativeAd(activity,binding.idFlAd) // MaxAdUtils.showMaxNativeAd(activity,binding.idFlAd)
listOf( listOf(
listOf(AFunOb.JUNK_CLEANER, PrepareScanActivity::class.java,"Clean up remaining junk files","Clean up", R.mipmap.lajiqingl22144i),//垃圾清理 listOf(AFunOb.JUNK_CLEANER, PrepareScanActivity::class.java,"Clean up remaining junk files","Clean up", R.drawable.lajiqingl22144i),//垃圾清理
listOf(AFunOb.Antivirus, VirusActivity::class.java,"Protect your device and privacy, scan for virus threats now!","Scan",R.mipmap.bingdu231),//病毒 listOf(AFunOb.Antivirus, VirusActivity::class.java,"Protect your device and privacy, scan for virus threats now!","Scan",R.drawable.bingdu231),//病毒
listOf(AFunOb.LARGE_FILE_CLEANER, VirusActivity::class.java,"Clean big files to free up storage space","Clean up",R.mipmap.dawenjian21455),//大文件 listOf(AFunOb.LARGE_FILE_CLEANER, VirusActivity::class.java,"Clean big files to free up storage space","Clean up",R.drawable.dawenjian21455),//大文件
listOf(AFunOb.PHOTO_COMPRESS, StartCompressionPhotoActivity::class.java,"Compress images to release more space","Compress",R.mipmap.yasuo1241i2),//图片压缩 listOf(AFunOb.PHOTO_COMPRESS, StartCompressionPhotoActivity::class.java,"Compress images to release more space","Compress",R.drawable.yasuo1241i2),//图片压缩
listOf(AFunOb.SIMILAR_PHOTOS, RepeaterdPhotoActivity::class.java,"Check similar photos to release more space","Clean up",R.mipmap.xiangsi1249928),//相似图片 listOf(AFunOb.SIMILAR_PHOTOS, RepeaterdPhotoActivity::class.java,"Check similar photos to release more space","Clean up",R.drawable.xiangsi1249928),//相似图片
listOf(AFunOb.APP_MANAGER, AppManager2Activity::class.java,"Check apps size and uninstall junk apps to release storage space","Manage",R.mipmap.yinyong12042),//app管理 listOf(AFunOb.APP_MANAGER, AppManager2Activity::class.java,"Check apps size and uninstall junk apps to release storage space","Manage",R.drawable.yinyong12042),//app管理
listOf(AFunOb.NETWORK_TRAFFIC, NetWorkActivity::class.java,"View network traffic usage and stop traffic-consuming apps.","View",R.mipmap.liuliang215),//流量管理 listOf(AFunOb.NETWORK_TRAFFIC, NetWorkActivity::class.java,"View network traffic usage and stop traffic-consuming apps.","View",R.drawable.liuliang215),//流量管理
listOf(AFunOb.BATTERY_INFO, BatteryInfoActivity::class.java,"View phone battery consumption recently","View",R.mipmap.dianch124i),//电池信息 listOf(AFunOb.BATTERY_INFO, BatteryInfoActivity::class.java,"View phone battery consumption recently","View",R.drawable.dianch124i),//电池信息
listOf( listOf(
AFunOb.NOTIFICATION_CLEANER, AFunOb.NOTIFICATION_CLEANER,
if (SPUtils.getInstance().getBoolean("notification_guest", false)) { if (SPUtils.getInstance().getBoolean("notification_guest", false)) {
...@@ -79,9 +79,9 @@ class PopExitWindow(private val activity: Activity) : PopupWindow() { ...@@ -79,9 +79,9 @@ class PopExitWindow(private val activity: Activity) : PopupWindow() {
} else { } else {
NotificationGuestActivity::class.java NotificationGuestActivity::class.java
} }
,"Too many annoying notifications? Block and clean","View",R.mipmap.tongzhi19992),//通知栏清理 ,"Too many annoying notifications? Block and clean","View",R.drawable.tongzhi19992),//通知栏清理
listOf(AFunOb.RECENT_APP_USAGE, RecentAppActivity::class.java,"Check and manage recently active apps","Manage",R.mipmap.zuijin10092), //最近使用的app listOf(AFunOb.RECENT_APP_USAGE, RecentAppActivity::class.java,"Check and manage recently active apps","Manage",R.drawable.zuijin10092), //最近使用的app
listOf(AFunOb.SPEAK_CLEANER, SpeakerCleanerActivity::class.java,"Clean the speaker dust and fix the low volume problem","Clean up",R.mipmap.yangshenqi12414), //扬声器清理 listOf(AFunOb.SPEAK_CLEANER, SpeakerCleanerActivity::class.java,"Clean the speaker dust and fix the low volume problem","Clean up",R.drawable.yangshenqi12414), //扬声器清理
).let { ).let {
val item = it[type % it.size] val item = it[type % it.size]
binding.idExitImg.setImageResource(item[4] as Int) binding.idExitImg.setImageResource(item[4] as Int)
......
...@@ -42,11 +42,11 @@ class RepeaterdPhotoActivity:TopActivity<ActivityLayoutRepeaterdPhotoBinding>() ...@@ -42,11 +42,11 @@ class RepeaterdPhotoActivity:TopActivity<ActivityLayoutRepeaterdPhotoBinding>()
if (isSelectAll) { if (isSelectAll) {
isSelectAll = false isSelectAll = false
vb.idTvAll.text = "All" vb.idTvAll.text = "All"
vb.idImgSelect.setImageResource(R.mipmap.cfzps2) vb.idImgSelect.setImageResource(R.drawable.cfzps2)
} else { } else {
isSelectAll = true isSelectAll = true
vb.idTvAll.text = "Cancel" vb.idTvAll.text = "Cancel"
vb.idImgSelect.setImageResource(R.mipmap.xuanzhong2232) vb.idImgSelect.setImageResource(R.drawable.xuanzhong2232)
} }
fileList.forEach { it.isSelect = isSelectAll } fileList.forEach { it.isSelect = isSelectAll }
mAdapter.notifyItemRangeChanged(0, fileList.size, 1) mAdapter.notifyItemRangeChanged(0, fileList.size, 1)
...@@ -129,11 +129,11 @@ class RepeaterdPhotoActivity:TopActivity<ActivityLayoutRepeaterdPhotoBinding>() ...@@ -129,11 +129,11 @@ class RepeaterdPhotoActivity:TopActivity<ActivityLayoutRepeaterdPhotoBinding>()
if (fileList.all { it.isSelect }) { if (fileList.all { it.isSelect }) {
isSelectAll = true isSelectAll = true
vb.idTvAll.text = "Cancel" vb.idTvAll.text = "Cancel"
vb.idImgSelect.setImageResource(R.mipmap.xuanzhong2232) vb.idImgSelect.setImageResource(R.drawable.xuanzhong2232)
} else { } else {
isSelectAll = false isSelectAll = false
vb.idTvAll.text = "All" vb.idTvAll.text = "All"
vb.idImgSelect.setImageResource(R.mipmap.cfzps2) vb.idImgSelect.setImageResource(R.drawable.cfzps2)
} }
setTvStatus() setTvStatus()
} }
...@@ -148,9 +148,9 @@ class RepeaterdPhotoActivity:TopActivity<ActivityLayoutRepeaterdPhotoBinding>() ...@@ -148,9 +148,9 @@ class RepeaterdPhotoActivity:TopActivity<ActivityLayoutRepeaterdPhotoBinding>()
val item = fileList[position] val item = fileList[position]
holder.ivSelect.setImageResource( holder.ivSelect.setImageResource(
if (item.isSelect) { if (item.isSelect) {
R.mipmap.xuanzhong2232 R.drawable.xuanzhong2232
} else { } else {
R.mipmap.cfzps2 R.drawable.cfzps2
} }
) )
} }
......
...@@ -115,10 +115,10 @@ class SplashActivity : TopActivity<ActivityLayoutSplashBinding>() { ...@@ -115,10 +115,10 @@ class SplashActivity : TopActivity<ActivityLayoutSplashBinding>() {
vb.idImgGouxuan.setOnClick(javaClass.simpleName) { vb.idImgGouxuan.setOnClick(javaClass.simpleName) {
if (isgouxuan) { if (isgouxuan) {
isgouxuan = false isgouxuan = false
vb.idImgGouxuan.setImageResource(R.mipmap.xuan) vb.idImgGouxuan.setImageResource(R.drawable.xuan)
} else { } else {
isgouxuan = true isgouxuan = true
vb.idImgGouxuan.setImageResource(R.mipmap.gouxuan) vb.idImgGouxuan.setImageResource(R.drawable.gouxuan)
} }
} }
vb.idUseTerms.setOnClick(javaClass.simpleName) { vb.idUseTerms.setOnClick(javaClass.simpleName) {
......
...@@ -57,24 +57,24 @@ class BigFileAdapter(val itemClick: (data: FileBean) -> Unit, val selectClick: ( ...@@ -57,24 +57,24 @@ class BigFileAdapter(val itemClick: (data: FileBean) -> Unit, val selectClick: (
} }
data.isAudio() -> { data.isAudio() -> {
binding.iv.setImageResource(R.mipmap.icon_tingyinyue) binding.iv.setImageResource(R.drawable.icon_tingyinyue)
} }
data.isDoc() -> { data.isDoc() -> {
binding.iv.setImageResource(R.mipmap.icon_wendang) binding.iv.setImageResource(R.drawable.icon_wendang)
} }
data.isApk() -> { data.isApk() -> {
binding.iv.setImageResource(R.mipmap.icon_apk) binding.iv.setImageResource(R.drawable.icon_apk)
} }
data.isZip() -> { data.isZip() -> {
binding.iv.setImageResource(R.mipmap.icon_archives) binding.iv.setImageResource(R.drawable.icon_archives)
} }
else -> { else -> {
binding.iv.setImageResource(R.mipmap.icon_other_file) binding.iv.setImageResource(R.drawable.icon_other_file)
} }
} }
binding.tvName.text = data.name binding.tvName.text = data.name
......
...@@ -181,10 +181,10 @@ class PermissionManagerActivity : AppCompatActivity(), ReportInterface { ...@@ -181,10 +181,10 @@ class PermissionManagerActivity : AppCompatActivity(), ReportInterface {
private fun setExpandCollapseSensitive() { private fun setExpandCollapseSensitive() {
if (sensitiveExpand) { if (sensitiveExpand) {
binding.ivArrowSensitive.setImageResource(R.mipmap.hxiala_s) binding.ivArrowSensitive.setImageResource(R.drawable.hxiala_s)
binding.rvSensitive.visibility = View.VISIBLE binding.rvSensitive.visibility = View.VISIBLE
} else { } else {
binding.ivArrowSensitive.setImageResource(R.mipmap.hxiala_x) binding.ivArrowSensitive.setImageResource(R.drawable.hxiala_x)
binding.rvSensitive.visibility = View.GONE binding.rvSensitive.visibility = View.GONE
} }
} }
...@@ -192,10 +192,10 @@ class PermissionManagerActivity : AppCompatActivity(), ReportInterface { ...@@ -192,10 +192,10 @@ class PermissionManagerActivity : AppCompatActivity(), ReportInterface {
private fun setExpandCollapseNormal() { private fun setExpandCollapseNormal() {
if (normalExpand) { if (normalExpand) {
binding.ivArrowNormal.setImageResource(R.mipmap.aa_xiala_s) binding.ivArrowNormal.setImageResource(R.drawable.aa_xiala_s)
binding.rvNormal.visibility = View.VISIBLE binding.rvNormal.visibility = View.VISIBLE
} else { } else {
binding.ivArrowNormal.setImageResource(R.mipmap.aa_xiala_x) binding.ivArrowNormal.setImageResource(R.drawable.aa_xiala_x)
binding.rvNormal.visibility = View.GONE binding.rvNormal.visibility = View.GONE
} }
......
...@@ -27,16 +27,16 @@ class AppFunctionAdapter(val click: (name: String) -> Unit) : ...@@ -27,16 +27,16 @@ class AppFunctionAdapter(val click: (name: String) -> Unit) :
RecyclerView.Adapter<AppFunctionAdapter.JJJ>() { RecyclerView.Adapter<AppFunctionAdapter.JJJ>() {
val list = arrayListOf( val list = arrayListOf(
Fun(JUNK_CLEANER, R.mipmap.cleanjunk_r, "Clean junk regularly to free up space", "Clean Up"), Fun(JUNK_CLEANER, R.drawable.cleanjunk_r, "Clean junk regularly to free up space", "Clean Up"),
Fun(Antivirus, R.mipmap.antivirus, "Scan your phone for viruses now to protect your security and pr", "Scan Now"), Fun(Antivirus, R.drawable.antivirus, "Scan your phone for viruses now to protect your security and pr", "Scan Now"),
Fun(LARGE_FILE_CLEANER, R.mipmap.large_r, "Clean large files to free up storage space", "Clean Up"), Fun(LARGE_FILE_CLEANER, R.drawable.large_r, "Clean large files to free up storage space", "Clean Up"),
Fun(PHOTO_COMPRESS, R.mipmap.jphoto, "Compress photos to save space", "Compress"), Fun(PHOTO_COMPRESS, R.drawable.jphoto, "Compress photos to save space", "Compress"),
Fun(SIMILAR_PHOTOS, R.mipmap.similar29871, "Check similar photos to release more space", "Clean Up"), Fun(SIMILAR_PHOTOS, R.drawable.similar29871, "Check similar photos to release more space", "Clean Up"),
Fun(APP_MANAGER, R.mipmap.appmanager_r, "Check apps size and uninstall some apps to release storage space", "Check Now"), Fun(APP_MANAGER, R.drawable.appmanager_r, "Check apps size and uninstall some apps to release storage space", "Check Now"),
Fun(NETWORK_TRAFFIC, R.mipmap.notification_r, "View network traffic usage and stop traffic-consuming apps", "View Now"), Fun(NETWORK_TRAFFIC, R.drawable.notification_r, "View network traffic usage and stop traffic-consuming apps", "View Now"),
Fun(BATTERY_INFO, R.mipmap.battery, "View battery usage and details", "Check Now"), Fun(BATTERY_INFO, R.drawable.battery, "View battery usage and details", "Check Now"),
Fun(NOTIFICATION_CLEANER, R.mipmap.notification_r, "Too many annoying notifications? Block and clean", "Check Now"), Fun(NOTIFICATION_CLEANER, R.drawable.notification_r, "Too many annoying notifications? Block and clean", "Check Now"),
Fun(RECENT_APP_USAGE, R.mipmap.recen, "Check and manage recently active apps", "View Now") Fun(RECENT_APP_USAGE, R.drawable.recen, "Check and manage recently active apps", "View Now")
) )
//修改顺序 //修改顺序
......
...@@ -11,11 +11,11 @@ import android.view.View ...@@ -11,11 +11,11 @@ import android.view.View
import com.zxhyis.toolss.R import com.zxhyis.toolss.R
class ArrowView : View { class ArrowView : View {
private val arrowUpN: Bitmap = BitmapFactory.decodeResource(resources, R.mipmap.upper_n) private val arrowUpN: Bitmap = BitmapFactory.decodeResource(resources, R.drawable.upper_n)
private val arrowUpS: Bitmap = BitmapFactory.decodeResource(resources, R.mipmap.upper_s) private val arrowUpS: Bitmap = BitmapFactory.decodeResource(resources, R.drawable.upper_s)
private val arrowLoweN: Bitmap = BitmapFactory.decodeResource(resources, R.mipmap.lowe_n) private val arrowLoweN: Bitmap = BitmapFactory.decodeResource(resources, R.drawable.lowe_n)
private val arrowLoweS: Bitmap = BitmapFactory.decodeResource(resources, R.mipmap.lower_s) private val arrowLoweS: Bitmap = BitmapFactory.decodeResource(resources, R.drawable.lower_s)
private val drawPaint = Paint(Paint.ANTI_ALIAS_FLAG or Paint.DITHER_FLAG) private val drawPaint = Paint(Paint.ANTI_ALIAS_FLAG or Paint.DITHER_FLAG)
private var upMargin = 0f private var upMargin = 0f
private var lowMargin = 0f private var lowMargin = 0f
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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