194b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng/* 294b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * Copyright (C) 2011 The Android Open Source Project 394b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * 494b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * Licensed under the Apache License, Version 2.0 (the "License"); 594b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * you may not use this file except in compliance with the License. 694b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * You may obtain a copy of the License at 794b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * 894b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * http://www.apache.org/licenses/LICENSE-2.0 994b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * 1094b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * Unless required by applicable law or agreed to in writing, software 1194b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * distributed under the License is distributed on an "AS IS" BASIS, 1294b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1394b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * See the License for the specific language governing permissions and 1494b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * limitations under the License. 1594b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng */ 1694b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng 1794b10b530c0fc297e2974e57e094c500d3ee6003Chiao Chengpackage com.android.dialer.calllog; 1894b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng 1994b10b530c0fc297e2974e57e094c500d3ee6003Chiao Chengimport android.content.Context; 2094b10b530c0fc297e2974e57e094c500d3ee6003Chiao Chengimport android.util.AttributeSet; 2194b10b530c0fc297e2974e57e094c500d3ee6003Chiao Chengimport android.widget.LinearLayout; 2294b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng 2394b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng/** 2494b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng * An entry in the call log. 2594b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng */ 2694b10b530c0fc297e2974e57e094c500d3ee6003Chiao Chengpublic class CallLogListItemView extends LinearLayout { 2794b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng public CallLogListItemView(Context context) { 2894b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng super(context); 2994b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng } 3094b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng 3194b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng public CallLogListItemView(Context context, AttributeSet attrs) { 3294b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng super(context, attrs); 3394b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng } 3494b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng 3594b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng public CallLogListItemView(Context context, AttributeSet attrs, int defStyle) { 3694b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng super(context, attrs, defStyle); 3794b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng } 3894b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng 3994b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng @Override 4094b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng public void requestLayout() { 4194b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng // We will assume that once measured this will not need to resize 4294b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng // itself, so there is no need to pass the layout request to the parent 4394b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng // view (ListView). 4494b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng forceLayout(); 4594b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng } 4694b10b530c0fc297e2974e57e094c500d3ee6003Chiao Cheng} 47