122f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet/* 222f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * Copyright (C) 2012 The Android Open Source Project 322f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * 422f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * Licensed under the Apache License, Version 2.0 (the "License"); 522f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * you may not use this file except in compliance with the License. 622f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * You may obtain a copy of the License at 722f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * 822f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * http://www.apache.org/licenses/LICENSE-2.0 922f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * 1022f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * Unless required by applicable law or agreed to in writing, software 1122f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * distributed under the License is distributed on an "AS IS" BASIS, 1222f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1322f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * See the License for the specific language governing permissions and 1422f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * limitations under the License. 1522f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet */ 1622f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet 1722f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohetpackage android.view; 1822f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet 1922f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohetimport com.android.tools.layoutlib.annotations.LayoutlibDelegate; 2022f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet 2122f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet/** 2222f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * Delegate used to provide new implementation of a select few methods of {@link ViewRootImpl} 2322f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * 2422f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * Through the layoutlib_create tool, the original methods of ViewRootImpl have been replaced 2522f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * by calls to methods of the same name in this delegate class. 2622f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet * 2722f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet */ 2822f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohetpublic class ViewRootImpl_Delegate { 2922f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet 3022f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet @LayoutlibDelegate 3122f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet /*package*/ static boolean isInTouchMode() { 3222f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet return false; // this allows displaying selection. 3322f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet } 3422f700a1b8fb9d2ac7b261e30a46a040928c23bcXavier Ducrohet} 35