Commit 8217742d authored by wanglei's avatar wanglei

...

parent 8c245b6a
......@@ -10,6 +10,7 @@ import android.view.animation.TranslateAnimation
import android.view.inputmethod.EditorInfo
import androidx.activity.addCallback
import androidx.core.widget.addTextChangedListener
import androidx.lifecycle.lifecycleScope
import com.base.pdfviewerscannerwhite.bean.DocumentBean
import com.base.pdfviewerscannerwhite.databinding.ActivityExcelBinding
import com.base.pdfviewerscannerwhite.helper.BaseActivity
......@@ -18,9 +19,13 @@ import com.base.pdfviewerscannerwhite.utils.KeyBoardUtils.hideKeyboard
import com.base.pdfviewerscannerwhite.utils.KeyBoardUtils.showKeyBoard
import com.base.pdfviewerscannerwhite.utils.LogEx
import com.cherry.lib.doc.bean.DocEngine
import com.cherry.lib.doc.office.constant.EventConstant
import com.cherry.lib.doc.office.ss.control.SSControl
import com.cherry.lib.doc.office.ss.control.Spreadsheet
import com.cherry.lib.doc.office.ss.sheetbar.SheetBar
import com.cherry.lib.doc.util.Constant
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import java.io.File
class ExcelActivity : BaseActivity<ActivityExcelBinding>() {
......@@ -114,7 +119,12 @@ class ExcelActivity : BaseActivity<ActivityExcelBinding>() {
binding.flNext.setOnClickListener {
getSpreadsheet().findForward()
}
lifecycleScope.launch {
delay(3000)
val ssControl: SSControl = (binding.mDocView.iOffice?.control?.appControl as SSControl)
val sheetBar: SheetBar = ssControl.excelView.bar
ssControl.actionEvent(EventConstant.SS_SHOW_SHEET, 0)
}
}
private fun getSpreadsheet(): Spreadsheet {
......
......@@ -93,7 +93,6 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), MainView {
showStoragePermission(launcher)
updateMediaStore()
}
}
private fun initTabLayout() {
......
......@@ -185,7 +185,7 @@ public class ExcelView extends RelativeLayout
//
private Spreadsheet ss;
//
private SheetBar bar;
public SheetBar bar;
//
private IControl control;
......
......@@ -10,6 +10,7 @@ import com.cherry.lib.doc.office.constant.EventConstant;
import com.cherry.lib.doc.office.constant.MainConstant;
import com.cherry.lib.doc.office.system.IControl;
import com.cherry.lib.doc.office.system.IMainFrame;
import android.content.Context;
import android.util.Log;
import android.view.GestureDetector;
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FAA9A7" />
<corners android:radius="15dp" />
</shape>
\ No newline at end of file
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