New Toolbar samples along with some improvements for the other Action Bar activities. Change-Id: I28dca1bd86ea4c269b711f4d10283e71384a33ac
49 lines
2.2 KiB
XML
49 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2010 Google Inc.
|
|
|
|
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"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
<item android:id="@+id/action_search"
|
|
android:title="@string/action_bar_search"
|
|
android:icon="@drawable/abc_ic_search_api_mtrl_alpha"
|
|
app:showAsAction="ifRoom|collapseActionView"
|
|
app:actionViewClass="android.support.v7.widget.SearchView" />
|
|
<item android:id="@+id/action_add"
|
|
android:icon="@android:drawable/ic_menu_add"
|
|
android:title="@string/action_bar_add" />
|
|
<item android:id="@+id/action_edit"
|
|
android:icon="@android:drawable/ic_menu_edit"
|
|
android:title="@string/action_bar_edit"
|
|
app:showAsAction="always" />
|
|
<item android:id="@+id/action_share"
|
|
android:icon="@android:drawable/ic_menu_share"
|
|
android:title="@string/action_bar_share"
|
|
android:enabled="false"
|
|
app:showAsAction="ifRoom" />
|
|
<item android:id="@+id/action_sort"
|
|
android:icon="@android:drawable/ic_menu_sort_by_size"
|
|
android:title="@string/action_bar_sort"
|
|
app:showAsAction="ifRoom">
|
|
<menu>
|
|
<item android:id="@+id/action_sort_size"
|
|
android:icon="@android:drawable/ic_menu_sort_by_size"
|
|
android:title="@string/action_bar_sort_size" />
|
|
<item android:id="@+id/action_sort_alpha"
|
|
android:icon="@android:drawable/ic_menu_sort_alphabetically"
|
|
android:title="@string/action_bar_sort_alpha" />
|
|
</menu>
|
|
</item>
|
|
</menu>
|