pull/32/head
parent
6843f39ccf
commit
fd09c699eb
@ -0,0 +1,32 @@ |
||||
package io.legado.app.ui.widget.page |
||||
|
||||
import android.view.ActionMode |
||||
import android.view.Menu |
||||
import android.view.MenuItem |
||||
|
||||
import io.legado.app.R |
||||
|
||||
object ContentSelectActionCallback : ActionMode.Callback { |
||||
|
||||
override fun onActionItemClicked(mode: ActionMode?, item: MenuItem?): Boolean { |
||||
when (item?.itemId) { |
||||
R.id.menu_replace -> { |
||||
} |
||||
} |
||||
return false |
||||
} |
||||
|
||||
override fun onCreateActionMode(mode: ActionMode?, menu: Menu?): Boolean { |
||||
mode?.menuInflater?.inflate(R.menu.content_select_action, menu) |
||||
return true |
||||
} |
||||
|
||||
override fun onPrepareActionMode(mode: ActionMode?, menu: Menu?): Boolean { |
||||
return false |
||||
} |
||||
|
||||
override fun onDestroyActionMode(mode: ActionMode?) { |
||||
|
||||
} |
||||
|
||||
} |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<menu xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
||||
<item |
||||
android:id="@+id/menu_replace" |
||||
android:title="@string/replace" |
||||
app:showAsAction="always" /> |
||||
</menu> |
Loading…
Reference in new issue