Permalink
Browse files

Abbreviated two route names in the map timesTables

  • Loading branch information...
1 parent a778742 commit 8bf711b64e2d9e2d6345955fc179f6b7b8eb7a71 @seansouthern committed Sep 14, 2012
Showing with 31 additions and 25 deletions.
  1. +2 −2 AndroidManifest.xml
  2. BIN bin/AnchorageBusTimes.apk
  3. +2 −2 bin/AndroidManifest.xml
  4. BIN bin/classes.dex
  5. BIN bin/classes/com/seansouthern/anchoragebustimes/R$drawable.class
  6. BIN bin/classes/com/seansouthern/anchoragebustimes/R$id.class
  7. BIN bin/classes/com/seansouthern/anchoragebustimes/R$layout.class
  8. BIN bin/classes/com/seansouthern/anchoragebustimes/R$menu.class
  9. BIN bin/classes/com/seansouthern/anchoragebustimes/R$string.class
  10. BIN bin/classes/com/seansouthern/anchoragebustimes/R$style.class
  11. BIN bin/classes/com/seansouthern/anchoragebustimes/map$1.class
  12. BIN bin/classes/com/seansouthern/anchoragebustimes/map$2.class
  13. BIN bin/classes/com/seansouthern/anchoragebustimes/map$3.class
  14. BIN bin/classes/com/seansouthern/anchoragebustimes/map$4$1.class
  15. BIN bin/classes/com/seansouthern/anchoragebustimes/map$4.class
  16. BIN bin/classes/com/seansouthern/anchoragebustimes/map$BusRefresher.class
  17. BIN bin/classes/com/seansouthern/anchoragebustimes/map$LatLonPoint.class
  18. BIN bin/classes/com/seansouthern/anchoragebustimes/map$LineOverlay.class
  19. BIN bin/classes/com/seansouthern/anchoragebustimes/map$MapTimesLoader.class
  20. BIN bin/classes/com/seansouthern/anchoragebustimes/map$MapTimesTable.class
  21. BIN bin/classes/com/seansouthern/anchoragebustimes/map$SpinnerItemListener.class
  22. BIN bin/classes/com/seansouthern/anchoragebustimes/map.class
  23. BIN bin/res/drawable/abt.png
  24. BIN bin/res/drawable/drawable-hdpi/abt.png
  25. BIN bin/res/drawable/drawable-ldpi/abt.png
  26. BIN bin/res/drawable/drawable-mdpi/abt.png
  27. BIN bin/res/drawable/drawable-xhdpi/abt.png
  28. BIN bin/resources.ap_
  29. +9 −12 gen/com/seansouthern/anchoragebustimes/R.java
  30. BIN res/drawable/abt.png
  31. BIN res/drawable/drawable-hdpi/abt.png
  32. BIN res/drawable/drawable-ldpi/abt.png
  33. BIN res/drawable/drawable-mdpi/abt.png
  34. BIN res/drawable/drawable-xhdpi/abt.png
  35. +1 −1 res/values/strings.xml
  36. +17 −8 src/com/seansouthern/anchoragebustimes/map.java
View
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.seansouthern.anchoragebustimes"
- android:versionCode="10"
- android:versionName="1.3.5" >
+ android:versionCode="11"
+ android:versionName="1.4" >
<uses-permission android:name="android.permission.INTERNET" >
</uses-permission>
Binary file not shown.
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.seansouthern.anchoragebustimes"
- android:versionCode="10"
- android:versionName="1.3.5" >
+ android:versionCode="11"
+ android:versionName="1.4" >
<uses-permission android:name="android.permission.INTERNET" >
</uses-permission>
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Binary file not shown.
@@ -15,18 +15,15 @@
}
public static final class drawable {
public static final int abt=0x7f020000;
- public static final int abth=0x7f020001;
- public static final int abtl=0x7f020002;
- public static final int busmarker=0x7f020003;
- public static final int button_bg_selected=0x7f020004;
- public static final int button_bg_selector=0x7f020005;
- public static final int button_bg_unselected=0x7f020006;
- public static final int double_bus=0x7f020007;
- public static final int marker=0x7f020008;
- public static final int tab_bg_selected=0x7f020009;
- public static final int tab_bg_selector=0x7f02000a;
- public static final int tab_bg_unselected=0x7f02000b;
- public static final int tab_text_selector=0x7f02000c;
+ public static final int busmarker=0x7f020001;
+ public static final int button_bg_selected=0x7f020002;
+ public static final int button_bg_selector=0x7f020003;
+ public static final int button_bg_unselected=0x7f020004;
+ public static final int marker=0x7f020005;
+ public static final int tab_bg_selected=0x7f020006;
+ public static final int tab_bg_selector=0x7f020007;
+ public static final int tab_bg_unselected=0x7f020008;
+ public static final int tab_text_selector=0x7f020009;
}
public static final class id {
public static final int about=0x7f08000d;
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Anchorage Bus Times</string>
- <string name="MAPS_API_KEY">03leX7NA3JHJzRLkU3IAshBLhSglEhVf0FBVc4A</string>
+ <string name="MAPS_API_KEY">03leX7NA3JHKCFyu05Bb2jz-D4T3uZmEWEHtI5g</string>
<string name="routes_prompt">Select a Route and Direction</string>
<string-array name="routes_array">
<item>1 - CROSSTOWN</item>
@@ -408,7 +408,6 @@ else if(direction.equals("ALL") && (!routeNum.equals("3") && !routeNum.equals("7
return manStopList;
}
-
public void toCallAsync(final String route) {
final Handler handler = new Handler();
Timer timer = new Timer();
@@ -434,7 +433,6 @@ public void run() {
timer.schedule(BusRefreshTimerTask, 0,20000);
}
-
OnOverlayGestureListener mogDetector = new ManagedOverlayGestureDetector.OnOverlayGestureListener(){
public boolean onDoubleTap(MotionEvent arg0, ManagedOverlay arg1,
GeoPoint arg2, ManagedOverlayItem arg3) {
@@ -544,6 +542,10 @@ protected void onPostExecute(Document page){
if(timesTable.getChildAt(3) != null){
timesTable.removeViewAt(3);
}
+
+ // Fix for layout quirk that pushes the right hand side of the info bar offscreen
+ timesTable.setColumnShrinkable(1, true);
+
Elements elems = page.body().select("h3, h1, td, div");
TableRow infoRow = new TableRow(context);
TableRow timeRow = new TableRow(context);
@@ -552,7 +554,18 @@ protected void onPostExecute(Document page){
for(Element src : elems){
if(src.nodeName().equals("td") && flag == 0 || flag == 1 ){
TextView tv = new TextView(context);
- tv.setText(src.text());
+
+ // Abbreviate long Route Names to prevent row overflow
+ if(src.text().equals("WEST ANCHORAGE/U-MED")){
+ tv.setText("WEST ANCH/U-MED");
+ }
+ else if(src.text().equals("UNIVERSITY/HOSPITALS")){
+ tv.setText("UAA/HOSPITALS");
+ }
+ else{
+ tv.setText(src.text());
+ }
+
if(flag == 1){
tv.setGravity(Gravity.RIGHT);
}
@@ -596,13 +609,13 @@ else if(src.nodeName().equals("td") && flag == 3){
}
-
class MapTimesTable extends TableLayout{
public MapTimesTable(Context context, String stopNum) {
super(context);
makeHeader(stopNum);
grabMapTimes(stopNum);
setVisibility(View.VISIBLE);
+
}
public void makeHeader(String stopNum){
@@ -654,7 +667,6 @@ public LatLonPoint(double latitude, double longitude) {
}
}
-
public class SpinnerItemListener implements OnItemSelectedListener {
public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
String SpinnerItem = parent.getItemAtPosition(pos).toString();
@@ -702,7 +714,6 @@ public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
leftButton.setText(DirectionsMap.get(route).get(0));
leftButton.setSelected(false);
- Log.d("", "right button being set to clickable");
TextView rightButton = (TextView) findViewById(R.id.right_button);
rightButton.setText(DirectionsMap.get(route).get(1));
rightButton.setSelected(false);
@@ -716,7 +727,6 @@ public void onNothingSelected(AdapterView<?> parent) {
}
}
-
public class BusRefresher extends AsyncTask<String, Void, List<ManagedOverlayItem>>{
@Override
@@ -735,7 +745,6 @@ protected void onPostExecute(List<ManagedOverlayItem> busList){
}
}
-
class LineOverlay extends Overlay{
public LineOverlay(String routeNum){
this.routeNum = routeNum;

0 comments on commit 8bf711b

Please sign in to comment.