去掉无用代码
This commit is contained in:
parent
ee79f241e1
commit
f7df0fa888
|
|
@ -6,10 +6,7 @@ import android.view.View
|
|||
import android.view.ViewGroup
|
||||
import android.widget.LinearLayout
|
||||
import androidx.core.graphics.toColorInt
|
||||
import androidx.core.view.ViewCompat
|
||||
import androidx.core.view.WindowInsetsCompat
|
||||
import androidx.core.view.isVisible
|
||||
import androidx.core.view.updatePadding
|
||||
import androidx.fragment.app.viewModels
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import com.ama.core.architecture.appBase.AppViewsFragment
|
||||
|
|
@ -165,7 +162,7 @@ class TasksFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnTab
|
|||
llTaskGame.postDelayed({
|
||||
ivAdIndi.isVisible = false
|
||||
showGuide1()
|
||||
}, 5)
|
||||
}, 1)
|
||||
}
|
||||
|
||||
updateDailySignButUI()
|
||||
|
|
|
|||
|
|
@ -5,20 +5,16 @@ import android.app.PendingIntent
|
|||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.os.Build
|
||||
import android.os.Environment
|
||||
import android.widget.RemoteViews
|
||||
import com.blankj.utilcode.util.StringUtils
|
||||
import com.example.features.notification.controller.NotificationRemoteViewsBuilder
|
||||
import com.remax.base.utils.FileScanner
|
||||
import com.remax.notification.R
|
||||
import com.remax.notification.check.NotificationCheckController
|
||||
import com.remax.notification.config.PushContent
|
||||
import com.remax.notification.config.PushContentController
|
||||
import com.remax.notification.newUtil.NotificationDatas
|
||||
import com.remax.notification.service.NotificationKeepAliveServiceManager
|
||||
import java.io.File
|
||||
import java.time.LocalDate
|
||||
import kotlin.random.Random
|
||||
|
||||
|
||||
|
||||
enum class NotificationType {
|
||||
|
|
@ -106,52 +102,7 @@ fun entryPointIntent(context: Context): Intent =
|
|||
putExtra("notification_timestamp", System.currentTimeMillis())
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置红点显示状态(用于测试或特殊情况)
|
||||
* @param context 上下文
|
||||
*/
|
||||
fun resetRedPointStatus(context: Context) {
|
||||
try {
|
||||
val sharedPreferences =
|
||||
context.getSharedPreferences("notification_red_point", Context.MODE_PRIVATE)
|
||||
sharedPreferences.edit()
|
||||
.remove("has_clicked_today")
|
||||
.remove("last_click_date")
|
||||
.apply()
|
||||
} catch (e: Exception) {
|
||||
// 忽略异常
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否应该显示红点(点击后才隐藏)
|
||||
* @param context 上下文
|
||||
* @return true 如果应该显示红点,false 如果不应该显示
|
||||
*/
|
||||
private fun shouldShowRedPoint(context: Context): Boolean {
|
||||
return try {
|
||||
val sharedPreferences =
|
||||
context.getSharedPreferences("notification_red_point", Context.MODE_PRIVATE)
|
||||
val hasClickedToday = sharedPreferences.getBoolean("has_clicked_today", false)
|
||||
val lastClickDate = sharedPreferences.getString("last_click_date", "")
|
||||
val today = LocalDate.now().toString()
|
||||
|
||||
// 如果是新的一天,重置点击状态
|
||||
if (lastClickDate != today) {
|
||||
sharedPreferences.edit()
|
||||
.putBoolean("has_clicked_today", false)
|
||||
.putString("last_click_date", today)
|
||||
.apply()
|
||||
return true // 新的一天显示红点
|
||||
}
|
||||
|
||||
// 如果今天还没点击过,显示红点
|
||||
!hasClickedToday
|
||||
} catch (e: Exception) {
|
||||
// 异常情况下默认显示红点
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 标记红点已点击(隐藏红点)
|
||||
|
|
@ -173,195 +124,7 @@ fun markRedPointClicked(context: Context) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算恢复文件数量
|
||||
* @param context 上下文
|
||||
* @return 文件数量,如果出错则返回 0
|
||||
*/
|
||||
private fun getRecoveredFileCount(context: Context): Int {
|
||||
return try {
|
||||
val externalStorage = Environment.getExternalStorageDirectory()
|
||||
val copyDir = File(externalStorage, FileScanner.COPY_DIR)
|
||||
|
||||
if (!copyDir.exists() || !copyDir.isDirectory) {
|
||||
return 0
|
||||
}
|
||||
|
||||
var fileCount = 0
|
||||
copyDir.listFiles()?.forEach { subDir ->
|
||||
if (subDir.isDirectory) {
|
||||
subDir.listFiles()?.let { files ->
|
||||
fileCount += files.size
|
||||
}
|
||||
}
|
||||
}
|
||||
fileCount
|
||||
} catch (e: Exception) {
|
||||
// 忽略无权限等异常情况
|
||||
0
|
||||
}
|
||||
}
|
||||
|
||||
class GeneralModelManager() {
|
||||
|
||||
fun getModel(context: Context,type:NotificationCheckController.NotificationType): GeneralNotificationData {
|
||||
val notificationId = type2notificationId[NotificationType.GENERAL] ?: 0
|
||||
val data = PushContentController.getNextPushContent()!!
|
||||
val title = data.title
|
||||
val content = data.desc
|
||||
val pendingIntent = entryPointPendingIntent(context, notificationId) {
|
||||
it.putExtra(LANDING_NOTIFICATION_ACTION, data.actionType)
|
||||
it.putExtra(LANDING_NOTIFICATION_FROM, type.string)
|
||||
it.putExtra(LANDING_NOTIFICATION_TITLE, title)
|
||||
it.putExtra(LANDING_NOTIFICATION_CONTENT, content)
|
||||
}
|
||||
|
||||
val badgeCount = Random.nextInt(1, 100).toString()
|
||||
val contentView = NotificationRemoteViewsBuilder(
|
||||
context.packageName,
|
||||
R.layout.layout_notification_general_12,
|
||||
R.layout.layout_notification_general
|
||||
)
|
||||
.setImageViewResource(
|
||||
R.id.iv, when (data.iconType) {
|
||||
PushContent.ICON_TYPE_PHOTO -> R.drawable.ic_noti_photo
|
||||
PushContent.ICON_TYPE_VIDEO -> R.drawable.ic_noti_video
|
||||
PushContent.ICON_TYPE_DOCUMENT -> R.drawable.ic_noti_document
|
||||
PushContent.ICON_TYPE_AUDIO -> R.drawable.ic_noti_audio
|
||||
PushContent.ICON_TYPE_SCREENSHOT -> R.drawable.ic_noti_shot
|
||||
PushContent.ICON_TYPE_RECOVERED -> R.drawable.ic_noti_recover
|
||||
else -> R.drawable.ic_noti_photo
|
||||
}
|
||||
)
|
||||
.setTextViewText(R.id.tvCount, badgeCount)
|
||||
.setTextViewText(R.id.tvTitle, title)
|
||||
.setTextViewText(R.id.tvDesc, content)
|
||||
.setTextViewText(
|
||||
R.id.tvAction, when (data.iconType) {
|
||||
PushContent.ICON_TYPE_SCREENSHOT -> StringUtils.getString(R.string.noti_clean)
|
||||
else -> StringUtils.getString(R.string.noti_recovery)
|
||||
}
|
||||
)
|
||||
.build()
|
||||
|
||||
val bigContentView = NotificationRemoteViewsBuilder(
|
||||
context.packageName,
|
||||
R.layout.layout_notification_general_big_12,
|
||||
R.layout.layout_notification_general_big
|
||||
)
|
||||
.setImageViewResource(
|
||||
R.id.iv, when (data.iconType) {
|
||||
PushContent.ICON_TYPE_PHOTO -> R.drawable.ic_noti_photo
|
||||
PushContent.ICON_TYPE_VIDEO -> R.drawable.ic_noti_video
|
||||
PushContent.ICON_TYPE_DOCUMENT -> R.drawable.ic_noti_document
|
||||
PushContent.ICON_TYPE_AUDIO -> R.drawable.ic_noti_audio
|
||||
PushContent.ICON_TYPE_SCREENSHOT -> R.drawable.ic_noti_shot
|
||||
PushContent.ICON_TYPE_RECOVERED -> R.drawable.ic_noti_recover
|
||||
else -> R.drawable.ic_noti_photo
|
||||
}
|
||||
)
|
||||
.setTextViewText(R.id.tvCount, badgeCount)
|
||||
.setTextViewText(R.id.tvTitle, title)
|
||||
.setTextViewText(R.id.tvDesc, content)
|
||||
.setTextViewText(
|
||||
R.id.tvAction, when (data.iconType) {
|
||||
PushContent.ICON_TYPE_SCREENSHOT -> StringUtils.getString(R.string.noti_clean)
|
||||
else -> StringUtils.getString(R.string.noti_recovery)
|
||||
}
|
||||
)
|
||||
.build()
|
||||
|
||||
return GeneralNotificationData(
|
||||
notificationId = notificationId,
|
||||
contentTitle = title,
|
||||
contentContent = content,
|
||||
contentIntent = pendingIntent,
|
||||
contentView = contentView,
|
||||
bigContentView = bigContentView
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class FixTimeModelManager() {
|
||||
|
||||
fun getModel(context: Context,type:NotificationCheckController.NotificationType): GeneralNotificationData {
|
||||
val notificationId = type2notificationId[NotificationType.GENERAL] ?: 0
|
||||
val data = PushContentController.getNextPushContent()!!
|
||||
val title = data.title
|
||||
val content = data.desc
|
||||
val pendingIntent = entryPointPendingIntent(context, notificationId) {
|
||||
it.putExtra(LANDING_NOTIFICATION_ACTION, data.actionType)
|
||||
it.putExtra(LANDING_NOTIFICATION_FROM, type.string)
|
||||
it.putExtra(LANDING_NOTIFICATION_TITLE, title)
|
||||
it.putExtra(LANDING_NOTIFICATION_CONTENT, content)
|
||||
}
|
||||
|
||||
val badgeCount = Random.nextInt(1, 100).toString()
|
||||
val contentView = NotificationRemoteViewsBuilder(
|
||||
context.packageName,
|
||||
R.layout.layout_notification_beauty_12,
|
||||
R.layout.layout_notification_beauty
|
||||
)
|
||||
.setImageViewResource(
|
||||
R.id.iv, when (data.iconType) {
|
||||
PushContent.ICON_TYPE_PHOTO -> R.drawable.ic_noti_photo
|
||||
PushContent.ICON_TYPE_VIDEO -> R.drawable.ic_noti_video
|
||||
PushContent.ICON_TYPE_DOCUMENT -> R.drawable.ic_noti_document
|
||||
PushContent.ICON_TYPE_AUDIO -> R.drawable.ic_noti_audio
|
||||
PushContent.ICON_TYPE_SCREENSHOT -> R.drawable.ic_noti_shot
|
||||
PushContent.ICON_TYPE_RECOVERED -> R.drawable.ic_noti_recover
|
||||
else -> R.drawable.ic_noti_photo
|
||||
}
|
||||
)
|
||||
.setTextViewText(R.id.tvCount, badgeCount)
|
||||
.setTextViewText(R.id.tvTitle, title)
|
||||
.setTextViewText(R.id.tvDesc, content)
|
||||
.setTextViewText(
|
||||
R.id.tvAction, when (data.iconType) {
|
||||
PushContent.ICON_TYPE_SCREENSHOT -> StringUtils.getString(R.string.noti_clean)
|
||||
else -> StringUtils.getString(R.string.noti_recovery)
|
||||
}
|
||||
)
|
||||
.build()
|
||||
|
||||
val bigContentView = NotificationRemoteViewsBuilder(
|
||||
context.packageName,
|
||||
R.layout.layout_notification_beauty_12,
|
||||
R.layout.layout_notification_beauty
|
||||
)
|
||||
.setImageViewResource(
|
||||
R.id.iv, when (data.iconType) {
|
||||
PushContent.ICON_TYPE_PHOTO -> R.drawable.ic_noti_photo
|
||||
PushContent.ICON_TYPE_VIDEO -> R.drawable.ic_noti_video
|
||||
PushContent.ICON_TYPE_DOCUMENT -> R.drawable.ic_noti_document
|
||||
PushContent.ICON_TYPE_AUDIO -> R.drawable.ic_noti_audio
|
||||
PushContent.ICON_TYPE_SCREENSHOT -> R.drawable.ic_noti_shot
|
||||
PushContent.ICON_TYPE_RECOVERED -> R.drawable.ic_noti_recover
|
||||
else -> R.drawable.ic_noti_photo
|
||||
}
|
||||
)
|
||||
.setTextViewText(R.id.tvCount, badgeCount)
|
||||
.setTextViewText(R.id.tvTitle, title)
|
||||
.setTextViewText(R.id.tvDesc, content)
|
||||
.setTextViewText(
|
||||
R.id.tvAction, when (data.iconType) {
|
||||
PushContent.ICON_TYPE_SCREENSHOT -> StringUtils.getString(R.string.noti_clean)
|
||||
else -> StringUtils.getString(R.string.noti_recovery)
|
||||
}
|
||||
)
|
||||
.build()
|
||||
|
||||
return GeneralNotificationData(
|
||||
notificationId = notificationId,
|
||||
contentTitle = title,
|
||||
contentContent = content,
|
||||
contentIntent = pendingIntent,
|
||||
contentView = contentView,
|
||||
bigContentView = bigContentView
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
class ResidentModelManger {
|
||||
|
||||
|
|
|
|||
|
|
@ -15,13 +15,11 @@ import androidx.core.app.NotificationManagerCompat
|
|||
import androidx.core.content.ContextCompat
|
||||
import com.ama.core.architecture.BaseApp
|
||||
import com.ama.core.architecture.util.DateUtil
|
||||
import com.ama.core.architecture.util.permission.PermissionUtil
|
||||
import com.gamedog.statisticreporter.StatisticUtil
|
||||
import com.remax.base.ext.canSendNotification
|
||||
import com.remax.base.report.DataReportManager
|
||||
import com.remax.notification.NotifyConst
|
||||
import com.remax.notification.R
|
||||
import com.remax.notification.builder.GeneralModelManager
|
||||
import com.remax.notification.builder.GeneralNotificationData
|
||||
import com.remax.notification.builder.NotificationType
|
||||
import com.remax.notification.builder.ResidentModelManger
|
||||
|
|
@ -29,7 +27,6 @@ import com.remax.notification.builder.type2notificationId
|
|||
import com.remax.notification.check.NotificationCheckController
|
||||
import com.remax.notification.config.NotificationConfigController
|
||||
import com.remax.notification.newUtil.NotificationRecorder
|
||||
import com.remax.notification.newUtil.NotificationUtil
|
||||
import com.remax.notification.receiver.NotificationDeleteReceiver
|
||||
import com.remax.notification.service.NotificationKeepAliveService
|
||||
import com.remax.notification.timing.NotificationTimingController
|
||||
|
|
@ -331,22 +328,6 @@ object NotificationTriggerController {
|
|||
}
|
||||
}
|
||||
|
||||
fun triggerGeneralNotification(
|
||||
type: NotificationCheckController.NotificationType, onNotificationSent: (() -> Unit)? = null
|
||||
) {
|
||||
if (context?.canSendNotification() == true) {
|
||||
triggerNotification(
|
||||
notificationType = "常规通知",
|
||||
modelBuilder = { context -> GeneralModelManager().getModel(context, type) },
|
||||
notificationBuilder = { data -> general(data) },
|
||||
onNotificationSent = { notificationData, notification ->
|
||||
onNotificationSent?.invoke()
|
||||
generalTrack(type, notificationData)
|
||||
// 检查是否需要重复通知
|
||||
checkAndStartRepeatNotification(notificationData, notification, type)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
fun triggerFixTimeNotification() {
|
||||
checkAndStartFixTimeNotification()
|
||||
|
|
|
|||
|
|
@ -1,29 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="60dp"
|
||||
android:height="60dp"
|
||||
android:viewportWidth="60"
|
||||
android:viewportHeight="60">
|
||||
<path
|
||||
android:pathData="M34.211,22.032m-22.032,0a22.032,22.032 0,1 1,44.065 0a22.032,22.032 0,1 1,-44.065 0">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="14.664"
|
||||
android:startY="3.338"
|
||||
android:endX="55.621"
|
||||
android:endY="34.844"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFFD8C75"/>
|
||||
<item android:offset="1" android:color="#FFFD535D"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M27.97,34.97m-24.97,0a24.97,24.97 0,1 1,49.94 0a24.97,24.97 0,1 1,-49.94 0"
|
||||
android:fillColor="#FD8070"
|
||||
android:fillAlpha="0.4"/>
|
||||
<path
|
||||
android:pathData="M39.451,33.618C39.295,33.596 39.155,33.484 39.032,33.282C38.909,33.081 38.813,32.712 38.746,32.174C38.634,31.302 38.349,30.658 37.89,30.244C37.431,29.83 36.721,29.533 35.758,29.354C34.751,29.153 33.861,28.744 33.089,28.129C32.317,27.513 31.674,26.937 31.159,26.4C30.666,25.93 30.286,25.762 30.017,25.896C29.749,26.031 29.614,26.277 29.614,26.635V28.079V31.234C29.614,32.488 29.609,33.842 29.598,35.297C29.586,36.752 29.581,38.128 29.581,39.426V42.851V44.764C29.603,45.302 29.519,45.9 29.329,46.561C29.139,47.221 28.781,47.842 28.255,48.424C27.729,49.006 27.029,49.504 26.156,49.918C25.283,50.332 24.198,50.573 22.9,50.64C21.579,50.707 20.387,50.472 19.324,49.935C18.261,49.398 17.438,48.721 16.857,47.903C16.275,47.087 15.989,46.191 16,45.218C16.012,44.244 16.431,43.332 17.259,42.481C18.087,41.631 18.983,41.038 19.945,40.702C20.908,40.366 21.837,40.182 22.732,40.148C23.627,40.114 24.427,40.176 25.132,40.333C25.181,40.343 25.228,40.354 25.274,40.365C25.964,40.522 26.694,40 26.694,39.292V31.268C26.694,28.627 26.705,25.65 26.727,22.337C26.727,21.688 26.895,21.157 27.231,20.743C27.566,20.329 28.014,20.088 28.574,20.021C29.044,19.954 29.43,20.049 29.732,20.306C30.034,20.564 30.342,20.922 30.655,21.381C30.969,21.839 31.355,22.36 31.813,22.942C32.272,23.524 32.893,24.094 33.677,24.654C34.348,25.169 34.936,25.538 35.439,25.762C35.943,25.986 36.413,26.193 36.849,26.383C37.286,26.573 37.717,26.803 38.142,27.071C38.567,27.34 39.037,27.776 39.552,28.381C40.067,28.963 40.38,29.567 40.492,30.194C40.604,30.82 40.61,31.391 40.509,31.906C40.408,32.421 40.246,32.84 40.022,33.165C39.798,33.489 39.608,33.64 39.451,33.618Z"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillAlpha="0.9"/>
|
||||
</vector>
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="60dp"
|
||||
android:height="60dp"
|
||||
android:viewportWidth="60"
|
||||
android:viewportHeight="60">
|
||||
<path
|
||||
android:pathData="M55.521,18.426L35.715,14.012C35.649,13.997 35.587,13.97 35.533,13.932C35.478,13.893 35.431,13.844 35.395,13.787L31.43,7.547C31.251,7.264 31.017,7.019 30.743,6.826C30.468,6.634 30.158,6.497 29.831,6.425L16.003,3.344C15.342,3.197 14.65,3.319 14.079,3.682C13.508,4.045 13.105,4.619 12.957,5.279L5.629,38.159C5.483,38.82 5.604,39.512 5.967,40.083C6.33,40.654 6.905,41.057 7.565,41.206L48.416,50.309C49.076,50.456 49.768,50.334 50.339,49.971C50.91,49.608 51.314,49.034 51.462,48.374L57.457,21.472C57.604,20.811 57.482,20.12 57.119,19.549C56.756,18.978 56.181,18.574 55.521,18.426Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="15.436"
|
||||
android:startY="6.33"
|
||||
android:endX="44.121"
|
||||
android:endY="48.227"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFFDCA65"/>
|
||||
<item android:offset="1" android:color="#FFFAB143"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M26.035,18.333H47.5C48.163,18.333 48.799,18.597 49.268,19.066C49.737,19.535 50,20.17 50,20.833V55.833C50,56.496 49.737,57.132 49.268,57.601C48.799,58.07 48.163,58.333 47.5,58.333H2.5C1.837,58.333 1.201,58.07 0.732,57.601C0.263,57.132 0,56.496 0,55.833V15.833C0,15.17 0.263,14.535 0.732,14.066C1.201,13.597 1.837,13.333 2.5,13.333H21.035L26.035,18.333Z"
|
||||
android:fillColor="#FBBA50"
|
||||
android:fillAlpha="0.3"/>
|
||||
<path
|
||||
android:pathData="M25,28.333C23.022,28.333 21.089,28.92 19.444,30.019C17.8,31.118 16.518,32.679 15.761,34.507C15.004,36.334 14.806,38.345 15.192,40.284C15.578,42.224 16.53,44.006 17.929,45.405C19.327,46.803 21.109,47.756 23.049,48.141C24.989,48.527 27,48.329 28.827,47.572C30.654,46.815 32.216,45.534 33.315,43.889C34.414,42.245 35,40.311 35,38.333H25V28.333Z"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillAlpha="0.9"/>
|
||||
</vector>
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="60dp"
|
||||
android:height="60dp"
|
||||
android:viewportWidth="60"
|
||||
android:viewportHeight="60">
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0,0h60v60h-60z"/>
|
||||
<path
|
||||
android:pathData="M44.592,5.967C45.342,6.176 46.007,6.618 46.487,7.229C46.968,7.84 47.24,8.587 47.264,9.362L47.29,10.249C47.343,12 48.529,13.513 50.217,13.983L50.521,14.067C53.569,14.914 55.357,18.059 54.514,21.091L48.966,41.055C48.123,44.087 44.968,45.858 41.92,45.011L12.815,36.922C9.766,36.074 7.978,32.929 8.821,29.897L14.37,9.933C15.212,6.901 18.367,5.13 21.415,5.977L21.719,6.062C23.406,6.531 25.203,5.847 26.152,4.374L26.633,3.628C27.053,2.977 27.672,2.477 28.399,2.201C29.126,1.926 29.923,1.89 30.674,2.099L44.592,5.967Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="19.047"
|
||||
android:startY="1.881"
|
||||
android:endX="45.879"
|
||||
android:endY="40.824"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF7EE0FE"/>
|
||||
<item android:offset="1" android:color="#FF338CFB"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M33.667,11.25C34.602,11.25 35.512,11.549 36.264,12.104C37.017,12.659 37.571,13.44 37.847,14.333L38.341,15.931C38.859,17.607 40.409,18.75 42.163,18.75H43.125C46.922,18.75 50,21.828 50,25.625V50.625C50,54.422 46.922,57.5 43.125,57.5H6.875C3.078,57.5 0,54.422 0,50.625V25.625C0,21.828 3.078,18.75 6.875,18.75H7.837C9.591,18.75 11.141,17.607 11.659,15.931L12.153,14.333C12.429,13.44 12.983,12.659 13.736,12.104C14.488,11.549 15.398,11.25 16.333,11.25H33.667Z"
|
||||
android:fillColor="#439EFC"
|
||||
android:fillAlpha="0.4"/>
|
||||
<path
|
||||
android:pathData="M24.375,37.5m-6.5,0a6.5,6.5 0,1 1,13 0a6.5,6.5 0,1 1,-13 0"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#ffffff"/>
|
||||
</group>
|
||||
</vector>
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="60dp"
|
||||
android:height="60dp"
|
||||
android:viewportWidth="60"
|
||||
android:viewportHeight="60">
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M-4.286,-1.857h65.714v65.714h-65.714z"/>
|
||||
<path
|
||||
android:pathData="M49.09,8.228C50.069,8.527 50.895,9.189 51.4,10.079L57.902,21.534C58.444,22.489 58.569,23.626 58.248,24.677L49.473,53.399C49.298,53.969 48.891,54.443 48.342,54.716C47.792,54.989 47.145,55.039 46.542,54.855L8.346,43.185C7.746,42.997 7.24,42.594 6.937,42.061C6.635,41.529 6.56,40.91 6.729,40.34L18.662,1.282C19.025,0.094 20.338,-0.557 21.593,-0.173L49.09,8.228Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="20.726"
|
||||
android:startY="3.153"
|
||||
android:endX="51.574"
|
||||
android:endY="45.867"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF00EECD"/>
|
||||
<item android:offset="1" android:color="#FF03DCBE"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M33.942,12.225C34.978,12.225 35.973,12.626 36.719,13.345L46.906,23.171C47.688,23.925 48.129,24.964 48.129,26.05V58.322C48.129,58.96 47.865,59.572 47.397,60.023C46.929,60.475 46.294,60.728 45.632,60.728H3.687C3.027,60.724 2.395,60.469 1.928,60.019C1.461,59.569 1.196,58.959 1.19,58.322V14.63C1.19,13.301 2.309,12.225 3.687,12.225H33.942Z"
|
||||
android:fillColor="#02E0C2"
|
||||
android:fillAlpha="0.4"/>
|
||||
<path
|
||||
android:pathData="M20.025,42.574C21.424,43.611 23.16,44.09 24.89,43.914C24.97,43.905 25.049,43.892 25.132,43.881C25.286,43.859 25.443,43.837 25.594,43.806C25.688,43.787 25.778,43.765 25.872,43.74C26.02,43.707 26.166,43.669 26.312,43.622C26.381,43.6 26.449,43.575 26.518,43.551C26.92,43.413 27.307,43.24 27.676,43.031L27.701,43.017C28.515,42.547 29.235,41.928 29.818,41.191C29.846,41.155 29.876,41.114 29.904,41.075C30.943,39.711 31.507,38.042 31.502,36.328H29.81C29.763,36.328 29.722,36.304 29.7,36.262C29.678,36.221 29.681,36.172 29.706,36.133L32.547,31.677C32.569,31.642 32.607,31.62 32.648,31.62C32.69,31.62 32.728,31.642 32.75,31.677L35.591,36.133C35.616,36.172 35.619,36.221 35.6,36.262C35.578,36.306 35.536,36.328 35.49,36.328H33.801C33.801,38.441 33.171,40.396 32.101,42.011C32.088,42.035 32.079,42.057 32.065,42.079C31.953,42.244 31.832,42.398 31.711,42.555C31.667,42.613 31.625,42.673 31.579,42.734C31.403,42.957 31.218,43.163 31.026,43.369L30.974,43.424C30.143,44.299 29.153,45.003 28.056,45.506L27.879,45.589C27.679,45.677 27.467,45.754 27.261,45.825C27.162,45.861 27.065,45.897 26.964,45.927C26.779,45.985 26.592,46.029 26.403,46.078C26.276,46.108 26.152,46.141 26.023,46.166C25.971,46.18 25.924,46.194 25.869,46.205C25.69,46.238 25.514,46.257 25.333,46.279L25.14,46.306C22.849,46.543 20.55,45.916 18.699,44.541C18.176,44.145 18.05,43.41 18.416,42.866C18.586,42.607 18.856,42.429 19.161,42.371C19.463,42.321 19.777,42.393 20.025,42.574ZM14.609,36.334C14.606,34.321 15.192,32.349 16.298,30.665C16.314,30.638 16.325,30.61 16.342,30.586C16.477,30.393 16.614,30.203 16.763,30.019L16.812,29.953C17.761,28.74 18.99,27.775 20.393,27.139C20.432,27.123 20.47,27.104 20.509,27.084C20.731,26.991 20.954,26.906 21.182,26.826C21.268,26.799 21.35,26.765 21.435,26.741C21.633,26.68 21.834,26.625 22.038,26.578C22.151,26.554 22.263,26.523 22.376,26.499C22.431,26.488 22.483,26.471 22.538,26.457C22.69,26.43 22.844,26.419 22.995,26.4C23.097,26.386 23.204,26.369 23.308,26.356C23.562,26.331 23.815,26.32 24.067,26.314C24.114,26.314 24.161,26.306 24.208,26.306C26.188,26.306 28.116,26.941 29.708,28.119C30.234,28.512 30.358,29.249 29.994,29.794C29.824,30.052 29.554,30.231 29.249,30.289C28.947,30.344 28.633,30.272 28.388,30.088C26.986,29.051 25.247,28.572 23.512,28.748L23.319,28.776C23.143,28.795 22.973,28.823 22.805,28.858C22.731,28.872 22.657,28.892 22.582,28.911C22.417,28.949 22.25,28.993 22.087,29.043L21.936,29.098C21.749,29.161 21.57,29.227 21.389,29.307L21.334,29.334C20.258,29.821 19.315,30.561 18.586,31.488L18.572,31.507C17.494,32.885 16.911,34.585 16.917,36.334H18.605C18.652,36.334 18.693,36.359 18.715,36.4C18.737,36.441 18.735,36.491 18.707,36.529L15.863,40.985C15.841,41.02 15.803,41.042 15.762,41.042C15.72,41.042 15.682,41.02 15.66,40.985L12.819,36.532C12.816,36.529 12.813,36.524 12.811,36.521C12.75,36.444 12.808,36.331 12.907,36.334H14.609Z"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillAlpha="0.9"/>
|
||||
</group>
|
||||
</vector>
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="60dp"
|
||||
android:height="60dp"
|
||||
android:viewportWidth="60"
|
||||
android:viewportHeight="60">
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0,0h60v60h-60z"/>
|
||||
<path
|
||||
android:pathData="M22.917,1.79L53.043,11.208A6,6 51.675,0 1,56.98 18.725L51.703,35.604A6,6 0,0 1,44.186 39.54L14.06,30.122A6,6 51.675,0 1,10.123 22.605L15.4,5.727A6,6 0,0 1,22.917 1.79z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="18.864"
|
||||
android:startY="2.879"
|
||||
android:endX="36.365"
|
||||
android:endY="41.868"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFFD8C75"/>
|
||||
<item android:offset="1" android:color="#FFFD535D"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M6.833,18.333L48.833,18.333A6,6 0,0 1,54.833 24.333L54.833,54.333A6,6 0,0 1,48.833 60.333L6.833,60.333A6,6 0,0 1,0.833 54.333L0.833,24.333A6,6 0,0 1,6.833 18.333z"
|
||||
android:fillColor="#FD7C6E"
|
||||
android:fillAlpha="0.4"/>
|
||||
<path
|
||||
android:pathData="M18.972,30C20.012,30 20.853,30.862 20.853,31.928C20.853,32.994 20.012,33.856 18.972,33.856C17.932,33.856 17.09,32.994 17.09,31.928C17.09,30.862 17.932,30 18.972,30ZM39.657,49.286H15.673C14.418,49.286 13.715,47.799 14.492,46.788L20.681,38.734C21.284,37.951 22.445,37.951 23.048,38.734L25.622,42.087L30.624,33.118C31.203,32.08 32.66,32.08 33.239,33.118L40.966,46.978C41.539,48.006 40.815,49.286 39.657,49.286Z"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillAlpha="0.9"/>
|
||||
</group>
|
||||
</vector>
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="60dp"
|
||||
android:height="60dp"
|
||||
android:viewportWidth="60"
|
||||
android:viewportHeight="60">
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M0,0h60v60h-60z"/>
|
||||
<path
|
||||
android:pathData="M3.382,48.858C2.754,48.411 2.338,47.686 2.322,46.856L2.326,45.396L2.174,37.51L1.773,16.743C1.752,15.656 2.424,14.719 3.382,14.348V48.858ZM57.071,19.95C58.462,19.923 59.612,21.029 59.639,22.42L59.999,41.08C60.026,42.471 58.92,43.619 57.529,43.646L49.037,42.002V21.708L57.071,19.95Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="5.001"
|
||||
android:startY="16.826"
|
||||
android:endX="38.696"
|
||||
android:endY="57.776"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFFDCA65"/>
|
||||
<item android:offset="1" android:color="#FFFAB143"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M15.475,13.043L42.693,13.043A4,4 0,0 1,46.693 17.044L46.693,45.565A4,4 0,0 1,42.693 49.565L15.475,49.565A4,4 0,0 1,11.475 45.565L11.475,17.044A4,4 0,0 1,15.475 13.043z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="13.461"
|
||||
android:startY="15.904"
|
||||
android:endX="47.005"
|
||||
android:endY="40.855"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFFDCA65"/>
|
||||
<item android:offset="1" android:color="#FFFAB143"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M4,7.826L45.565,7.826A4,4 0,0 1,49.565 11.826L49.565,50.783A4,4 0,0 1,45.565 54.783L4,54.783A4,4 0,0 1,0 50.783L0,11.826A4,4 0,0 1,4 7.826z"
|
||||
android:fillColor="#FBBA50"
|
||||
android:fillAlpha="0.3"/>
|
||||
<path
|
||||
android:pathData="M32.737,30.565C33.312,30.962 33.313,31.812 32.739,32.21L21.81,39.791C21.147,40.251 20.241,39.777 20.24,38.971L20.222,23.835C20.221,23.028 21.126,22.552 21.789,23.01L32.737,30.565Z"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillAlpha="0.9"/>
|
||||
</group>
|
||||
</vector>
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="34dp"
|
||||
android:height="34dp"
|
||||
android:viewportWidth="34"
|
||||
android:viewportHeight="34">
|
||||
<path
|
||||
android:pathData="M6,0L28,0A6,6 0,0 1,34 6L34,28A6,6 0,0 1,28 34L6,34A6,6 0,0 1,0 28L0,6A6,6 0,0 1,6 0z"
|
||||
android:fillColor="#ffffff"/>
|
||||
<path
|
||||
android:pathData="M27.286,26.39C27.098,27.202 26.518,29 25.572,29H8.429C7.482,29 6.714,28.533 6.714,27.955L5,19.604C5,19.028 5.768,18.56 6.714,18.56H9.822L10.143,16.472C10.143,15.703 10.91,15.08 11.857,15.08H19.142C19.537,14.321 20.109,13.34 20.429,13.34H28.143C28.937,13.368 29,15.47 29,15.95L27.286,26.39ZM25.857,16.82H13C12.211,16.82 11.572,17.327 11.572,17.95L11.475,18.56H22.143C23.09,18.56 23.67,18.995 23.858,19.604L25.484,27.53C25.514,27.445 25.546,27.367 25.572,27.26L27.286,17.69C27.286,17.065 26.646,16.82 25.857,16.82ZM11.358,12.218L13.699,13.603L5.447,15.41L6.21,7.447L8.352,9.804C8.674,9.263 9.377,7.992 9.716,7.427C11.11,5.103 13.069,4.268 17.471,5.718C15.825,5.85 14.997,6.037 13.072,8.138C12.155,9.139 11.406,11.393 11.358,12.218Z"
|
||||
android:fillColor="#FEC827"/>
|
||||
</vector>
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="34dp"
|
||||
android:height="34dp"
|
||||
android:viewportWidth="34"
|
||||
android:viewportHeight="34">
|
||||
<path
|
||||
android:pathData="M6,0L28,0A6,6 0,0 1,34 6L34,28A6,6 0,0 1,28 34L6,34A6,6 0,0 1,0 28L0,6A6,6 0,0 1,6 0z"
|
||||
android:fillColor="#ffffff"/>
|
||||
<path
|
||||
android:pathData="M25.424,16.62H26.799C27.56,16.62 28.076,17.217 27.951,17.968L26.211,28.333C26.176,28.518 26.077,28.685 25.933,28.807C25.789,28.928 25.608,28.996 25.419,29H7.729C7.54,28.993 7.359,28.924 7.214,28.803C7.069,28.683 6.968,28.517 6.927,28.333L5.026,17.968C4.99,17.802 4.991,17.63 5.031,17.465C5.072,17.3 5.149,17.146 5.258,17.016C5.367,16.886 5.505,16.782 5.66,16.713C5.815,16.645 5.985,16.613 6.154,16.62H7.532V12.495C7.532,11.732 8.156,11.118 8.904,11.118H12.562C12.79,11.118 13.08,11.267 13.212,11.454L14.364,13.051C14.498,13.238 14.796,13.387 15.017,13.387H24.608C24.716,13.387 24.823,13.408 24.923,13.45C25.022,13.491 25.113,13.552 25.188,13.629C25.264,13.706 25.324,13.797 25.365,13.897C25.405,13.997 25.425,14.104 25.424,14.212V16.62ZM22.256,7.069C23.96,7.256 31.121,8.583 28.383,17.411C27.723,18.378 29.756,11.415 22.254,10.456V12.43C22.254,12.71 22.079,12.804 21.863,12.67L16.056,9.132C15.854,9.01 15.84,8.784 16.056,8.652L21.863,5.062C22.091,4.918 22.254,5.036 22.254,5.302V7.069H22.256ZM8.904,15.243V16.62H24.044V15.243H8.902H8.904Z"
|
||||
android:fillColor="#FFC926"/>
|
||||
</vector>
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="8dp"
|
||||
android:height="8dp"
|
||||
android:viewportWidth="8"
|
||||
android:viewportHeight="8">
|
||||
<path
|
||||
android:strokeWidth="1"
|
||||
android:pathData="M4,4m-3.5,0a3.5,3.5 0,1 1,7 0a3.5,3.5 0,1 1,-7 0"
|
||||
android:fillColor="#FE6100"
|
||||
android:strokeColor="#ffffff"/>
|
||||
</vector>
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
<?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="64dp"
|
||||
android:background="@drawable/noti_bg_r16_white"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="12dp">
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="45dp"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_noti_photo" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCount"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:background="@drawable/noti_bg_badge"
|
||||
android:gravity="center"
|
||||
android:minWidth="18dp"
|
||||
android:minHeight="18dp"
|
||||
android:paddingHorizontal="2dp"
|
||||
android:text="12"
|
||||
android:textColor="#fff"
|
||||
android:textSize="11sp" />
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:lines="1"
|
||||
android:textColor="#333333"
|
||||
android:textSize="14sp"
|
||||
tools:text="Storage summary readyStorage summary readyStorage summary readyStorage summary ready" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvDesc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:ellipsize="end"
|
||||
android:lines="1"
|
||||
android:textColor="#666666"
|
||||
android:textSize="12sp"
|
||||
tools:text="Storage summary readyStorage summary readyStorage summary readyStorage summary ready" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvAction"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/noti_bg_button_primary"
|
||||
android:paddingHorizontal="12dp"
|
||||
android:paddingVertical="4dp"
|
||||
android:text="@string/noti_clean"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
<?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="48dp"
|
||||
android:background="@drawable/noti_bg_r16_white"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="45dp"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_noti_photo" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCount"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:background="@drawable/noti_bg_badge"
|
||||
android:gravity="center"
|
||||
android:minWidth="18dp"
|
||||
android:minHeight="18dp"
|
||||
android:paddingHorizontal="2dp"
|
||||
android:text="12"
|
||||
android:textColor="#fff"
|
||||
android:textSize="11sp" />
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:lines="1"
|
||||
android:textColor="#333333"
|
||||
android:textSize="14sp"
|
||||
tools:text="Storage summary readyStorage summary readyStorage summary readyStorage summary ready" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvDesc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:ellipsize="end"
|
||||
android:lines="1"
|
||||
android:textColor="#666666"
|
||||
android:textSize="12sp"
|
||||
tools:text="Storage summary readyStorage summary readyStorage summary readyStorage summary ready" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvAction"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/noti_bg_button_primary"
|
||||
android:paddingHorizontal="12dp"
|
||||
android:paddingVertical="4dp"
|
||||
android:text="@string/noti_clean"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
<?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:background="@drawable/noti_bg_r16_white"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="12dp">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv"
|
||||
android:layout_width="45dp"
|
||||
android:layout_height="45dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_noti_photo" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCount"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:background="@drawable/noti_bg_badge"
|
||||
android:gravity="center"
|
||||
android:minWidth="18dp"
|
||||
android:minHeight="18dp"
|
||||
android:paddingHorizontal="2dp"
|
||||
android:text="12"
|
||||
android:textColor="#fff"
|
||||
android:textSize="11sp" />
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/tvTitle"
|
||||
android:lines="1"
|
||||
android:textColor="#333333"
|
||||
android:textSize="16sp"
|
||||
tools:text="Storage summary readyStorage summary readyStorage summary readyStorage summary ready" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="13dp"
|
||||
android:id="@+id/tvDesc"
|
||||
android:ellipsize="end"
|
||||
android:lines="2"
|
||||
android:textColor="#666666"
|
||||
android:textSize="14sp"
|
||||
tools:text="Storage summary readyStorage summary readyStorage summary readyStorage summary ready" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvAction"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="39dp"
|
||||
android:layout_marginTop="29dp"
|
||||
android:background="@drawable/noti_bg_button_primary"
|
||||
android:gravity="center"
|
||||
android:text="@string/noti_clean"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="39dp"
|
||||
android:background="#99FF0000"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
<?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:background="@drawable/noti_bg_r16_white"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv"
|
||||
android:layout_width="45dp"
|
||||
android:layout_height="45dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_noti_photo" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCount"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:background="@drawable/noti_bg_badge"
|
||||
android:gravity="center"
|
||||
android:minWidth="18dp"
|
||||
android:minHeight="18dp"
|
||||
android:paddingHorizontal="2dp"
|
||||
android:text="12"
|
||||
android:textColor="#fff"
|
||||
android:textSize="11sp" />
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/tvTitle"
|
||||
android:lines="1"
|
||||
android:textColor="#333333"
|
||||
android:textSize="16sp"
|
||||
tools:text="Storage summary readyStorage summary readyStorage summary readyStorage summary ready" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="13dp"
|
||||
android:id="@+id/tvDesc"
|
||||
android:ellipsize="end"
|
||||
android:lines="2"
|
||||
android:textColor="#666666"
|
||||
android:textSize="14sp"
|
||||
tools:text="Storage summary readyStorage summary readyStorage summary readyStorage summary ready" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvAction"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="39dp"
|
||||
android:layout_marginTop="29dp"
|
||||
android:background="@drawable/noti_bg_button_primary"
|
||||
android:gravity="center"
|
||||
android:text="@string/noti_clean"
|
||||
android:textColor="#fff"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="39dp"
|
||||
android:background="#99FF0000"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
Loading…
Reference in New Issue