- Add rename dialog - Add rename menu option - Enable rename menu option only when renaming supported - Rename files and directories - Present error message if renaming fails Bug: 20493815 Change-Id: Ic7386d14e3876655fb19245b9a90b4c67a4febb4
57 lines
2.0 KiB
XML
57 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2013 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<item
|
|
android:id="@+id/menu_open"
|
|
android:title="@string/menu_open"
|
|
android:showAsAction="always" />
|
|
<item
|
|
android:id="@+id/menu_share"
|
|
android:icon="@drawable/ic_menu_share"
|
|
android:title="@string/menu_share"
|
|
android:showAsAction="always" />
|
|
<item
|
|
android:id="@+id/menu_delete"
|
|
android:icon="@drawable/ic_menu_delete"
|
|
android:title="@string/menu_delete"
|
|
android:showAsAction="always" />
|
|
<item
|
|
android:id="@+id/menu_copy_to_clipboard"
|
|
android:title="@string/menu_copy_to_clipboard"
|
|
android:showAsAction="never"
|
|
android:visible="false" />
|
|
<item
|
|
android:id="@+id/menu_select_all"
|
|
android:title="@string/menu_select_all"
|
|
android:showAsAction="never" />
|
|
<item
|
|
android:id="@+id/menu_copy_to"
|
|
android:title="@string/menu_copy"
|
|
android:showAsAction="never"
|
|
android:visible="false" />
|
|
<item
|
|
android:id="@+id/menu_move_to"
|
|
android:title="@string/menu_move"
|
|
android:showAsAction="never"
|
|
android:visible="false" />
|
|
<item
|
|
android:id="@+id/menu_rename"
|
|
android:title="@string/menu_rename"
|
|
android:showAsAction="never"
|
|
android:visible="false" />
|
|
</menu>
|