From ac4ee5767bdcff68684f7f0144976946636528cb Mon Sep 17 00:00:00 2001 From: Joachim Fritzsch Date: Sat, 18 May 2013 20:53:37 +0200 Subject: [PATCH] android: Status tab slideshow optimization --- android/BOINC/res/layout/status_layout.xml | 22 +++++++++++-------- .../edu/berkeley/boinc/StatusActivity.java | 4 ++-- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/android/BOINC/res/layout/status_layout.xml b/android/BOINC/res/layout/status_layout.xml index 93b040d37a..175cde9620 100644 --- a/android/BOINC/res/layout/status_layout.xml +++ b/android/BOINC/res/layout/status_layout.xml @@ -59,17 +59,13 @@ - - + android:layout_marginTop="10dp" + android:textAppearance="?android:attr/textAppearanceMedium"/> + + - + diff --git a/android/BOINC/src/edu/berkeley/boinc/StatusActivity.java b/android/BOINC/src/edu/berkeley/boinc/StatusActivity.java index 79f7209d78..085f8ae961 100644 --- a/android/BOINC/src/edu/berkeley/boinc/StatusActivity.java +++ b/android/BOINC/src/edu/berkeley/boinc/StatusActivity.java @@ -66,7 +66,7 @@ public class StatusActivity extends Activity implements OnClickListener{ private Integer suspendReason = -1; //slide show - private LinearLayout slideshowWrapper; + private RelativeLayout slideshowWrapper; private BroadcastReceiver mClientStatusChangeRec = new BroadcastReceiver() { @Override @@ -156,7 +156,7 @@ public class StatusActivity extends Activity implements OnClickListener{ TextView statusHeader = (TextView) findViewById(R.id.status_header); ImageView statusImage = (ImageView) findViewById(R.id.status_image); TextView statusDescriptor = (TextView) findViewById(R.id.status_long); - slideshowWrapper = (LinearLayout) findViewById(R.id.slideshow_wrapper); + slideshowWrapper = (RelativeLayout) findViewById(R.id.slideshow_wrapper); // adapt to specific computing status switch(status.computingStatus) {