<NME> DistanceView.java
<BEF> package cgeo.geocaching;

import cgeo.geocaching.geopoint.Geopoint;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

public class cgDistanceView extends TextView {
    private Geopoint cacheCoords = null;

    public cgDistanceView(Context context) {
        super(context);
    }

    public cgDistanceView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public cgDistanceView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

        super(context, attrs, defStyle);
    }

    public void setCacheData(final Geopoint cacheCoords, final Float distance) {
        this.cacheCoords = cacheCoords;
        this.distance = distance;
    }

    public void update(final Geopoint coords) {
        if (cacheCoords == null) {
            setText(distance == null ? "?" : "~" + Units.getDistanceFromKilometers(distance));
        } else {
            setText(coords == null ? "?" : Units.getDistanceFromKilometers(coords.distanceTo(cacheCoords)));
        }
    }
}

<MSG> refactoring: move more widget related classes into own package
<DFF> @@ -1,23 +1,24 @@
-package cgeo.geocaching;
+package cgeo.geocaching.ui;
 
+import cgeo.geocaching.cgBase;
 import cgeo.geocaching.geopoint.Geopoint;
 
 import android.content.Context;
 import android.util.AttributeSet;
 import android.widget.TextView;
 
-public class cgDistanceView extends TextView {
+public class DistanceView extends TextView {
     private Geopoint cacheCoords = null;
 
-    public cgDistanceView(Context context) {
+    public DistanceView(Context context) {
         super(context);
     }
 
-    public cgDistanceView(Context context, AttributeSet attrs) {
+    public DistanceView(Context context, AttributeSet attrs) {
         super(context, attrs);
     }
 
-    public cgDistanceView(Context context, AttributeSet attrs, int defStyle) {
+    public DistanceView(Context context, AttributeSet attrs, int defStyle) {
         super(context, attrs, defStyle);
     }
 

refactoring: move more widget related classes into own package