You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
reader/app/src/main/java/com/novel/read/constant/AppConst.kt

77 lines
2.1 KiB

package com.novel.read.constant
import android.annotation.SuppressLint
import android.graphics.Color
import java.text.SimpleDateFormat
@SuppressLint("SimpleDateFormat")
object AppConst {
const val APP_TAG = "TuZi"
const val channelIdDownload = "channel_download"
const val channelIdReadAloud = "channel_read_aloud"
const val channelIdWeb = "channel_web"
const val UA_NAME = "User-Agent"
const val CONCEAL = "http://yijianda8.com/conceal/"
val timeFormat: SimpleDateFormat by lazy {
SimpleDateFormat("HH:mm")
}
val dateFormat: SimpleDateFormat by lazy {
SimpleDateFormat("yyyy/MM/dd HH:mm")
}
val fileNameFormat: SimpleDateFormat by lazy {
SimpleDateFormat("yy-MM-dd-HH-mm-ss")
}
val keyboardToolChars: List<String> by lazy {
arrayListOf(
"", "@", "&", "|", "%", "/", ":", "[", "]", "{", "}", "<", ">", "\\",
"$", "#", "!", ".", "href", "src", "textNodes", "xpath", "json", "css",
"id", "class", "tag"
)
}
const val notificationIdRead = 1144771
const val notificationIdAudio = 1144772
const val notificationIdWeb = 1144773
const val notificationIdDownload = 1144774
const val refresh = 1
const val loading = 2
const val complete = 3
const val error = 4
const val loadMore = 5
const val loadComplete = 6
const val loadMoreFail = 7
const val noMore = 8
@kotlin.jvm.JvmField
val tagColors = intArrayOf(
Color.parseColor("#90C5F0"),
Color.parseColor("#91CED5"),
Color.parseColor("#F88F55"),
Color.parseColor("#C0AFD0"),
Color.parseColor("#E78F8F"),
Color.parseColor("#67CCB7"),
Color.parseColor("#F6BC7E"),
Color.parseColor("#90C5F0"),
Color.parseColor("#91CED5")
)
const val home = 0
const val man = 1
const val woman = 2
const val shellName = "001"
val menuViewNames = arrayOf(
"com.android.internal.view.menu.ListMenuItemView",
"androidx.appcompat.view.menu.ListMenuItemView"
)
}