/developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/ui/ |
DetailActivity.java | 33 * The tourist attraction detail activity screen which contains the details of 34 * a single attraction. 38 private static final String EXTRA_ATTRACTION = "attraction"; 41 public static void launch(Activity activity, String attraction, View heroView) { 42 Intent intent = getLaunchIntent(activity, attraction); 52 public static Intent getLaunchIntent(Context context, String attraction) { 54 intent.putExtra(EXTRA_ATTRACTION, attraction); 63 String attraction = getIntent().getStringExtra(EXTRA_ATTRACTION); local 66 .add(R.id.container, DetailFragment.createInstance(attraction))
|
AttractionListFragment.java | 37 import com.example.android.xyztouristattractions.common.Attraction; 53 * The main tourist attraction fragment which contains a list of attractions 74 List<Attraction> attractions = loadAttractionsFromLocation(mLatestLocation); 114 private static List<Attraction> loadAttractionsFromLocation(final LatLng curLatLng) { 117 List<Attraction> attractions = ATTRACTIONS.get(closestCity); 120 new Comparator<Attraction>() { 122 public int compare(Attraction lhs, Attraction rhs) { 140 public List<Attraction> mAttractionList; 143 public AttractionAdapter(Context context, List<Attraction> attractions) 158 Attraction attraction = mAttractionList.get(position); local [all...] |
DetailFragment.java | 38 import com.example.android.xyztouristattractions.common.Attraction; 49 * The tourist attraction detail fragment which contains the details of a 50 * a single attraction (contained inside 55 private static final String EXTRA_ATTRACTION = "attraction"; 56 private Attraction mAttraction; 152 * Really hacky loop for finding attraction in our static content provider. 155 private Attraction findAttraction(String attractionName) { 156 for (Map.Entry<String, List<Attraction>> attractionsList : ATTRACTIONS.entrySet()) { 157 List<Attraction> attractions = attractionsList.getValue(); 158 for (Attraction attraction : attractions) [all...] |
/developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/ui/ |
DetailActivity.java | 33 * The tourist attraction detail activity screen which contains the details of 34 * a single attraction. 38 private static final String EXTRA_ATTRACTION = "attraction"; 41 public static void launch(Activity activity, String attraction, View heroView) { 42 Intent intent = getLaunchIntent(activity, attraction); 52 public static Intent getLaunchIntent(Context context, String attraction) { 54 intent.putExtra(EXTRA_ATTRACTION, attraction); 63 String attraction = getIntent().getStringExtra(EXTRA_ATTRACTION); local 66 .add(R.id.container, DetailFragment.createInstance(attraction))
|
AttractionListFragment.java | 37 import com.example.android.xyztouristattractions.common.Attraction; 53 * The main tourist attraction fragment which contains a list of attractions 74 List<Attraction> attractions = loadAttractionsFromLocation(mLatestLocation); 114 private static List<Attraction> loadAttractionsFromLocation(final LatLng curLatLng) { 117 List<Attraction> attractions = ATTRACTIONS.get(closestCity); 120 new Comparator<Attraction>() { 122 public int compare(Attraction lhs, Attraction rhs) { 140 public List<Attraction> mAttractionList; 143 public AttractionAdapter(Context context, List<Attraction> attractions) 158 Attraction attraction = mAttractionList.get(position); local [all...] |
DetailFragment.java | 38 import com.example.android.xyztouristattractions.common.Attraction; 49 * The tourist attraction detail fragment which contains the details of a 50 * a single attraction (contained inside 55 private static final String EXTRA_ATTRACTION = "attraction"; 56 private Attraction mAttraction; 152 * Really hacky loop for finding attraction in our static content provider. 155 private Attraction findAttraction(String attractionName) { 156 for (Map.Entry<String, List<Attraction>> attractionsList : ATTRACTIONS.entrySet()) { 157 List<Attraction> attractions = attractionsList.getValue(); 158 for (Attraction attraction : attractions) [all...] |
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/ui/ |
DetailActivity.java | 33 * The tourist attraction detail activity screen which contains the details of 34 * a single attraction. 38 private static final String EXTRA_ATTRACTION = "attraction"; 41 public static void launch(Activity activity, String attraction, View heroView) { 42 Intent intent = getLaunchIntent(activity, attraction); 52 public static Intent getLaunchIntent(Context context, String attraction) { 54 intent.putExtra(EXTRA_ATTRACTION, attraction); 63 String attraction = getIntent().getStringExtra(EXTRA_ATTRACTION); local 66 .add(R.id.container, DetailFragment.createInstance(attraction))
|
AttractionListFragment.java | 37 import com.example.android.xyztouristattractions.common.Attraction; 53 * The main tourist attraction fragment which contains a list of attractions 74 List<Attraction> attractions = loadAttractionsFromLocation(mLatestLocation); 114 private static List<Attraction> loadAttractionsFromLocation(final LatLng curLatLng) { 117 List<Attraction> attractions = ATTRACTIONS.get(closestCity); 120 new Comparator<Attraction>() { 122 public int compare(Attraction lhs, Attraction rhs) { 140 public List<Attraction> mAttractionList; 143 public AttractionAdapter(Context context, List<Attraction> attractions) 158 Attraction attraction = mAttractionList.get(position); local [all...] |
DetailFragment.java | 38 import com.example.android.xyztouristattractions.common.Attraction; 49 * The tourist attraction detail fragment which contains the details of a 50 * a single attraction (contained inside 55 private static final String EXTRA_ATTRACTION = "attraction"; 56 private Attraction mAttraction; 152 * Really hacky loop for finding attraction in our static content provider. 155 private Attraction findAttraction(String attractionName) { 156 for (Map.Entry<String, List<Attraction>> attractionsList : ATTRACTIONS.entrySet()) { 157 List<Attraction> attractions = attractionsList.getValue(); 158 for (Attraction attraction : attractions) [all...] |
/developers/build/prebuilts/gradle/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/ui/ |
AttractionsActivity.java | 38 import com.example.android.xyztouristattractions.common.Attraction; 58 * one attraction and each column shows information or actions for that 59 * particular attraction. 73 private ArrayList<Attraction> mAttractions = new ArrayList<Attraction>(); 173 * A background task to load the attraction data via the Wear DataApi. 178 AsyncTask<Uri, Void, ArrayList<Attraction>> { 187 protected ArrayList<Attraction> doInBackground(Uri... params) { 213 // Loop through each attraction, adding them to the list 218 Attraction attraction = new Attraction() local [all...] |
AttractionsGridPagerAdapter.java | 43 import com.example.android.xyztouristattractions.common.Attraction; 68 private ArrayList<Attraction> mAttractions; 74 Context context, ArrayList<Attraction> attractions) { 81 public void setData(ArrayList<Attraction> attractions) { 102 final Attraction attraction = mAttractions.get(row); local 106 // Two pages of full screen images, one with the attraction name 107 // and one with the distance to the attraction 126 imageView.setImageBitmap(attraction.image); 127 textView.setText(attraction.name) [all...] |
/developers/samples/android/wearable/wear/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/ui/ |
AttractionsActivity.java | 38 import com.example.android.xyztouristattractions.common.Attraction; 58 * one attraction and each column shows information or actions for that 59 * particular attraction. 73 private ArrayList<Attraction> mAttractions = new ArrayList<Attraction>(); 173 * A background task to load the attraction data via the Wear DataApi. 178 AsyncTask<Uri, Void, ArrayList<Attraction>> { 187 protected ArrayList<Attraction> doInBackground(Uri... params) { 213 // Loop through each attraction, adding them to the list 218 Attraction attraction = new Attraction() local [all...] |
AttractionsGridPagerAdapter.java | 43 import com.example.android.xyztouristattractions.common.Attraction; 68 private ArrayList<Attraction> mAttractions; 74 Context context, ArrayList<Attraction> attractions) { 81 public void setData(ArrayList<Attraction> attractions) { 102 final Attraction attraction = mAttractions.get(row); local 106 // Two pages of full screen images, one with the attraction name 107 // and one with the distance to the attraction 126 imageView.setImageBitmap(attraction.image); 127 textView.setText(attraction.name) [all...] |
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/ |
AttractionsActivity.java | 38 import com.example.android.xyztouristattractions.common.Attraction; 58 * one attraction and each column shows information or actions for that 59 * particular attraction. 73 private ArrayList<Attraction> mAttractions = new ArrayList<Attraction>(); 173 * A background task to load the attraction data via the Wear DataApi. 178 AsyncTask<Uri, Void, ArrayList<Attraction>> { 187 protected ArrayList<Attraction> doInBackground(Uri... params) { 213 // Loop through each attraction, adding them to the list 218 Attraction attraction = new Attraction() local [all...] |
AttractionsGridPagerAdapter.java | 43 import com.example.android.xyztouristattractions.common.Attraction; 68 private ArrayList<Attraction> mAttractions; 74 Context context, ArrayList<Attraction> attractions) { 81 public void setData(ArrayList<Attraction> attractions) { 102 final Attraction attraction = mAttractions.get(row); local 106 // Two pages of full screen images, one with the attraction name 107 // and one with the distance to the attraction 126 imageView.setImageBitmap(attraction.image); 127 textView.setText(attraction.name) [all...] |
/developers/build/prebuilts/gradle/XYZTouristAttractions/Shared/src/main/java/com/example/android/xyztouristattractions/common/ |
Attraction.java | 25 * A simple shared tourist attraction class to easily pass data around. Used 28 public class Attraction { 41 public Attraction() {} 43 public Attraction(String name, String description, String longDescription, Uri imageUrl,
|
/developers/samples/android/wearable/wear/XYZTouristAttractions/Shared/src/main/java/com/example/android/xyztouristattractions/common/ |
Attraction.java | 25 * A simple shared tourist attraction class to easily pass data around. Used 28 public class Attraction { 41 public Attraction() {} 43 public Attraction(String name, String description, String longDescription, Uri imageUrl,
|
/development/samples/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/ |
Attraction.java | 25 * A simple shared tourist attraction class to easily pass data around. Used 28 public class Attraction { 41 public Attraction() {} 43 public Attraction(String name, String description, String longDescription, Uri imageUrl,
|
/developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/ |
UtilityService.java | 35 import com.example.android.xyztouristattractions.common.Attraction; 318 List<Attraction> attractions = ATTRACTIONS.get(cityId); 325 // The first (closest) tourist attraction 326 Attraction attraction = attractions.get(0); local 332 // Pull down the tourist attraction images from the network and store 350 DetailActivity.getLaunchIntent(this, attraction.name), 361 .bigPicture(bitmaps.get(attraction.name)) 362 .setBigContentTitle(attraction.name) 366 .setContentTitle(attraction.name 424 Attraction attraction = attractions.get(i); local [all...] |
ListenerService.java | 43 // Request for this device open the attraction detail screen 44 // to a specific tourist attraction 51 // specific tourist attraction
|
/developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/ |
UtilityService.java | 35 import com.example.android.xyztouristattractions.common.Attraction; 318 List<Attraction> attractions = ATTRACTIONS.get(cityId); 325 // The first (closest) tourist attraction 326 Attraction attraction = attractions.get(0); local 332 // Pull down the tourist attraction images from the network and store 350 DetailActivity.getLaunchIntent(this, attraction.name), 361 .bigPicture(bitmaps.get(attraction.name)) 362 .setBigContentTitle(attraction.name) 366 .setContentTitle(attraction.name 424 Attraction attraction = attractions.get(i); local [all...] |
ListenerService.java | 43 // Request for this device open the attraction detail screen 44 // to a specific tourist attraction 51 // specific tourist attraction
|
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/ |
UtilityService.java | 35 import com.example.android.xyztouristattractions.common.Attraction; 318 List<Attraction> attractions = ATTRACTIONS.get(cityId); 325 // The first (closest) tourist attraction 326 Attraction attraction = attractions.get(0); local 332 // Pull down the tourist attraction images from the network and store 350 DetailActivity.getLaunchIntent(this, attraction.name), 361 .bigPicture(bitmaps.get(attraction.name)) 362 .setBigContentTitle(attraction.name) 366 .setContentTitle(attraction.name 424 Attraction attraction = attractions.get(i); local [all...] |
ListenerService.java | 43 // Request for this device open the attraction detail screen 44 // to a specific tourist attraction 51 // specific tourist attraction
|
/developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/provider/ |
TouristAttractions.java | 21 import com.example.android.xyztouristattractions.common.Attraction; 52 public static final HashMap<String, List<Attraction>> ATTRACTIONS = 53 new HashMap<String, List<Attraction>>() {{ 55 put(CITY_SYDNEY, new ArrayList<Attraction>() {{ 56 add(new Attraction( 66 add(new Attraction( 76 add(new Attraction( 86 add(new Attraction( 96 add(new Attraction(
|