OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:attraction
(Results
1 - 21
of
21
) sorted by null
/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
...]