1 /* 2 * Copyright (C) 2015 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 package com.android.car.dialer; 17 18 import android.support.v7.widget.RecyclerView; 19 import android.view.View; 20 import android.view.ViewGroup; 21 import android.widget.FrameLayout; 22 import android.widget.ImageView; 23 import android.widget.LinearLayout; 24 import android.widget.TextView; 25 26 /** 27 * A {@link android.support.v7.widget.RecyclerView.ViewHolder} that will hold layouts that 28 * are inflated by {@link StrequentsAdapter}. 29 */ 30 public class CallLogViewHolder extends RecyclerView.ViewHolder { 31 public final FrameLayout iconContainer; 32 public final ImageView icon; 33 public final TextView title; 34 public final TextView text; 35 public final View card; 36 public final ViewGroup container; 37 public final LinearLayout callType; 38 public final CallTypeIconsView callTypeIconsView; 39 public final ImageView smallIcon; 40 41 public CallLogViewHolder(View v) { 42 super(v); 43 44 icon = v.findViewById(R.id.icon); 45 iconContainer = v.findViewById(R.id.icon_container); 46 title = v.findViewById(R.id.title); 47 text = v.findViewById(R.id.text); 48 card = v.findViewById(R.id.call_log_card); 49 callType = v.findViewById(R.id.call_type); 50 callTypeIconsView = v.findViewById(R.id.call_type_icons); 51 smallIcon = v.findViewById(R.id.small_icon); 52 container = v.findViewById(R.id.container); 53 } 54 } 55