blob: f9f85728f36413c98ca3295200d257893086f7ef [file] [log] [blame]
Flavio Lerdaa024c3f2011-06-10 10:47:07 +01001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.contacts;
18
Flavio Lerdaa024c3f2011-06-10 10:47:07 +010019import android.view.View;
20import android.widget.TextView;
21
22/**
23 * Encapsulates the views that are used to display the details of a phone call in the call log.
24 */
25public final class PhoneCallDetailsViews {
26 public final TextView mNameView;
27 public final TextView mCallTypeAndDateView;
28 public final TextView mNumberView;
29
30 /**
31 * Creates a new instance and caches its views.
32 *
33 * @param view the view which contains the elements to fill
34 */
35 public PhoneCallDetailsViews(View view) {
36 mNameView = (TextView) view.findViewById(R.id.name);
37 mCallTypeAndDateView = (TextView) view.findViewById(R.id.call_type);
38 mNumberView = (TextView) view.findViewById(R.id.number);
39 }
Flavio Lerdaafb93bb2011-07-05 14:46:10 +010040}