146e7de54775fc37dc51041629c79249e6dae3242Dake Gu/* 246e7de54775fc37dc51041629c79249e6dae3242Dake Gu * Copyright (C) 2014 The Android Open Source Project 346e7de54775fc37dc51041629c79249e6dae3242Dake Gu * 446e7de54775fc37dc51041629c79249e6dae3242Dake Gu * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 546e7de54775fc37dc51041629c79249e6dae3242Dake Gu * in compliance with the License. You may obtain a copy of the License at 646e7de54775fc37dc51041629c79249e6dae3242Dake Gu * 746e7de54775fc37dc51041629c79249e6dae3242Dake Gu * http://www.apache.org/licenses/LICENSE-2.0 846e7de54775fc37dc51041629c79249e6dae3242Dake Gu * 946e7de54775fc37dc51041629c79249e6dae3242Dake Gu * Unless required by applicable law or agreed to in writing, software distributed under the License 1046e7de54775fc37dc51041629c79249e6dae3242Dake Gu * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 1146e7de54775fc37dc51041629c79249e6dae3242Dake Gu * or implied. See the License for the specific language governing permissions and limitations under 1246e7de54775fc37dc51041629c79249e6dae3242Dake Gu * the License. 1346e7de54775fc37dc51041629c79249e6dae3242Dake Gu */ 1446e7de54775fc37dc51041629c79249e6dae3242Dake Gupackage android.support.v17.leanback.widget; 1546e7de54775fc37dc51041629c79249e6dae3242Dake Gu 1646e7de54775fc37dc51041629c79249e6dae3242Dake Guimport android.view.View; 1746e7de54775fc37dc51041629c79249e6dae3242Dake Gu 1846e7de54775fc37dc51041629c79249e6dae3242Dake Gu/** 1946e7de54775fc37dc51041629c79249e6dae3242Dake Gu * Interface for highlighting the item that has focus. 2046e7de54775fc37dc51041629c79249e6dae3242Dake Gu */ 2146e7de54775fc37dc51041629c79249e6dae3242Dake Guinterface FocusHighlightHandler { 2246e7de54775fc37dc51041629c79249e6dae3242Dake Gu /** 2346e7de54775fc37dc51041629c79249e6dae3242Dake Gu * Called when an item gains or loses focus. 2446e7de54775fc37dc51041629c79249e6dae3242Dake Gu * @hide 2546e7de54775fc37dc51041629c79249e6dae3242Dake Gu * 2646e7de54775fc37dc51041629c79249e6dae3242Dake Gu * @param view The view whose focus is changing. 2746e7de54775fc37dc51041629c79249e6dae3242Dake Gu * @param hasFocus True if focus is gained; false otherwise. 2846e7de54775fc37dc51041629c79249e6dae3242Dake Gu */ 2946e7de54775fc37dc51041629c79249e6dae3242Dake Gu void onItemFocused(View view, boolean hasFocus); 3046e7de54775fc37dc51041629c79249e6dae3242Dake Gu 3146e7de54775fc37dc51041629c79249e6dae3242Dake Gu /** 3246e7de54775fc37dc51041629c79249e6dae3242Dake Gu * Called when the view is being created. 3346e7de54775fc37dc51041629c79249e6dae3242Dake Gu */ 3446e7de54775fc37dc51041629c79249e6dae3242Dake Gu void onInitializeView(View view); 3546e7de54775fc37dc51041629c79249e6dae3242Dake Gu} 36