android: enlargement of Projects tab elements

This commit is contained in:
Joachim Fritzsch 2013-05-18 21:02:03 +02:00
parent ac4ee5767b
commit 7680f94c41
3 changed files with 7 additions and 18 deletions

View File

@ -27,10 +27,11 @@
<ImageView
android:id="@+id/projectIcon"
android:layout_width="40dp"
android:layout_height="40dp"
android:minWidth="45dp"
android:minHeight="45dp"
android:layout_width="80dp"
android:layout_height="80dp"
android:minWidth="85dp"
android:minHeight="85dp"
android:scaleType="fitCenter"
android:contentDescription="@string/projects_icon"
android:layout_margin="5dp"
android:layout_gravity="center_vertical" />
@ -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" />
<TextView
android:id="@+id/project_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" />
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>

View File

@ -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{

View File

@ -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;
}
}