Lines Matching refs:view

25 import android.support.v4.view.ViewCompat;
27 import android.view.LayoutInflater;
28 import android.view.View;
29 import android.view.View.MeasureSpec;
30 import android.view.ViewGroup;
40 * (eg, checkmark, star, subject, sender, folders, etc.) It will inflate a view,
42 * to easily improve performance by creating custom view while still defining
125 // hash the attributes that contribute to item height and child view geometry
166 public void put(final int layoutId, final View view) {
167 mViewsCache.put(layoutId, view);
251 ViewGroup view = (ViewGroup) cache.getView(layoutId);
252 if (view == null) {
253 view = (ViewGroup) LayoutInflater.from(context).inflate(layoutId, null);
254 cache.put(layoutId, view);
258 final TextView folders = (TextView) view.findViewById(R.id.folders);
261 View contactImagesView = view.findViewById(R.id.contact_image);
277 final View replyState = view.findViewById(R.id.reply_state);
280 final View personalIndicator = view.findViewById(R.id.personal_indicator);
284 setFramePadding(context, view, config.useFullPadding());
286 // Layout the appropriate view.
287 ViewCompat.setLayoutDirection(view, config.getLayoutDirection());
291 view.measure(widthSpec, heightSpec);
292 view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight());
294 // Once the view is measured, let's calculate the dynamic width variables.
295 folderLayoutWidth = (int) (view.getWidth() *
297 folderCellWidth = (int) (view.getWidth() *
300 // Utils.dumpViewTree((ViewGroup) view);
304 // Contact images view
314 final boolean isRtl = ViewUtils.isViewRtl(view);
316 final View star = view.findViewById(R.id.star);
322 final TextView senders = (TextView) view.findViewById(R.id.senders);
331 final TextView subject = (TextView) view.findViewById(R.id.subject);
339 final TextView snippet = (TextView) view.findViewById(R.id.snippet);
361 final View colorBlock = view.findViewById(R.id.color_block);
385 final View infoIcon = view.findViewById(R.id.info_icon);
390 final TextView date = (TextView) view.findViewById(R.id.date);
398 final View paperclip = view.findViewById(R.id.paperclip);
402 height = view.getHeight() + sendersTopAdjust;
407 private static void setFramePadding(Context context, ViewGroup view, boolean useFullPadding) {
412 final View frame = view.findViewById(R.id.conversation_item_frame);
437 * Returns the x coordinates of a view by tracing up its hierarchy.
439 private static int getX(View view) {
441 while (view != null) {
442 x += (int) view.getX();
443 view = (View) view.getParent();
449 * Returns the y coordinates of a view by tracing up its hierarchy.
451 private static int getY(View view) {
453 while (view != null) {
454 y += (int) view.getY();
455 view = (View) view.getParent();
473 * Returns coordinates for elements inside a conversation header view given
474 * the view width.