Commit 542cb10b authored by wanglei's avatar wanglei

ui替换

parent 58f4c2ab
......@@ -165,7 +165,6 @@ class BatteryInfoActivity : BaseActivity<ActivityBatteryInfoBinding>() {
}
private fun checkFlashLight() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
cm.registerTorchCallback(object : CameraManager.TorchCallback() {
override fun onTorchModeChanged(cameraId: String, enabled: Boolean) {
super.onTorchModeChanged(cameraId, enabled)
......@@ -180,17 +179,13 @@ class BatteryInfoActivity : BaseActivity<ActivityBatteryInfoBinding>() {
}
}
}, null)
} else {
Toast.makeText(this, "don't support you phone", Toast.LENGTH_SHORT).show()
}
}
private fun turnOnFlashLight() {
try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
cm.setTorchMode(cameraId, true)
} // 打开手电筒
// 打开手电筒
} catch (e: CameraAccessException) {
e.printStackTrace()
}
......@@ -198,9 +193,8 @@ class BatteryInfoActivity : BaseActivity<ActivityBatteryInfoBinding>() {
private fun turnOffFlashLight() {
try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
cm.setTorchMode(cameraId, false)
} // 打开手电筒
// 打开手电筒
} catch (e: CameraAccessException) {
e.printStackTrace()
}
......
......@@ -113,7 +113,7 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() {
firstHalf.forEach { l ->
sizes[0] += l.size
// junkList.add(p0.path)
val bean = ChildBean(R.mipmap.hapk, l.name, l.path, l.size)
val bean = ChildBean(R.mipmap.apk, l.name, l.path, l.size)
child3.add(bean)
}
ScanCount += 1
......
package com.base.superfilemanager.activity.photocompress.photo
import android.annotation.SuppressLint
import android.app.Activity
import android.graphics.Bitmap
import android.util.Log
......@@ -15,13 +16,14 @@ import com.bumptech.glide.Glide
import com.base.superfilemanager.R
class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, CompressionImageUtils.BitmapCallback,
@Suppress("DEPRECATION")
class PreviewCompressionManager(private val mContext: Activity) : GalleryLayoutManager.OnItemSelectedListener,
CompressionImageUtils.BitmapCallback,
OnSeekBarChangeListener {
private val mContext: Activity
private var galleryRecyclerView: RecyclerView? = null
private var galleryAdapter: GalleryAdapter? = null
private val mList: List<PhotoBean>
private val mList: List<PhotoBean> = PhotoCache.getInstance().photoList
private var mTitleView: TextView? = null
private var mPreviewView: RelativeLayout? = null
......@@ -37,21 +39,6 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C
private var mIndex = 0
constructor(mContext: Activity) {
this.mContext = mContext
mList = PhotoCache.getInstance().photoList
galleryRecyclerView = mContext.findViewById(R.id.galleryRecyclerView)
mPreviewView = mContext.findViewById(R.id.preview_view)
mLoadingView = mContext.findViewById(R.id.img_loading)
mBeforeImage = mContext.findViewById(R.id.before_image)
mAfterImage = mContext.findViewById(R.id.after_image)
mBeforeSize = mContext.findViewById(R.id.before_size)
mAfterSize = mContext.findViewById(R.id.after_size)
mTitleView = mContext.findViewById(R.id.title)
mSeekBar = mContext.findViewById(R.id.seekBar)
initView()
}
private fun initView() {
galleryAdapter = GalleryAdapter(mContext, mList)
val manager = GalleryLayoutManager(GalleryLayoutManager.HORIZONTAL)
......@@ -76,8 +63,8 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C
lastRefreshTime = currentTime
mIndex = position
Log.d("glc","")
refreshPreviewImage(true)
Log.d("glc", "")
refreshPreviewImage(true, 50)
}
override fun onBitmapReady(bitmap: Bitmap?, size: Long, position: Int) {
......@@ -89,17 +76,14 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C
val entity = mList[position]
mPreviewView?.visibility = View.VISIBLE
mLoadingView?.visibility = View.GONE
if (mBeforeImage != null) {
Glide.with(mContext).load(entity.src).into(mBeforeImage)
}
mBeforeSize?.text = entity.sizeText
mAfterSize?.text = ImagesMediaUtils.formatFileSize(size)
if (mAfterImage != null) {
Glide.with(mContext).load(bitmap).into(mAfterImage)
}
}
}
@SuppressLint("SetTextI18n")
private fun loading(boolean: Boolean) {
mPreviewView?.visibility = View.GONE
mLoadingView?.visibility = View.VISIBLE
......@@ -110,11 +94,6 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C
}
override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
when {
progress <= 25 -> seekBar?.progress = 0
progress in 26..75 -> seekBar?.progress = 50
progress > 75 -> seekBar?.progress = 100
}
}
override fun onStartTrackingTouch(seekBar: SeekBar?) {
......@@ -124,26 +103,38 @@ class PreviewCompressionManager : GalleryLayoutManager.OnItemSelectedListener, C
override fun onStopTrackingTouch(seekBar: SeekBar?) {
val progress = seekBar?.progress ?: 0
var mode: Int = 0
when {
seekBar?.progress ?: 0 <= 1 -> seekBar?.progress = 0
(seekBar?.progress ?: 0) > 1 && (seekBar?.progress ?: 0) <= 50 -> seekBar?.progress =
50
seekBar?.progress ?: 0 > 50 -> seekBar?.progress = 100
(seekBar?.progress ?: 0) <= 1 -> mode = 0
(seekBar?.progress ?: 0) > 1 && (seekBar?.progress ?: 0) <= 50 -> mode = 50
(seekBar?.progress ?: 0) > 50 -> mode = 100
}
if (progress != lastProgress) {
refreshPreviewImage(false)
refreshPreviewImage(false, mode)
lastProgress = progress
}
}
private fun refreshPreviewImage(boolean: Boolean) {
@SuppressLint("SetTextI18n")
private fun refreshPreviewImage(boolean: Boolean, mode: Int) {
loading(boolean)
val entity = mList[mIndex]
mTitleView?.text = "Preview (" + (mIndex + 1) + "/${mList.size})"
CompressionImageUtils.compressImage(entity.src, mSeekBar.progress, mIndex, this)
CompressionImageUtils.compressImage(entity.src, mode, mIndex, this)
}
fun getMode() = mSeekBar.progress
init {
galleryRecyclerView = mContext.findViewById(R.id.galleryRecyclerView)
mPreviewView = mContext.findViewById(R.id.preview_view)
mLoadingView = mContext.findViewById(R.id.img_loading)
mBeforeImage = mContext.findViewById(R.id.before_image)
mAfterImage = mContext.findViewById(R.id.after_image)
mBeforeSize = mContext.findViewById(R.id.before_size)
mAfterSize = mContext.findViewById(R.id.after_size)
mTitleView = mContext.findViewById(R.id.title)
mSeekBar = mContext.findViewById(R.id.seekBar)
initView()
}
}
\ No newline at end of file
......@@ -38,7 +38,7 @@ class PermissionAdapter : RecyclerView.Adapter<PermissionAdapter.CCCC>() {
holder.binding.tvAuthorized.visibility = View.VISIBLE
if (data.isSensitive) {
holder.binding.tvAuthorized.background = ContextCompat.getDrawable(context, R.drawable.bg_corners_granted)
holder.binding.tvAuthorized.setTextColor(ContextCompat.getColor(context, R.color.color_fcad45))
holder.binding.tvAuthorized.setTextColor(ContextCompat.getColor(context, R.color.theme_color))
} else {
holder.binding.tvAuthorized.background = ContextCompat.getDrawable(context, R.drawable.bg_corners_d9e2fd)
holder.binding.tvAuthorized.setTextColor(ContextCompat.getColor(context, R.color.color_4772ff))
......
......@@ -55,7 +55,6 @@ object NotificationHelper {
*/
val supportNotification = arrayListOf(
ID_JUNK_CLEAN_PUSH,
// ID_VIRUS_PUSH,
ID_LARGE_FILE_PUSH,
ID_BATTERY_PUSH,
ID_CLEAN_NOTIFICATION,
......@@ -66,8 +65,6 @@ object NotificationHelper {
ID_RECENT_USE_APP,
ID_SIMILAR_IMAGE,
ID_CLEAN_SPEAKER,
// ID_BATTERY_OPTIMIZATION,
// ID_PHONE_ACCELERATE,//被动推送加入主动推送列表
)
/**
......@@ -132,19 +129,6 @@ object NotificationHelper {
remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
}
// ID_VIRUS_PUSH -> {
// remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.virus)
// remoteViews.setTextViewText(R.id.tv_desc, "Protect your device and privacy, scan for virus threats now!")
// remoteViews.setTextViewText(R.id.tv_btn, "Scan")
// }
// ID_BATTERY_OPTIMIZATION -> {
// remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.battery)
// val random = Random.nextInt(0, 50)
// remoteViews.setTextViewText(R.id.tv_desc, "$random Apps are consuming photo power")
// remoteViews.setTextViewText(R.id.tv_btn, "Optimize")
// }
ID_LARGE_FILE_PUSH -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.jg_large)
remoteViews.setTextViewText(R.id.tv_desc, "Clean big files to free up storage space")
......@@ -208,23 +192,17 @@ object NotificationHelper {
}
ID_CHARGE -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.battery_charge)
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.start)
remoteViews.setTextViewText(R.id.tv_desc, "View phone battery consumption recently")
remoteViews.setTextViewText(R.id.tv_btn, "View")
}
ID_LOW_BATTERY_PUSH -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.battery_lower)
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.batter)
remoteViews.setTextViewText(R.id.tv_desc, "The battery is $extra%, view the battery information")
remoteViews.setTextViewText(R.id.tv_btn, "View")
}
// ID_PHONE_ACCELERATE -> {
// remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.memory)
// remoteViews.setTextViewText(R.id.tv_desc, "Ram usage reached $extra%, optimize now!")
// remoteViews.setTextViewText(R.id.tv_btn, "Optimize")
// }
else -> {
return
}
......
......@@ -73,7 +73,7 @@ object NotificationUtils {
val deletePendingIntent = PendingIntent.getBroadcast(context, 0, deleteIntent, PendingIntent.FLAG_MUTABLE)
return NotificationCompat.Builder(context, CHANNEL_ID)
.setSmallIcon(R.mipmap.logo_small)
.setSmallIcon(R.mipmap.logo)
.setPriority(NotificationCompat.PRIORITY_MAX)
.setCategory(NotificationCompat.CATEGORY_ALARM)
.setWhen(System.currentTimeMillis())
......@@ -156,7 +156,7 @@ object NotificationUtils {
builder.setCustomContentView(contentView)
builder.setCustomBigContentView(expendView)
builder.setContentIntent(pendingIntent) //设置PendingIntent
builder.setSmallIcon(R.mipmap.logo_small) //设置状态栏内的小图标
builder.setSmallIcon(R.mipmap.logo) //设置状态栏内的小图标
builder.setVisibility(NotificationCompat.VISIBILITY_PRIVATE) //设置通知公开可见
builder.setOngoing(isOngoing) //设置持续(不消失的常驻通知)
// builder.setCategory(category) //设置类别
......
......@@ -32,6 +32,8 @@ class LaunchesFragment : BaseFragment<FragmentLaunchesBinding>() {
private val TAG = "LaunchesFragment"
private var dataList = arrayListOf<AppBean>()
private lateinit var adapter: RecentAppAdapter
@SuppressLint("SimpleDateFormat")
private var simpleDateFormat2 = SimpleDateFormat("(yyyy/MM/dd)")
private var UI_MODE = UI_MODE_ALL
......
......@@ -39,6 +39,7 @@ class NotificationCleanActivity : BaseActivity<ActivityLayoutTionCleanBinding>()
}
@SuppressLint("NotifyDataSetChanged")
override fun initView() {
BarUtils.setStatusBarLightMode(this, true)
......@@ -55,7 +56,7 @@ class NotificationCleanActivity : BaseActivity<ActivityLayoutTionCleanBinding>()
}
onBackPressedDispatcher.addCallback(object : OnBackPressedCallback(true) {
override fun handleOnBackPressed() {
AdmobUtils.showInterstitialAd(this@NotificationCleanActivity){
AdmobUtils.showInterstitialAd(this@NotificationCleanActivity) {
finishToMain()
}
......@@ -117,7 +118,6 @@ class NotificationCleanActivity : BaseActivity<ActivityLayoutTionCleanBinding>()
}
private fun showEmptydata() {
binding.idNotifyClean.isVisible = false
binding.idNoNotification.isVisible = true
......
app/src/main/res/drawable-xxhdpi/l_lower.png

483 Bytes | W: | H:

app/src/main/res/drawable-xxhdpi/l_lower.png

542 Bytes | W: | H:

app/src/main/res/drawable-xxhdpi/l_lower.png
app/src/main/res/drawable-xxhdpi/l_lower.png
app/src/main/res/drawable-xxhdpi/l_lower.png
app/src/main/res/drawable-xxhdpi/l_lower.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable-xxhdpi/l_upper.png

459 Bytes | W: | H:

app/src/main/res/drawable-xxhdpi/l_upper.png

491 Bytes | W: | H:

app/src/main/res/drawable-xxhdpi/l_upper.png
app/src/main/res/drawable-xxhdpi/l_upper.png
app/src/main/res/drawable-xxhdpi/l_upper.png
app/src/main/res/drawable-xxhdpi/l_upper.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#DDDBFD" />
<solid android:color="#DDE0F8" />
<corners android:radius="2.5dp" />
</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="#5b4fff" />
<solid android:color="@color/theme_color" />
<corners android:radius="7.5dp" />
</shape>
\ No newline at end of file
......@@ -2,11 +2,8 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="289dp" android:height="50dp">
<shape android:shape="rectangle">
<gradient
android:angle="180"
android:endColor="@color/color_655afd"
android:startColor="#8720eb" />
<corners android:topLeftRadius="25dp" android:topRightRadius="25dp" android:bottomLeftRadius="25dp" android:bottomRightRadius="25dp" />
<solid android:color="@color/theme_color" />
<corners android:bottomLeftRadius="25dp" android:bottomRightRadius="25dp" android:topLeftRadius="25dp" android:topRightRadius="25dp" />
</shape>
</item>
</selector>
\ No newline at end of file
......@@ -12,7 +12,7 @@
android:height="9dp"
android:gravity="left|center_vertical">
<shape android:shape="rectangle">
<solid android:color="#5b4fff" />
<solid android:color="@color/theme_color" />
<corners
android:bottomLeftRadius="2dp"
android:bottomRightRadius="2dp"
......@@ -26,7 +26,7 @@
android:height="9dp"
android:gravity="center">
<shape android:shape="rectangle">
<solid android:color="#5b4fff" />
<solid android:color="@color/theme_color" />
<corners
android:bottomLeftRadius="2dp"
android:bottomRightRadius="2dp"
......@@ -39,7 +39,7 @@
android:height="9dp"
android:gravity="right|center_vertical">
<shape android:shape="rectangle">
<solid android:color="#5b4fff" />
<solid android:color="@color/theme_color" />
<corners
android:bottomLeftRadius="2dp"
android:bottomRightRadius="2dp"
......
......@@ -3,19 +3,23 @@
<item android:id="@android:id/background">
<shape>
<corners android:radius="8dp" />
<solid android:color="#0A0336" />
<solid android:color="#313131" />
</shape>
</item>
<item android:id="@android:id/progress">
<item
android:id="@android:id/progress"
android:bottom="2dp"
android:end="2dp"
android:start="2dp"
android:top="2dp">
<clip>
<shape>
<corners android:radius="8dp" />
<gradient
android:endColor="#9477FF"
android:startColor="#00E0FF"
android:gradientRadius="10dp"/>
<solid android:color="@color/white" />
<!-- <gradient-->
<!-- android:endColor="#9477FF"-->
<!-- android:startColor="#00E0FF"-->
<!-- android:gradientRadius="10dp"/>-->
</shape>
</clip>
......
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/white"/>
<item android:drawable="@drawable/splash_bg" />
<!-- <item android:drawable="@drawable/splash_bg" />-->
<item
android:top="130dp"
android:gravity="top|center_horizontal">
<bitmap
android:src="@mipmap/icon_text" />
android:src="@mipmap/qdylogo" />
</item>
</layer-list>
\ No newline at end of file
......@@ -10,7 +10,7 @@
<size
android:width="16dp"
android:height="16dp" />
<solid android:color="#4078FF" />
<solid android:color="@color/theme_color" />
</shape>
</rotate>
</item>
......
......@@ -105,7 +105,7 @@
android:id="@+id/v_name"
android:layout_width="match_parent"
android:layout_height="4dp"
android:background="#4772FF"
android:background="@color/theme_color"
android:visibility="invisible" />
</LinearLayout>
......@@ -151,7 +151,7 @@
android:id="@+id/v_install"
android:layout_width="match_parent"
android:layout_height="4dp"
android:background="#4772FF"
android:background="@color/theme_color"
android:visibility="invisible" />
</LinearLayout>
......@@ -198,7 +198,7 @@
android:id="@+id/v_size"
android:layout_width="match_parent"
android:layout_height="4dp"
android:background="#4772FF"
android:background="@color/theme_color"
android:visibility="invisible" />
</LinearLayout>
......@@ -243,7 +243,7 @@
android:id="@+id/v_last_use"
android:layout_width="match_parent"
android:layout_height="4dp"
android:background="#4772FF"
android:background="@color/theme_color"
android:visibility="invisible" />
</LinearLayout>
......
......@@ -526,7 +526,7 @@
android:id="@+id/iv_gps"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/gps"
android:src="@drawable/daohang"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.045"
......
......@@ -85,7 +85,6 @@
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_view1"
android:layout_width="wrap_content"
......@@ -96,7 +95,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@mipmap/icon1" />
android:src="@mipmap/cleantu1" />
</FrameLayout>
<View
......@@ -111,7 +110,6 @@
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_view2"
android:layout_width="wrap_content"
......@@ -122,7 +120,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@mipmap/icon2" />
android:src="@mipmap/cleantu2" />
</FrameLayout>
<View
......@@ -137,7 +135,6 @@
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/id_view3"
android:layout_width="wrap_content"
......@@ -148,7 +145,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@mipmap/icon3" />
android:src="@mipmap/cleantu3" />
</FrameLayout>
......
......@@ -79,7 +79,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@mipmap/icon1" />
android:src="@mipmap/cleantu1" />
</FrameLayout>
<View
......@@ -104,7 +104,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@mipmap/icon2" />
android:src="@mipmap/cleantu2" />
</FrameLayout>
<View
......@@ -129,7 +129,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@mipmap/icon3" />
android:src="@mipmap/cleantu3" />
</FrameLayout>
......
......@@ -80,7 +80,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@mipmap/icon1" />
android:src="@mipmap/cleantu1" />
</FrameLayout>
<View
......@@ -105,7 +105,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@mipmap/icon2" />
android:src="@mipmap/cleantu2" />
</FrameLayout>
<View
......@@ -130,7 +130,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@mipmap/icon3" />
android:src="@mipmap/cleantu3" />
</FrameLayout>
......
<?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">
......@@ -47,7 +48,8 @@
android:text="Click the button to start cleaning"
android:textColor="#000000"
android:textSize="15sp"
android:textStyle="bold" />
android:textStyle="bold"
tools:ignore="HardcodedText" />
<TextView
android:layout_width="wrap_content"
......@@ -57,7 +59,8 @@
android:gravity="center"
android:text="There will be vibration and sound during speaker cleaning,which is normal!"
android:textColor="#999999"
android:textSize="13sp" />
android:textSize="13sp"
tools:ignore="HardcodedText" />
</androidx.appcompat.widget.LinearLayoutCompat>
<com.noober.background.view.BLTextView
......@@ -72,8 +75,8 @@
android:textSize="14sp"
android:textStyle="bold"
app:bl_corners_radius="24dp"
app:bl_gradient_angle="180"
app:bl_gradient_endColor="@color/color_655afd"
app:bl_gradient_startColor="#8720eb"
app:layout_constraintBottom_toBottomOf="parent" />
app:bl_solid_color="@color/theme_color"
app:layout_constraintBottom_toBottomOf="parent"
tools:ignore="HardcodedText" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ 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="match_parent"
......@@ -27,15 +28,15 @@
android:orientation="vertical"
android:visibility="gone">
<!--suppress AndroidElementNotAllowed -->
<ProgressBar
android:id="@+id/pb"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="16dp"
android:layout_marginHorizontal="65dp"
android:layout_height="12dp"
android:layout_marginHorizontal="50dp"
android:progressDrawable="@drawable/shape_splash_s" />
<TextView
android:id="@+id/tv_load"
android:layout_width="wrap_content"
......@@ -92,19 +93,20 @@
</androidx.appcompat.widget.LinearLayoutCompat>
<TextView
<com.noober.background.view.BLTextView
android:id="@+id/id_tv_start"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginHorizontal="40dp"
android:layout_marginBottom="49dp"
android:background="@drawable/bg_gradient_625fff_8720eb"
android:gravity="center"
android:text="START TO USE"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold"
android:visibility="visible"
app:bl_corners_radius="10dp"
app:bl_solid_color="@color/theme_color"
tools:ignore="HardcodedText" />
......
......@@ -81,9 +81,7 @@
android:textSize="18sp"
android:textStyle="bold"
app:bl_corners_radius="24dp"
app:bl_gradient_angle="180"
app:bl_gradient_endColor="@color/color_655afd"
app:bl_gradient_startColor="#8720eb"
app:bl_solid_color="@color/theme_color"
app:layout_constraintBottom_toBottomOf="parent"
tools:ignore="HardcodedText" />
......@@ -176,7 +174,8 @@
android:layout_marginTop="67dp"
android:text="Grant permission to continue"
android:textColor="#666666"
android:textSize="16sp" />
android:textSize="16sp"
tools:ignore="HardcodedText" />
<com.noober.background.view.BLTextView
android:id="@+id/id_gant"
......@@ -192,7 +191,8 @@
app:bl_corners_radius="24dp"
app:bl_gradient_angle="180"
app:bl_gradient_endColor="@color/color_655afd"
app:bl_gradient_startColor="#8720eb" />
app:bl_gradient_startColor="#8720eb"
tools:ignore="HardcodedText" />
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -46,8 +46,9 @@
android:layout_marginVertical="2dp"
android:text="Home"
android:textSize="13sp"
app:bl_selected_textColor="@color/color_4078ff"
app:bl_unSelected_textColor="@color/color_dadde5" />
app:bl_selected_textColor="@color/theme_color"
app:bl_unSelected_textColor="@color/color_dadde5"
tools:ignore="HardcodedText" />
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.LinearLayoutCompat
......@@ -74,8 +75,9 @@
android:layout_marginVertical="2dp"
android:text="Tools"
android:textSize="13sp"
app:bl_selected_textColor="@color/color_4078ff"
app:bl_unSelected_textColor="@color/color_c3c3c3" />
app:bl_selected_textColor="@color/theme_color"
app:bl_unSelected_textColor="@color/color_c3c3c3"
tools:ignore="HardcodedText" />
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.LinearLayoutCompat
......@@ -92,17 +94,17 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
app:bl_selected_drawable="@drawable/tab_tools_s"
app:bl_unSelected_drawable="@drawable/tab_tools_n" />
app:bl_selected_drawable="@drawable/tab_file_s"
app:bl_unSelected_drawable="@drawable/tab_file_n" />
<com.noober.background.view.BLTextView
android:id="@+id/id_tv_manager"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="2dp"
android:text="Manager"
android:text="File"
android:textSize="13sp"
app:bl_selected_textColor="@color/color_4078ff"
app:bl_selected_textColor="@color/theme_color"
app:bl_unSelected_textColor="@color/color_c3c3c3"
tools:ignore="HardcodedText" />
......
......@@ -254,7 +254,7 @@
android:layout_height="50dp"
android:layout_marginHorizontal="40dp"
android:layout_marginVertical="20dp"
android:background="#5b4fff"
android:background="@color/theme_color"
android:gravity="center"
android:text="@string/manage_uppercase"
android:textColor="@color/white"
......
......@@ -20,7 +20,8 @@
android:text="Preview"
android:textColor="#ff000000"
android:textSize="19sp"
android:textStyle="bold" />
android:textStyle="bold"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/fanhui"
......@@ -29,7 +30,8 @@
android:layout_centerVertical="true"
android:layout_marginLeft="18dp"
android:src="@mipmap/fanhui"
app:tint="@color/black" />
app:tint="@color/black"
tools:ignore="ContentDescription,RtlHardcoded" />
</RelativeLayout>
<RelativeLayout
......@@ -62,34 +64,38 @@
android:gravity="center"
android:text="Before"
android:textColor="#666666"
android:textSize="12sp" />
android:textSize="12sp"
tools:ignore="HardcodedText,RtlHardcoded" />
<TextView
android:id="@+id/right_button"
android:layout_width="60dp"
android:layout_height="24dp"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_marginTop="16dp"
android:layout_marginRight="16dp"
android:layout_marginEnd="16dp"
android:background="@drawable/btn_white_r12"
android:gravity="center"
android:text="After"
android:textColor="#666666"
android:textSize="12sp" />
android:textSize="12sp"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/before_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="16dp"
android:layout_toLeftOf="@+id/line" />
android:layout_marginStart="16dp"
android:layout_toStartOf="@+id/line"
tools:ignore="ContentDescription" />
<ImageView
android:id="@+id/after_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginRight="16dp"
android:layout_toRightOf="@+id/line" />
android:layout_toRightOf="@+id/line"
tools:ignore="ContentDescription,RtlHardcoded" />
<View
android:id="@+id/line"
......@@ -103,7 +109,8 @@
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@drawable/yuanicon" />
android:background="@drawable/yuanicon"
tools:ignore="ContentDescription" />
</RelativeLayout>
<!--suppress AndroidElementNotAllowed -->
......@@ -134,7 +141,8 @@
android:text="37.322 KB"
android:textColor="#fffefefe"
android:textSize="12sp"
android:textStyle="bold" />
android:textStyle="bold"
tools:ignore="HardcodedText,RtlHardcoded" />
<ImageView
android:id="@+id/jiantou"
......@@ -142,19 +150,21 @@
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@drawable/jiantou" />
android:background="@drawable/jiantou"
tools:ignore="ContentDescription" />
<TextView
android:id="@+id/after_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="21dp"
android:layout_toRightOf="@+id/jiantou"
android:layout_marginStart="21dp"
android:layout_toEndOf="@+id/jiantou"
android:text="40.270 KB"
android:textColor="#fffefefe"
android:textSize="12sp"
android:textStyle="bold" />
android:textStyle="bold"
tools:ignore="HardcodedText" />
</RelativeLayout>
......@@ -169,18 +179,15 @@
</RelativeLayout>
<RelativeLayout
<LinearLayout
android:id="@+id/bottom_layout"
android:layout_width="match_parent"
android:layout_height="170dp"
android:layout_alignParentBottom="true"
android:background="@color/white"
android:orientation="vertical"
android:paddingTop="21dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/view_line">
<SeekBar
android:id="@+id/seekBar"
......@@ -191,48 +198,56 @@
android:progressDrawable="@drawable/seekbar_bg"
android:thumb="@drawable/preview" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/seekBar"
android:layout_marginLeft="16dp"
android:layout_gravity="start"
android:layout_marginStart="16dp"
android:text="Best photo quality"
android:textColor="#ff000000"
android:textSize="14sp" />
android:textSize="14sp"
tools:ignore="HardcodedText" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/seekBar"
android:layout_alignParentRight="true"
android:layout_marginRight="16dp"
android:layout_gravity="end"
android:layout_marginEnd="16dp"
android:text="Most space saved"
android:textColor="#ff000000"
android:textSize="14sp" />
</RelativeLayout>
android:textSize="14sp"
tools:ignore="HardcodedText" />
</FrameLayout>
<View
android:id="@+id/view_line"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_above="@+id/btn_compress"
android:layout_marginTop="33dp"
android:background="#EEEEEE" />
android:layout_marginTop="5dp"
android:background="#EEEEEE"
tools:ignore="ObsoleteLayoutParam" />
<TextView
<com.noober.background.view.BLTextView
android:id="@+id/btn_compress"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_marginLeft="43dp"
android:layout_marginTop="8dp"
android:layout_marginRight="43dp"
android:layout_marginBottom="8dp"
android:layout_marginHorizontal="40dp"
android:layout_marginTop="15dp"
android:background="@drawable/btn_blue_bg"
android:gravity="center"
android:text="COMPRESS ALL"
android:textColor="#ffffffff"
android:textSize="19sp"
android:textStyle="bold" />
</RelativeLayout>
android:textStyle="bold"
app:bl_corners_radius="5dp"
app:bl_solid_color="@color/theme_color"
tools:ignore="HardcodedText" />
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
......@@ -82,8 +82,8 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="59dp"
android:layout_height="35dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="@id/iv_launches_border"
app:layout_constraintEnd_toEndOf="@id/iv_launches_border"
......
......@@ -82,7 +82,7 @@
android:padding="12dp"
android:visibility="gone"
app:bl_corners_radius="5dp"
app:bl_solid_color="#1A4772FF">
app:bl_solid_color="#ECEEFA">
<TextView
android:layout_width="0dp"
......@@ -90,7 +90,7 @@
android:layout_weight="1"
android:text="Grant permission to find more junk"
android:textColor="@color/theme_color"
android:textSize="13sp"
android:textSize="12sp"
tools:ignore="HardcodedText" />
<androidx.appcompat.widget.AppCompatImageView
......
<?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="match_parent"
android:orientation="vertical">
......@@ -25,7 +26,8 @@
android:text="Settings"
android:textColor="#000000"
android:textSize="18sp"
android:textStyle="bold" />
android:textStyle="bold"
tools:ignore="HardcodedText" />
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
......@@ -48,7 +50,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="14dp"
android:layout_marginEnd="8dp"
android:src="@drawable/settingsnotifi" />
android:src="@drawable/settingsiocn" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="0dp"
......@@ -61,7 +63,8 @@
android:layout_height="wrap_content"
android:text="Notification hiding"
android:textColor="#000000"
android:textSize="13sp" />
android:textSize="13sp"
tools:ignore="HardcodedText" />
<TextView
android:layout_width="wrap_content"
......@@ -69,7 +72,8 @@
android:layout_marginTop="4dp"
android:text="Hide app notifications in the notification bar"
android:textColor="#999999"
android:textSize="12sp" />
android:textSize="12sp"
tools:ignore="HardcodedText" />
</androidx.appcompat.widget.LinearLayoutCompat>
......@@ -96,4 +100,5 @@
android:id="@+id/id_setting_rl"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
\ No newline at end of file
......@@ -20,7 +20,7 @@
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_gravity="center_vertical"
android:src="@mipmap/logo_notification"
android:src="@mipmap/logo"
tools:ignore="ContentDescription" />
<TextView
......
app/src/main/res/mipmap-xxhdpi/logo.png

17.9 KB | W: | H:

app/src/main/res/mipmap-xxhdpi/logo.png

90.1 KB | W: | H:

app/src/main/res/mipmap-xxhdpi/logo.png
app/src/main/res/mipmap-xxhdpi/logo.png
app/src/main/res/mipmap-xxhdpi/logo.png
app/src/main/res/mipmap-xxhdpi/logo.png
  • 2-up
  • Swipe
  • Onion skin
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