Loading res/layout/call_log_list_item.xml +3 −2 Original line number Diff line number Diff line Loading @@ -14,8 +14,9 @@ limitations under the License. --> <LinearLayout <view xmlns:android="http://schemas.android.com/apk/res/android" class="com.android.contacts.calllog.CallLogListItemView" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="@dimen/call_log_inner_margin" Loading Loading @@ -154,4 +155,4 @@ android:textStyle="bold" android:textColor="?attr/call_log_header_color" /> </LinearLayout> </view> src/com/android/contacts/calllog/CallLogListItemView.java 0 → 100644 +46 −0 Original line number Diff line number Diff line /* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.contacts.calllog; import android.content.Context; import android.util.AttributeSet; import android.widget.LinearLayout; /** * An entry in the call log. */ public class CallLogListItemView extends LinearLayout { public CallLogListItemView(Context context) { super(context); } public CallLogListItemView(Context context, AttributeSet attrs) { super(context, attrs); } public CallLogListItemView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public void requestLayout() { // We will assume that once measured this will not need to resize // itself, so there is no need to pass the layout request to the parent // view (ListView). forceLayout(); } } Loading
res/layout/call_log_list_item.xml +3 −2 Original line number Diff line number Diff line Loading @@ -14,8 +14,9 @@ limitations under the License. --> <LinearLayout <view xmlns:android="http://schemas.android.com/apk/res/android" class="com.android.contacts.calllog.CallLogListItemView" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="@dimen/call_log_inner_margin" Loading Loading @@ -154,4 +155,4 @@ android:textStyle="bold" android:textColor="?attr/call_log_header_color" /> </LinearLayout> </view>
src/com/android/contacts/calllog/CallLogListItemView.java 0 → 100644 +46 −0 Original line number Diff line number Diff line /* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.contacts.calllog; import android.content.Context; import android.util.AttributeSet; import android.widget.LinearLayout; /** * An entry in the call log. */ public class CallLogListItemView extends LinearLayout { public CallLogListItemView(Context context) { super(context); } public CallLogListItemView(Context context, AttributeSet attrs) { super(context, attrs); } public CallLogListItemView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public void requestLayout() { // We will assume that once measured this will not need to resize // itself, so there is no need to pass the layout request to the parent // view (ListView). forceLayout(); } }