ClusteredSuggestionsView.java revision fd4a4cbc1143a734d357897531daa7105db6459b
1fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood/* 2fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * Copyright (C) 2010 The Android Open Source Project 3fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * 4fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * Licensed under the Apache License, Version 2.0 (the "License"); 5fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * you may not use this file except in compliance with the License. 6fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * You may obtain a copy of the License at 7fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * 8fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * http://www.apache.org/licenses/LICENSE-2.0 9fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * 10fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * Unless required by applicable law or agreed to in writing, software 11fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * distributed under the License is distributed on an "AS IS" BASIS, 12fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * See the License for the specific language governing permissions and 14fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * limitations under the License. 15fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood */ 16fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwoodpackage com.android.quicksearchbox.ui; 17fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood 18fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwoodimport android.content.Context; 19fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwoodimport android.util.AttributeSet; 20fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwoodimport android.widget.ExpandableListAdapter; 21fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwoodimport android.widget.ExpandableListView; 22fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood 23fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood/** 24fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood * Suggestions view that displays suggestions clustered by corpus type. 25fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood */ 26fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwoodpublic class ClusteredSuggestionsView extends ExpandableListView 27fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood implements SuggestionsListView<ExpandableListAdapter> { 28fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood 29fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood public ClusteredSuggestionsView(Context context, AttributeSet attrs) { 30fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood super(context, attrs); 31fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood //TODO 32fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood } 33fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood 34fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood public void setSuggestionsAdapter(SuggestionsAdapter<ExpandableListAdapter> adapter) { 35fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood //TODO 36fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood } 37fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood 38fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood public void setLimitSuggestionsToViewHeight(boolean limit) { 39fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood // not supported 40fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood } 41fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood 42fd4a4cbc1143a734d357897531daa7105db6459bMathew Inwood} 43