1ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani/* 2ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * Copyright (C) 2011 The Android Open Source Project 3ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * 4ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * Licensed under the Apache License, Version 2.0 (the "License"); 5ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * you may not use this file except in compliance with the License. 6ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * You may obtain a copy of the License at 7ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * 8ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * http://www.apache.org/licenses/LICENSE-2.0 9ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * 10ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * Unless required by applicable law or agreed to in writing, software 11ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * distributed under the License is distributed on an "AS IS" BASIS, 12ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * See the License for the specific language governing permissions and 14ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * limitations under the License. 15ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani */ 16ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani 172e21b5e22c320fd7e6af86a7cc05b4b11d7a0f64Chris Banespackage android.support.v7.view; 18ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani 1930837f1095c803f332f4a1c3f0917c8afdd50156Adam Powellimport android.support.v4.view.MenuItemCompat.OnActionExpandListener; 20ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani 21ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani/** 2230837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * When a {@link android.view.View} implements this interface it will receive callbacks when expanded or 2330837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * collapsed as an action view alongside the optional, app-specified callbacks to {@link 2430837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * OnActionExpandListener}. 25ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani * 2679c1dba5b509ae3e7c867827949d8fdfd37e8f52Chris Banes * <p>See {@link android.support.v4.view.MenuItemCompat} for more information about action views. 27b79bd8bd1afdf165068ddafdc5fa0667f7ec4a70Jeff Brown * See {@link android.app.ActionBar} for more information about the action bar. 28ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani */ 29ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewanipublic interface CollapsibleActionView { 3020ac724a3a836bfd362c911f7dc55a61c02b4d44Trevor Johns 31ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani /** 3220ac724a3a836bfd362c911f7dc55a61c02b4d44Trevor Johns * Called when this view is expanded as an action view. See {@link 3330837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * android.support.v4.view.MenuItemCompat#expandActionView(android.view.MenuItem)}. 34ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani */ 35ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani public void onActionViewExpanded(); 36ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani 37ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani /** 3820ac724a3a836bfd362c911f7dc55a61c02b4d44Trevor Johns * Called when this view is collapsed as an action view. See {@link 3930837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * android.support.v4.view.MenuItemCompat#collapseActionView(android.view.MenuItem)}. 40ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani */ 41ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani public void onActionViewCollapsed(); 42ced50ab7536cd3d3573f03310fc899f10c414d37Anirudh Dewani} 43