From 4d8977583a8b90d464dd4298b14d0bd6778618f5 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 14 Mar 2012 18:05:37 +0000 Subject: Stoped the progress bars on the Bus activity from replacing the times. --- gen/net/cbaines/suma/R.java | Bin 14657 -> 14657 bytes project.properties | 2 +- res/layout/bus_specific_stop_view.xml | 12 ++++++------ src/net/cbaines/suma/BusSpecificStopView.java | 22 ++-------------------- 4 files changed, 9 insertions(+), 27 deletions(-) diff --git a/gen/net/cbaines/suma/R.java b/gen/net/cbaines/suma/R.java index 71f1c96..4ac68de 100644 Binary files a/gen/net/cbaines/suma/R.java and b/gen/net/cbaines/suma/R.java differ diff --git a/project.properties b/project.properties index f049142..ea89160 100644 --- a/project.properties +++ b/project.properties @@ -8,4 +8,4 @@ # project structure. # Project target. -target=android-10 +target=android-8 diff --git a/res/layout/bus_specific_stop_view.xml b/res/layout/bus_specific_stop_view.xml index 6787540..ed0dee0 100644 --- a/res/layout/bus_specific_stop_view.xml +++ b/res/layout/bus_specific_stop_view.xml @@ -19,16 +19,16 @@ android:layout_alignParentRight="true" android:layout_centerVertical="true" android:gravity="center_vertical" - android:orientation="vertical" > + android:orientation="horizontal" > - - diff --git a/src/net/cbaines/suma/BusSpecificStopView.java b/src/net/cbaines/suma/BusSpecificStopView.java index 777d031..9832588 100644 --- a/src/net/cbaines/suma/BusSpecificStopView.java +++ b/src/net/cbaines/suma/BusSpecificStopView.java @@ -73,7 +73,8 @@ public class BusSpecificStopView extends LinearLayout implements OnClickListener time = (TextView) findViewById(R.id.busSpecificStopViewTime); time.setTextSize(22f); - // timeProgress = new ProgressBar(context, null, android.R.attr.progressBarStyleSmall); + // timeProgress = new ProgressBar(context, null, + // android.R.attr.progressBarStyleSmall); timeProgress = (ProgressBar) findViewById(R.id.busSpecificStopViewProgressBar); Resources resources = context.getResources(); @@ -81,23 +82,6 @@ public class BusSpecificStopView extends LinearLayout implements OnClickListener onClickUnidentifiedMessage = resources.getString(R.string.bus_stop_view_on_click_toast_unidentified_message); setStop(stop); - - // RelativeLayout.LayoutParams relativeParams = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, - // LayoutParams.WRAP_CONTENT); - // relativeParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT); - // - // RelativeLayout.LayoutParams relativeParams2 = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, - // LayoutParams.FILL_PARENT); - // relativeParams2.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); - // - // addView(location, relativeParams); - // addView(time, relativeParams2); - // - // // LinearLayout progressLayout = new LinearLayout(context); - // // progressLayout.setOrientation(LinearLayout.VERTICAL); - // // progressLayout.addView(timeProgress, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); - // - // addView(timeProgress, relativeParams2); } public void setStop(Stop stop) { @@ -117,8 +101,6 @@ public class BusSpecificStopView extends LinearLayout implements OnClickListener time.setVisibility(View.VISIBLE); timeProgress.setVisibility(View.GONE); } else if (stop instanceof StopLoading) { - time.setText(""); - time.setVisibility(View.GONE); timeProgress.setVisibility(View.VISIBLE); } else { // No time available (yet) and not currently loading time.setVisibility(View.GONE); -- cgit v1.2.3