Home
last modified time | relevance | path

Searched refs:holder (Results 1 – 25 of 74) sorted by relevance

123

/developers/samples/android/ui/transition/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/
DMeatAdapter.java69 final ViewHolder holder; in getView() local
72 holder = new ViewHolder(); in getView()
74 holder.image = (ImageView) view.findViewById(R.id.meat_image); in getView()
75 holder.title = (TextView) view.findViewById(R.id.meat_title); in getView()
76 view.setTag(holder); in getView()
79 holder = (ViewHolder) view.getTag(); in getView()
82 holder.image.setImageResource(meat.resourceId); in getView()
83 holder.title.setText(meat.title); in getView()
89 ViewHolder holder = (ViewHolder) view.getTag(); in onItemClick() local
91 if (null != holder && null != holder.title && null != context) { in onItemClick()
[all …]
/developers/samples/android/ui/transition/FragmentTransition/Application/src/main/java/com/example/android/fragmenttransition/
DMeatAdapter.java54 final ViewHolder holder; in getView() local
57 holder = new ViewHolder(); in getView()
59 holder.image = (ImageView) view.findViewById(R.id.image); in getView()
60 holder.title = (TextView) view.findViewById(R.id.title); in getView()
61 view.setTag(holder); in getView()
64 holder = (ViewHolder) view.getTag(); in getView()
66 bindView(holder, position); in getView()
70 public void bindView(ViewHolder holder, int position) { in bindView() argument
72 holder.image.setImageResource(meat.resourceId); in bindView()
73 holder.title.setText(meat.title); in bindView()
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DAppItemListViewAdapter.java44 Holder holder; in getView() local
47 holder = new Holder(); in getView()
48 holder.mTextView = convertView.findViewById(R.id.shifted_icon_text_view); in getView()
49 holder.mImageView = convertView.findViewById(R.id.shifted_icon_image_view); in getView()
50 convertView.setTag(holder); // Cache holder for future use. in getView()
52 holder = (Holder) convertView.getTag(); in getView()
55 holder.mTextView.setText(mItems.get(position).getItemName()); in getView()
56 holder.mImageView.setImageResource(mItems.get(position).getImageId()); in getView()
DListViewAdapter.java44 Holder holder; in getView() local
47 holder = new Holder(); in getView()
48 holder.mTextView = convertView.findViewById(R.id.item_text); in getView()
49 holder.mImageView = convertView.findViewById(R.id.item_image); in getView()
50 convertView.setTag(holder); // Cache the holder for future use. in getView()
52 holder = (Holder) convertView.getTag(); in getView()
54 holder.mTextView.setText(mItems.get(position).getItemId()); in getView()
/developers/build/prebuilts/gradle/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DAppItemListViewAdapter.java43 Holder holder; in getView() local
46 holder = new Holder(); in getView()
47 holder.mTextView = convertView.findViewById(R.id.shifted_icon_text_view); in getView()
48 holder.mImageView = convertView.findViewById(R.id.shifted_icon_image_view); in getView()
49 convertView.setTag(holder); // Cache holder for future use. in getView()
51 holder = (Holder) convertView.getTag(); in getView()
54 holder.mTextView.setText(mItems.get(position).getItemName()); in getView()
55 holder.mImageView.setImageResource(mItems.get(position).getImageId()); in getView()
DListViewAdapter.java43 Holder holder; in getView() local
46 holder = new Holder(); in getView()
47 holder.mTextView = convertView.findViewById(R.id.item_text); in getView()
48 holder.mImageView = convertView.findViewById(R.id.item_image); in getView()
49 convertView.setTag(holder); // Cache the holder for future use. in getView()
51 holder = (Holder) convertView.getTag(); in getView()
53 holder.mTextView.setText(mItems.get(position).getItemId()); in getView()
/developers/build/prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/camera/
DCameraPreview.kt54 holder.addCallback(this@CameraPreview)
58 override fun surfaceCreated(holder: SurfaceHolder) { in surfaceCreated()
62 setPreviewDisplay(holder) in surfaceCreated()
72 override fun surfaceDestroyed(holder: SurfaceHolder) { in surfaceDestroyed()
76 override fun surfaceChanged(holder: SurfaceHolder, format: Int, w: Int, h: Int) { in surfaceChanged()
80 if (holder.surface == null) { in surfaceChanged()
92 setPreviewDisplay(holder) in surfaceChanged()
/developers/samples/android/system/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/camera/
DCameraPreview.kt54 holder.addCallback(this@CameraPreview)
58 override fun surfaceCreated(holder: SurfaceHolder) { in surfaceCreated()
62 setPreviewDisplay(holder) in surfaceCreated()
72 override fun surfaceDestroyed(holder: SurfaceHolder) { in surfaceDestroyed()
76 override fun surfaceChanged(holder: SurfaceHolder, format: Int, w: Int, h: Int) { in surfaceChanged()
80 if (holder.surface == null) { in surfaceChanged()
92 setPreviewDisplay(holder) in surfaceChanged()
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/ui/main/
DContactAdapter.kt43 val holder = ContactViewHolder(parent) in onCreateViewHolder() constant
44 holder.itemView.setOnClickListener { in onCreateViewHolder()
45 onChatClicked(holder.itemId) in onCreateViewHolder()
47 return holder in onCreateViewHolder()
50 override fun onBindViewHolder(holder: ContactViewHolder, position: Int) { in onBindViewHolder()
52 …Glide.with(holder.icon).load(contact.icon).apply(RequestOptions.circleCropTransform()).into(holder in onBindViewHolder()
53 holder.name.text = contact.name in onBindViewHolder()
/developers/build/prebuilts/gradle/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/fragments/
DDataFragment.java74 ViewHolder holder; in getView() local
76 holder = new ViewHolder(); in getView()
80 convertView.setTag(holder); in getView()
81 holder.text1 = (TextView) convertView.findViewById(android.R.id.text1); in getView()
82 holder.text2 = (TextView) convertView.findViewById(android.R.id.text2); in getView()
84 holder = (ViewHolder) convertView.getTag(); in getView()
87 holder.text1.setText(event.title); in getView()
88 holder.text2.setText(event.text); in getView()
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/ui/chat/
DMessageAdapter.kt67 val holder = MessageViewHolder(parent) in onCreateViewHolder() constant
68 holder.message.setOnClickListener { in onCreateViewHolder()
74 return holder in onCreateViewHolder()
77 override fun onBindViewHolder(holder: MessageViewHolder, position: Int) { in onBindViewHolder()
79 val lp = holder.message.layoutParams as FrameLayout.LayoutParams in onBindViewHolder()
81 holder.message.run { in onBindViewHolder()
92 holder.message.setTag(R.id.tag_photo, message.photo) in onBindViewHolder()
95 holder.message.setTag(R.id.tag_photo, null) in onBindViewHolder()
100 holder.message.run { in onBindViewHolder()
112 holder.message.text = message.text in onBindViewHolder()
/developers/samples/android/system/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/camera/
DCameraPreview.kt55 surfaceHolder = holder.apply { in <lambda>()
61 override fun surfaceCreated(holder: SurfaceHolder) { in surfaceCreated()
65 setPreviewDisplay(holder) in surfaceCreated()
75 override fun surfaceDestroyed(holder: SurfaceHolder) { in surfaceDestroyed()
79 override fun surfaceChanged(holder: SurfaceHolder, format: Int, w: Int, h: Int) { in surfaceChanged()
/developers/build/prebuilts/gradle/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/camera/
DCameraPreview.kt55 surfaceHolder = holder.apply { in <lambda>()
61 override fun surfaceCreated(holder: SurfaceHolder) { in surfaceCreated()
65 setPreviewDisplay(holder) in surfaceCreated()
75 override fun surfaceDestroyed(holder: SurfaceHolder) { in surfaceDestroyed()
79 override fun surfaceChanged(holder: SurfaceHolder, format: Int, w: Int, h: Int) { in surfaceChanged()
/developers/samples/android/content/documentsUi/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/
DImageAdapter.kt47 override fun onBindViewHolder(holder: ImageViewHolder, position: Int) { in onBindViewHolder()
53 .into(holder.mImageView) in onBindViewHolder()
54 holder.mTextView.text = (position + 1).toString() in onBindViewHolder()
56 holder.mImageView.setImageDrawable( in onBindViewHolder()
/developers/build/prebuilts/gradle/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/
DImageAdapter.kt47 override fun onBindViewHolder(holder: ImageViewHolder, position: Int) { in onBindViewHolder()
53 .into(holder.mImageView) in onBindViewHolder()
54 holder.mTextView.text = (position + 1).toString() in onBindViewHolder()
56 holder.mImageView.setImageDrawable( in onBindViewHolder()
/developers/build/prebuilts/gradle/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/
DImageAdapter.java60 public void onBindViewHolder(ImageViewHolder holder, int position) { in onBindViewHolder() argument
66 .into(holder.mImageView); in onBindViewHolder()
67 holder.mTextView.setText(String.valueOf(position + 1)); in onBindViewHolder()
69 holder.mImageView.setImageDrawable( in onBindViewHolder()
/developers/samples/android/content/documentsUi/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/
DImageAdapter.java60 public void onBindViewHolder(ImageViewHolder holder, int position) { in onBindViewHolder() argument
66 .into(holder.mImageView); in onBindViewHolder()
67 holder.mTextView.setText(String.valueOf(position + 1)); in onBindViewHolder()
69 holder.mImageView.setImageDrawable( in onBindViewHolder()
/developers/build/prebuilts/gradle/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/camera/
DCameraPreview.java103 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
106 mCamera.setPreviewDisplay(holder); in surfaceCreated()
114 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
118 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
/developers/samples/android/system/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/camera/
DCameraPreview.java103 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
106 mCamera.setPreviewDisplay(holder); in surfaceCreated()
114 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
118 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
/developers/build/prebuilts/gradle/SpeedTracker/Wearable/src/main/java/com/example/android/wearable/speedtracker/ui/
DSpeedPickerListAdapter.java73 public void onBindViewHolder(WearableListView.ViewHolder holder, in onBindViewHolder() argument
76 ItemViewHolder itemHolder = (ItemViewHolder) holder; in onBindViewHolder()
81 holder.itemView.setTag(position); in onBindViewHolder()
/developers/samples/android/wearable/wear/SpeedTracker/Wearable/src/main/java/com/example/android/wearable/speedtracker/ui/
DSpeedPickerListAdapter.java73 public void onBindViewHolder(WearableListView.ViewHolder holder, in onBindViewHolder() argument
76 ItemViewHolder itemHolder = (ItemViewHolder) holder; in onBindViewHolder()
81 holder.itemView.setTag(position); in onBindViewHolder()
/developers/build/prebuilts/gradle/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/
DPlanetAdapter.java67 public void onBindViewHolder(ViewHolder holder, final int position) { in onBindViewHolder() argument
68 holder.mTextView.setText(mDataset[position]); in onBindViewHolder()
69 holder.mTextView.setOnClickListener(new View.OnClickListener() { in onBindViewHolder()
/developers/samples/android/ui/views/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/
DPlanetAdapter.java67 public void onBindViewHolder(ViewHolder holder, final int position) { in onBindViewHolder() argument
68 holder.mTextView.setText(mDataset[position]); in onBindViewHolder()
69 holder.mTextView.setOnClickListener(new View.OnClickListener() { in onBindViewHolder()
/developers/samples/android/system/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/camera/
DCameraPreview.java103 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
106 mCamera.setPreviewDisplay(holder); in surfaceCreated()
114 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
118 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
/developers/build/prebuilts/gradle/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/camera/
DCameraPreview.java103 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
106 mCamera.setPreviewDisplay(holder); in surfaceCreated()
114 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
118 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument

123