Merge branch 'master' of ssh://isaac.ssl.berkeley.edu/boinc-v2

This commit is contained in:
David Anderson 2014-01-05 20:00:28 +00:00
commit 2e602eb04b
3 changed files with 10 additions and 8 deletions

View File

@ -20,12 +20,12 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
android:orientation="vertical"
android:padding="1dp" >
<CheckBox android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/checkbox"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/black"
android:background="@android:color/transparent"/>
android:textColor="@color/black"/>
</LinearLayout>

View File

@ -93,8 +93,7 @@
android:orientation="horizontal"
android:paddingTop="20dp"
android:paddingBottom="20dp"
android:background="@drawable/shape_light_blue_background"
android:visibility="gone" >
android:background="@drawable/shape_light_blue_background" >
<ProgressBar
android:id="@+id/loading_progressBar"
@ -108,7 +107,7 @@
android:id="@+id/loading_header"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/generic_loading"
android:text="@string/status_launching"
android:textAppearance="?android:attr/textAppearanceMedium"
android:maxWidth="100dp"
android:background="@android:color/transparent" />

View File

@ -71,12 +71,15 @@ public class PrefsSelectionDialogListAdapter extends ArrayAdapter<SelectionDialo
if(v == null) {
LayoutInflater li = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = li.inflate(R.layout.dialog_list_cbitem, null);
if(getItem(position).highlighted) v.setBackgroundDrawable(activity.getResources().getDrawable(R.drawable.shape_light_red_background));
CheckBox cb = (CheckBox) v.findViewById(R.id.checkbox);
cb.setChecked(listItem.selected);
cb.setText(listItem.name);
cb.setOnClickListener(this);
cb.setTag(position);
cb.setText(listItem.name);
if(getItem(position).highlighted) {
v.setBackgroundDrawable(activity.getResources().getDrawable(R.drawable.shape_light_red_background));
cb.setBackgroundColor(activity.getResources().getColor(R.color.light_red));
}
}
return v;
}