/developers/samples/android/ui/transition/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/ |
D | MeatAdapter.java | 69 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/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
D | QueueAdapter.java | 52 ViewHolder holder; in getView() local 57 holder = new ViewHolder(); in getView() 58 holder.mImageView = (ImageView) convertView.findViewById(R.id.play_eq); in getView() 59 holder.mTitleView = (TextView) convertView.findViewById(R.id.title); in getView() 60 holder.mDescriptionView = (TextView) convertView.findViewById(R.id.description); in getView() 61 convertView.setTag(holder); in getView() 63 holder = (ViewHolder) convertView.getTag(); in getView() 67 holder.mTitleView.setText(item.getDescription().getTitle()); in getView() 69 holder.mDescriptionView.setText(item.getDescription().getDescription()); in getView() 74 holder.mImageView.setImageDrawable( in getView() [all …]
|
D | BrowseFragment.java | 184 ViewHolder holder; in getView() local 189 holder = new ViewHolder(); in getView() 190 holder.mImageView = (ImageView) convertView.findViewById(R.id.play_eq); in getView() 191 holder.mImageView.setVisibility(View.GONE); in getView() 192 holder.mTitleView = (TextView) convertView.findViewById(R.id.title); in getView() 193 holder.mDescriptionView = (TextView) convertView.findViewById(R.id.description); in getView() 194 convertView.setTag(holder); in getView() 196 holder = (ViewHolder) convertView.getTag(); in getView() 200 holder.mTitleView.setText(item.getDescription().getTitle()); in getView() 201 holder.mDescriptionView.setText(item.getDescription().getDescription()); in getView() [all …]
|
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
D | QueueAdapter.java | 52 ViewHolder holder; in getView() local 57 holder = new ViewHolder(); in getView() 58 holder.mImageView = (ImageView) convertView.findViewById(R.id.play_eq); in getView() 59 holder.mTitleView = (TextView) convertView.findViewById(R.id.title); in getView() 60 holder.mDescriptionView = (TextView) convertView.findViewById(R.id.description); in getView() 61 convertView.setTag(holder); in getView() 63 holder = (ViewHolder) convertView.getTag(); in getView() 67 holder.mTitleView.setText(item.getDescription().getTitle()); in getView() 69 holder.mDescriptionView.setText(item.getDescription().getDescription()); in getView() 74 holder.mImageView.setImageDrawable( in getView() [all …]
|
D | BrowseFragment.java | 184 ViewHolder holder; in getView() local 189 holder = new ViewHolder(); in getView() 190 holder.mImageView = (ImageView) convertView.findViewById(R.id.play_eq); in getView() 191 holder.mImageView.setVisibility(View.GONE); in getView() 192 holder.mTitleView = (TextView) convertView.findViewById(R.id.title); in getView() 193 holder.mDescriptionView = (TextView) convertView.findViewById(R.id.description); in getView() 194 convertView.setTag(holder); in getView() 196 holder = (ViewHolder) convertView.getTag(); in getView() 200 holder.mTitleView.setText(item.getDescription().getTitle()); in getView() 201 holder.mDescriptionView.setText(item.getDescription().getDescription()); in getView() [all …]
|
/developers/samples/android/ui/transition/FragmentTransition/Application/src/main/java/com/example/android/fragmenttransition/ |
D | MeatAdapter.java | 54 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/build/prebuilts/gradle/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/fragments/ |
D | DataFragment.java | 74 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/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/fragments/ |
D | DataFragment.java | 74 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/system/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/camera/ |
D | CameraPreview.java | 62 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument 65 mCamera.setPreviewDisplay(holder); in surfaceCreated() 73 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument 77 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/ |
D | CameraPreview.java | 62 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument 65 mCamera.setPreviewDisplay(holder); in surfaceCreated() 73 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument 77 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
|
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
D | LocalPlayer.java | 389 SurfaceHolder holder = mSurfaceView.getHolder(); in SurfaceViewPlayer() local 390 holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); in SurfaceViewPlayer() 391 holder.addCallback(this); in SurfaceViewPlayer() 412 SurfaceHolder holder = mSurfaceView.getHolder(); in release() local 413 holder.removeCallback(this); in release() 452 public void surfaceChanged(SurfaceHolder holder, int format, in surfaceChanged() argument 457 setSurface(holder); in surfaceChanged() 461 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument 465 setSurface(holder); in surfaceCreated() 470 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument [all …]
|
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
D | LocalPlayer.java | 389 SurfaceHolder holder = mSurfaceView.getHolder(); in SurfaceViewPlayer() local 390 holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); in SurfaceViewPlayer() 391 holder.addCallback(this); in SurfaceViewPlayer() 412 SurfaceHolder holder = mSurfaceView.getHolder(); in release() local 413 holder.removeCallback(this); in release() 452 public void surfaceChanged(SurfaceHolder holder, int format, in surfaceChanged() argument 457 setSurface(holder); in surfaceChanged() 461 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument 465 setSurface(holder); in surfaceCreated() 470 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument [all …]
|
/developers/build/prebuilts/gradle/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/camera/ |
D | CameraPreview.java | 62 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument 65 mCamera.setPreviewDisplay(holder); in surfaceCreated() 73 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument 77 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/ |
D | CameraPreview.java | 62 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument 65 mCamera.setPreviewDisplay(holder); in surfaceCreated() 73 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument 77 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
|
/developers/build/prebuilts/gradle/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/ |
D | PlanetAdapter.java | 67 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/wearable/wear/SpeedTracker/Wearable/src/main/java/com/example/android/wearable/speedtracker/ui/ |
D | SpeedPickerListAdapter.java | 73 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/SpeedTracker/Wearable/src/main/java/com/example/android/wearable/speedtracker/ui/ |
D | SpeedPickerListAdapter.java | 73 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/ui/views/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/ |
D | PlanetAdapter.java | 67 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/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/ui/ |
D | AttractionListFragment.java | 157 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder() argument 160 holder.mTitleTextView.setText(attraction.name); in onBindViewHolder() 161 holder.mDescriptionTextView.setText(attraction.description); in onBindViewHolder() 167 .into(holder.mImageView); in onBindViewHolder() 172 holder.mOverlayTextView.setVisibility(View.GONE); in onBindViewHolder() 174 holder.mOverlayTextView.setVisibility(View.VISIBLE); in onBindViewHolder() 175 holder.mOverlayTextView.setText(distance); in onBindViewHolder()
|
/developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/ui/ |
D | AttractionListFragment.java | 157 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder() argument 160 holder.mTitleTextView.setText(attraction.name); in onBindViewHolder() 161 holder.mDescriptionTextView.setText(attraction.description); in onBindViewHolder() 167 .into(holder.mImageView); in onBindViewHolder() 172 holder.mOverlayTextView.setVisibility(View.GONE); in onBindViewHolder() 174 holder.mOverlayTextView.setVisibility(View.VISIBLE); in onBindViewHolder() 175 holder.mOverlayTextView.setText(distance); in onBindViewHolder()
|
/developers/samples/android/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
D | SetTimerActivity.java | 99 public void onClick(WearableListView.ViewHolder holder) { in onClick() argument 100 long duration = mTimeOptions[holder.getPosition()].duration; in onClick() 205 public void onBindViewHolder(WearableListView.ViewHolder holder, int position) { in onBindViewHolder() argument 206 TextView view = (TextView) holder.itemView.findViewById(R.id.time_text); in onBindViewHolder() 208 holder.itemView.setTag(position); in onBindViewHolder()
|
/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
D | SetTimerActivity.java | 99 public void onClick(WearableListView.ViewHolder holder) { in onClick() argument 100 long duration = mTimeOptions[holder.getPosition()].duration; in onClick() 205 public void onBindViewHolder(WearableListView.ViewHolder holder, int position) { in onBindViewHolder() argument 206 TextView view = (TextView) holder.itemView.findViewById(R.id.time_text); in onBindViewHolder() 208 holder.itemView.setTag(position); in onBindViewHolder()
|
/developers/samples/android/wearable/wear/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/ |
D | MainActivity.java | 95 public void onBindViewHolder(WearableListView.ViewHolder holder, int position) { in onBindViewHolder() argument 96 TextView view = (TextView) holder.itemView.findViewById(R.id.name); in onBindViewHolder() 98 holder.itemView.setTag(position); in onBindViewHolder()
|
/developers/build/prebuilts/gradle/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/ |
D | MainActivity.java | 95 public void onBindViewHolder(WearableListView.ViewHolder holder, int position) { in onBindViewHolder() argument 96 TextView view = (TextView) holder.itemView.findViewById(R.id.name); in onBindViewHolder() 98 holder.itemView.setTag(position); in onBindViewHolder()
|
/developers/samples/android/wearable/wear/DataLayer/Application/src/main/java/com/example/android/wearable/datalayer/ |
D | MainActivity.java | 381 ViewHolder holder; in getView() local 383 holder = new ViewHolder(); in getView() 387 convertView.setTag(holder); in getView() 388 holder.text1 = (TextView) convertView.findViewById(android.R.id.text1); in getView() 389 holder.text2 = (TextView) convertView.findViewById(android.R.id.text2); in getView() 391 holder = (ViewHolder) convertView.getTag(); in getView() 394 holder.text1.setText(event.title); in getView() 395 holder.text2.setText(event.text); in getView()
|