Searched refs:attraction (Results 1 – 7 of 7) sorted by relevance
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/ui/ |
D | DetailActivity.java | 41 public static void launch(Activity activity, String attraction, View heroView) { in launch() argument 42 Intent intent = getLaunchIntent(activity, attraction); in launch() 52 public static Intent getLaunchIntent(Context context, String attraction) { in getLaunchIntent() argument 54 intent.putExtra(EXTRA_ATTRACTION, attraction); in getLaunchIntent() 63 String attraction = getIntent().getStringExtra(EXTRA_ATTRACTION); in onCreate() local 66 .add(R.id.container, DetailFragment.createInstance(attraction)) in onCreate()
|
D | AttractionListFragment.java | 158 Attraction attraction = mAttractionList.get(position); in onBindViewHolder() local 160 holder.mTitleTextView.setText(attraction.name); in onBindViewHolder() 161 holder.mDescriptionTextView.setText(attraction.description); in onBindViewHolder() 163 .load(attraction.imageUrl) in onBindViewHolder() 170 Utils.formatDistanceBetween(mLatestLocation, attraction.location); in onBindViewHolder()
|
D | DetailFragment.java | 158 for (Attraction attraction : attractions) { in findAttraction() 159 if (attractionName.equals(attraction.name)) { in findAttraction() 160 return attraction; in findAttraction()
|
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/ |
D | AttractionsGridPagerAdapter.java | 102 final Attraction attraction = mAttractions.get(row); in instantiateItem() local 126 imageView.setImageBitmap(attraction.image); in instantiateItem() 127 textView.setText(attraction.name); in instantiateItem() 129 imageView.setImageBitmap(attraction.secondaryImage); in instantiateItem() 130 if (TextUtils.isEmpty(attraction.distance)) { in instantiateItem() 134 R.string.map_caption, attraction.distance)); in instantiateItem() 144 descTextView.setText(attraction.description); in instantiateItem() 157 attraction, Constants.START_NAVIGATION_PATH, in instantiateItem() 170 attraction, Constants.START_ATTRACTION_PATH, in instantiateItem() 224 private void startAction(Attraction attraction, String pathName, int confirmAnimationType) { in startAction() argument [all …]
|
D | AttractionsActivity.java | 218 Attraction attraction = new Attraction(); in doInBackground() local 219 attraction.name = attractionData.getString(Constants.EXTRA_TITLE); in doInBackground() 220 attraction.description = in doInBackground() 222 attraction.city = attractionData.get(Constants.EXTRA_CITY); in doInBackground() 223 attraction.distance = in doInBackground() 225 attraction.location = new LatLng( in doInBackground() 228 attraction.image = Utils.loadBitmapFromAsset(googleApiClient, in doInBackground() 230 attraction.secondaryImage = Utils.loadBitmapFromAsset(googleApiClient, in doInBackground() 233 mAttractions.add(attraction); in doInBackground()
|
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/ |
D | UtilityService.java | 326 Attraction attraction = attractions.get(0); in showNotification() local 350 DetailActivity.getLaunchIntent(this, attraction.name), in showNotification() 361 .bigPicture(bitmaps.get(attraction.name)) in showNotification() 362 .setBigContentTitle(attraction.name) in showNotification() 366 .setContentTitle(attraction.name) in showNotification() 424 Attraction attraction = attractions.get(i); in sendDataToWearable() local 432 .load(attraction.imageUrl) in sendDataToWearable() 439 .load(attraction.secondaryImageUrl) in sendDataToWearable() 453 Utils.getLocation(this), attraction.location); in sendDataToWearable() 455 attractionData.putString(Constants.EXTRA_TITLE, attraction.name); in sendDataToWearable() [all …]
|
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/service/ |
D | ListenerService.java | 101 DataMap attraction = attractions.get(0); in showNotification() local 104 googleApiClient, attraction.getAsset(Constants.EXTRA_IMAGE)); in showNotification()
|