|
|
@ -9,6 +9,7 @@ import androidx.annotation.MenuRes |
|
|
|
import androidx.annotation.StringRes |
|
|
|
import androidx.annotation.StringRes |
|
|
|
import androidx.appcompat.widget.PopupMenu |
|
|
|
import androidx.appcompat.widget.PopupMenu |
|
|
|
import io.legado.app.R |
|
|
|
import io.legado.app.R |
|
|
|
|
|
|
|
import io.legado.app.utils.dp |
|
|
|
import io.legado.app.utils.visible |
|
|
|
import io.legado.app.utils.visible |
|
|
|
import kotlinx.android.synthetic.main.view_select_action_bar.view.* |
|
|
|
import kotlinx.android.synthetic.main.view_select_action_bar.view.* |
|
|
|
import org.jetbrains.anko.sdk27.listeners.onClick |
|
|
|
import org.jetbrains.anko.sdk27.listeners.onClick |
|
|
@ -19,6 +20,7 @@ class SelectActionBar(context: Context, attrs: AttributeSet?) : FrameLayout(cont |
|
|
|
|
|
|
|
|
|
|
|
init { |
|
|
|
init { |
|
|
|
setBackgroundResource(R.color.background_menu) |
|
|
|
setBackgroundResource(R.color.background_menu) |
|
|
|
|
|
|
|
elevation = 10.dp.toFloat() |
|
|
|
View.inflate(context, R.layout.view_select_action_bar, this) |
|
|
|
View.inflate(context, R.layout.view_select_action_bar, this) |
|
|
|
cb_selected_all.setOnCheckedChangeListener { buttonView, isChecked -> |
|
|
|
cb_selected_all.setOnCheckedChangeListener { buttonView, isChecked -> |
|
|
|
if (buttonView.isPressed) { |
|
|
|
if (buttonView.isPressed) { |
|
|
|