do not show light when actionmode pass
This commit is contained in:
parent
fe29ae1125
commit
6664560856
2 changed files with 19 additions and 1 deletions
|
@ -70,7 +70,7 @@ class PassAdapter extends RecyclerView.Adapter<PassViewHolder> {
|
|||
@Override
|
||||
public boolean onCreateActionMode(ActionMode actionMode, Menu menu) {
|
||||
|
||||
passListActivity.getMenuInflater().inflate(R.menu.activity_pass_view, menu);
|
||||
passListActivity.getMenuInflater().inflate(R.menu.activity_pass_action_mode, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
18
src/main/res/menu/activity_pass_action_mode.xml
Normal file
18
src/main/res/menu/activity_pass_action_mode.xml
Normal file
|
@ -0,0 +1,18 @@
|
|||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:yourapp="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_delete"
|
||||
yourapp:showAsAction="ifRoom"
|
||||
android:title="@string/menu_delete"
|
||||
android:icon="@drawable/ic_delete_white_36dp" />
|
||||
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_share"
|
||||
yourapp:showAsAction="ifRoom"
|
||||
android:title="@string/menu_share"
|
||||
android:icon="@drawable/ic_share_white_36dp" />
|
||||
|
||||
</menu>
|
Loading…
Reference in a new issue