diff options
author | SammysHP <sven@sammyshp.de> | 2011-11-23 16:03:44 +0100 |
---|---|---|
committer | SammysHP <sven@sammyshp.de> | 2011-11-23 16:03:44 +0100 |
commit | b4eaf66670760969f72b1244f298654484ee5731 (patch) | |
tree | aa345cd6acada40c3af70871f61a07b3542dd610 /main/src/cgeo/geocaching/cgeotrackable.java | |
parent | df4bf84d783744790b1aa2975e8373261eb6ca06 (diff) | |
download | cgeo-b4eaf66670760969f72b1244f298654484ee5731.zip cgeo-b4eaf66670760969f72b1244f298654484ee5731.tar.gz cgeo-b4eaf66670760969f72b1244f298654484ee5731.tar.bz2 |
New: Horizontal scrollable pages for cache-details using a ViewPager.
This moves most of the code from "cgeodetail" into a new class "CacheDetailActivity". Some important parts are rewritten and the code is much more structured.
This closes #83 "Redesign detail-view".
Some minor changes will be added later (e.g. removing old files, improve log-count-display)
Diffstat (limited to 'main/src/cgeo/geocaching/cgeotrackable.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeotrackable.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgeotrackable.java b/main/src/cgeo/geocaching/cgeotrackable.java index 6258e2b..a7a93e4 100644 --- a/main/src/cgeo/geocaching/cgeotrackable.java +++ b/main/src/cgeo/geocaching/cgeotrackable.java @@ -168,7 +168,7 @@ public class cgeotrackable extends AbstractActivity { if (cgTrackable.SPOTTED_CACHE == trackable.getSpottedType()) { itemLayout.setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { - Intent cacheIntent = new Intent(cgeotrackable.this, cgeodetail.class); + Intent cacheIntent = new Intent(cgeotrackable.this, CacheDetailActivity.class); cacheIntent.putExtra("guid", trackable.getSpottedGuid()); cacheIntent.putExtra("name", trackable.getSpottedName()); startActivity(cacheIntent); @@ -506,7 +506,7 @@ public class cgeotrackable extends AbstractActivity { final String cacheName = log.cacheName; ((TextView) rowView.findViewById(R.id.location)).setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { - Intent cacheIntent = new Intent(cgeotrackable.this, cgeodetail.class); + Intent cacheIntent = new Intent(cgeotrackable.this, CacheDetailActivity.class); cacheIntent.putExtra("guid", cacheGuid); cacheIntent.putExtra("name", Html.fromHtml(cacheName).toString()); startActivity(cacheIntent); |