Commit b300b351 authored by wanglei's avatar wanglei

初始化

parent a56a1555
...@@ -27,7 +27,6 @@ object ConfigHelper { ...@@ -27,7 +27,6 @@ object ConfigHelper {
const val openAdmobId = "/6499/example/app-open" const val openAdmobId = "/6499/example/app-open"
const val bannerAdmobId = "ca-app-pub-3940256099942544/9214581111" const val bannerAdmobId = "ca-app-pub-3940256099942544/9214581111"
val noLoadingActivities = listOf( val noLoadingActivities = listOf(
"full", // 过滤全屏广告 "full", // 过滤全屏广告
"adActivity", "adActivity",
......
package com.base.pdfreaderallpdfreader.ui.document package com.base.pdfreaderallpdfreader.ui.document
import android.content.Intent
import android.graphics.Color import android.graphics.Color
import android.text.Spannable import android.text.Spannable
import android.text.SpannableString import android.text.SpannableString
...@@ -15,6 +16,7 @@ import com.base.pdfreaderallpdfreader.R ...@@ -15,6 +16,7 @@ import com.base.pdfreaderallpdfreader.R
import com.base.pdfreaderallpdfreader.base.BaseActivity import com.base.pdfreaderallpdfreader.base.BaseActivity
import com.base.pdfreaderallpdfreader.bean.DocumentBean import com.base.pdfreaderallpdfreader.bean.DocumentBean
import com.base.pdfreaderallpdfreader.databinding.ActivityDocumentBinding import com.base.pdfreaderallpdfreader.databinding.ActivityDocumentBinding
import com.base.pdfreaderallpdfreader.ui.search.SearchActivity
import com.base.pdfreaderallpdfreader.utils.BarUtils import com.base.pdfreaderallpdfreader.utils.BarUtils
class DocumentActivity : BaseActivity<ActivityDocumentBinding>() { class DocumentActivity : BaseActivity<ActivityDocumentBinding>() {
...@@ -34,16 +36,14 @@ class DocumentActivity : BaseActivity<ActivityDocumentBinding>() { ...@@ -34,16 +36,14 @@ class DocumentActivity : BaseActivity<ActivityDocumentBinding>() {
private val wordPage: DocumentFragment by lazy { private val wordPage: DocumentFragment by lazy {
DocumentFragment(DocumentBean.TYPE_WORD) DocumentFragment(DocumentBean.TYPE_WORD)
} }
private val excelPage: DocumentFragment by lazy { private val excelPage: DocumentFragment by lazy {
DocumentFragment(DocumentBean.TYPE_EXCEL) DocumentFragment(DocumentBean.TYPE_EXCEL)
} }
private val pptPage: DocumentFragment by lazy { private val pptPage: DocumentFragment by lazy {
DocumentFragment(DocumentBean.TYPE_PPT) DocumentFragment(DocumentBean.TYPE_PPT)
} }
var initTab: Int? = null private var initTab: Int? = null
private val fragments by lazy { private val fragments by lazy {
mutableListOf(allPage, pdfPage, wordPage, excelPage, pptPage) mutableListOf(allPage, pdfPage, wordPage, excelPage, pptPage)
...@@ -157,6 +157,9 @@ class DocumentActivity : BaseActivity<ActivityDocumentBinding>() { ...@@ -157,6 +157,9 @@ class DocumentActivity : BaseActivity<ActivityDocumentBinding>() {
binding.flFanhui.setOnClickListener { binding.flFanhui.setOnClickListener {
onBackPressedDispatcher.onBackPressed() onBackPressedDispatcher.onBackPressed()
} }
binding.ivSearch.setOnClickListener {
startActivity(Intent(this, SearchActivity::class.java))
}
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<string name="click_to_read_now">Click to read now</string> <string name="click_to_read_now">Click to read now</string>
<string name="don_t_miss_important_documents">Don\'t miss important documents</string> <string name="don_t_miss_important_documents">Don\'t miss important documents</string>
<string name="view_now">View Now</string> <string name="view_now">View Now</string>
<!-- /////////////////////////////////////// 分割///////////////////////////////////////////////// --> <!-- ///////////////////////////////////////分割///////////////////////////////////////////////// -->
<string name="sunday">Sunday</string> <string name="sunday">Sunday</string>
......
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