144918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes/* 244918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * Copyright (C) 2015 The Android Open Source Project 344918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * 444918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * Licensed under the Apache License, Version 2.0 (the "License"); 544918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * you may not use this file except in compliance with the License. 644918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * You may obtain a copy of the License at 744918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * 844918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * http://www.apache.org/licenses/LICENSE-2.0 944918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * 1044918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * Unless required by applicable law or agreed to in writing, software 1144918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * distributed under the License is distributed on an "AS IS" BASIS, 1244918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1344918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * See the License for the specific language governing permissions and 1444918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes * limitations under the License. 1544918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes */ 1644918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes 1744918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banespackage android.support.v4.widget; 1844918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes 1944918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banesimport android.widget.PopupWindow; 2044918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes 2144918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banesclass PopupWindowCompatApi23 { 2244918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes 2344918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes static void setOverlapAnchor(PopupWindow popupWindow, boolean overlapAnchor) { 2444918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes popupWindow.setOverlapAnchor(overlapAnchor); 2544918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes } 2644918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes 2744918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes static boolean getOverlapAnchor(PopupWindow popupWindow) { 2844918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes return popupWindow.getOverlapAnchor(); 2944918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes } 3044918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes 31322f8748f9d8de6f79345f660c859f163ad363b7Chris Banes static void setWindowLayoutType(PopupWindow popupWindow, int layoutType) { 32322f8748f9d8de6f79345f660c859f163ad363b7Chris Banes popupWindow.setWindowLayoutType(layoutType); 33322f8748f9d8de6f79345f660c859f163ad363b7Chris Banes } 34322f8748f9d8de6f79345f660c859f163ad363b7Chris Banes 35322f8748f9d8de6f79345f660c859f163ad363b7Chris Banes static int getWindowLayoutType(PopupWindow popupWindow) { 36322f8748f9d8de6f79345f660c859f163ad363b7Chris Banes return popupWindow.getWindowLayoutType(); 37322f8748f9d8de6f79345f660c859f163ad363b7Chris Banes } 38322f8748f9d8de6f79345f660c859f163ad363b7Chris Banes 3944918a92e1d66a01a03063e2c5e68b2570f64b03Chris Banes} 40