From 7680f94c41d22b3ef2737251b01e423f56b8cd38 Mon Sep 17 00:00:00 2001 From: Joachim Fritzsch Date: Sat, 18 May 2013 21:02:03 +0200 Subject: [PATCH] android: enlargement of Projects tab elements --- .../BOINC/res/layout/projects_layout_listitem.xml | 13 +++++++------ .../src/edu/berkeley/boinc/StatusActivity.java | 8 -------- .../edu/berkeley/boinc/adapter/GalleryAdapter.java | 4 ---- 3 files changed, 7 insertions(+), 18 deletions(-) diff --git a/android/BOINC/res/layout/projects_layout_listitem.xml b/android/BOINC/res/layout/projects_layout_listitem.xml index 1399d2cb42..90713f048b 100644 --- a/android/BOINC/res/layout/projects_layout_listitem.xml +++ b/android/BOINC/res/layout/projects_layout_listitem.xml @@ -27,10 +27,11 @@ @@ -47,13 +48,13 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" - android:textAppearance="?android:attr/textAppearanceMedium" /> + android:textAppearance="?android:attr/textAppearanceLarge" /> + 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 085f8ae961..00d52cc22b 100644 --- a/android/BOINC/src/edu/berkeley/boinc/StatusActivity.java +++ b/android/BOINC/src/edu/berkeley/boinc/StatusActivity.java @@ -32,18 +32,12 @@ import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.ServiceConnection; -import android.graphics.Bitmap; import android.os.AsyncTask; import android.os.Bundle; import android.os.IBinder; import android.util.Log; -import android.view.GestureDetector; -import android.view.GestureDetector.SimpleOnGestureListener; -import android.view.MotionEvent; import android.view.View; import android.view.View.OnClickListener; -import android.view.View.OnTouchListener; -import android.view.ViewGroup.LayoutParams; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.Gallery; @@ -51,8 +45,6 @@ import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; -import android.widget.Toast; -import android.widget.ViewFlipper; public class StatusActivity extends Activity implements OnClickListener{ diff --git a/android/BOINC/src/edu/berkeley/boinc/adapter/GalleryAdapter.java b/android/BOINC/src/edu/berkeley/boinc/adapter/GalleryAdapter.java index 57060ff648..5cc23ef05a 100644 --- a/android/BOINC/src/edu/berkeley/boinc/adapter/GalleryAdapter.java +++ b/android/BOINC/src/edu/berkeley/boinc/adapter/GalleryAdapter.java @@ -23,7 +23,6 @@ import java.util.ArrayList; import edu.berkeley.boinc.client.ClientStatus.ImageWrapper; import android.content.Context; -import android.graphics.Bitmap; import android.view.View; import android.view.ViewGroup; import android.view.ViewGroup.LayoutParams; @@ -60,11 +59,8 @@ public class GalleryAdapter extends BaseAdapter{ LayoutParams params = new Gallery.LayoutParams(290, 126); imageView.setLayoutParams(params); - imageView.setScaleType(ImageView.ScaleType.FIT_XY); imageView.setImageBitmap(images.get(position).image); return imageView; } - - }