public static Geopoint getCoordinates(final TextView textView) {
        final String[] latlonText = textView.getText().toString().split("\n");
        if (latlonText.length < 2) {
            return null;
        }
        final String latText = StringUtils.trim(latlonText[0]);
        final String lonText = StringUtils.trim(latlonText[1]);

        if (!latText.equals(LocalizationUtils.getString(R.string.waypoint_latitude_null)) && !lonText.equals(LocalizationUtils.getString(R.string.waypoint_longitude_null))) {
            try {
                return new Geopoint(latText, lonText);
            } catch (final Geopoint.ParseException e) {
                // ignore
            }
        }
        return null;
    }
Sets padding (in DP) to apply to each list item.
 List of int[] are added to each other to get the final padding. For each int[] following rule applies:
 If 4 numbers are given, they are applied to left, top, right, bottom in that order
 If 2 numbers are given, they are applied to horizontal (left+right), vertical (top+bottom)
 If 1 number is given it is applied to all 4 sides
main/src/main/java/cgeo/geocaching/ui/ViewUtils.java