projects
/
pub
/
Android
/
ownCloud.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a3ccc6a
)
use custom checkbox images (material design) while toggling
author
Andy Scherzinger
<info@andy-scherzinger.de>
Fri, 7 Aug 2015 16:20:51 +0000
(18:20 +0200)
committer
Andy Scherzinger
<info@andy-scherzinger.de>
Fri, 7 Aug 2015 16:20:51 +0000
(18:20 +0200)
src/com/owncloud/android/ui/adapter/FileListListAdapter.java
patch
|
blob
|
blame
|
history
src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java
patch
|
blob
|
blame
|
history
src/com/owncloud/android/ui/fragment/LocalFileListFragment.java
patch
|
blob
|
blame
|
history
diff --git
a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java
b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java
index
33fa57f
..
baa2932
100644
(file)
--- a/
src/com/owncloud/android/ui/adapter/FileListListAdapter.java
+++ b/
src/com/owncloud/android/ui/adapter/FileListListAdapter.java
@@
-211,10
+211,10
@@
public class FileListListAdapter extends BaseAdapter implements ListAdapter {
} else {
\r
if (parentList.isItemChecked(position)) {
\r
checkBoxV.setImageResource(
\r
} else {
\r
if (parentList.isItemChecked(position)) {
\r
checkBoxV.setImageResource(
\r
-
android.R.drawable.checkbox_on_backgroun
d);
\r
+
R.drawable.ic_checkbox_marke
d);
\r
} else {
\r
checkBoxV.setImageResource(
\r
} else {
\r
checkBoxV.setImageResource(
\r
-
android.R.drawable.checkbox_off_background
);
\r
+
R.drawable.ic_checkbox_blank_outline
);
\r
}
\r
checkBoxV.setVisibility(View.VISIBLE);
\r
}
\r
}
\r
checkBoxV.setVisibility(View.VISIBLE);
\r
}
\r
diff --git
a/src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java
b/src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java
index
287c5b9
..
06745f8
100644
(file)
--- a/
src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java
+++ b/
src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java
@@
-124,9
+124,9
@@
public class LocalFileListAdapter extends BaseAdapter implements ListAdapter {
checkBoxV.setVisibility(View.GONE);
} else {
if (parentList.isItemChecked(position)) {
checkBoxV.setVisibility(View.GONE);
} else {
if (parentList.isItemChecked(position)) {
- checkBoxV.setImageResource(
android.R.drawable.checkbox_on_backgroun
d);
+ checkBoxV.setImageResource(
R.drawable.ic_checkbox_marke
d);
} else {
} else {
- checkBoxV.setImageResource(
android.R.drawable.checkbox_off_background
);
+ checkBoxV.setImageResource(
R.drawable.ic_checkbox_blank_outline
);
}
checkBoxV.setVisibility(View.VISIBLE);
}
}
checkBoxV.setVisibility(View.VISIBLE);
}
diff --git
a/src/com/owncloud/android/ui/fragment/LocalFileListFragment.java
b/src/com/owncloud/android/ui/fragment/LocalFileListFragment.java
index
8a268b7
..
df5b34a
100644
(file)
--- a/
src/com/owncloud/android/ui/fragment/LocalFileListFragment.java
+++ b/
src/com/owncloud/android/ui/fragment/LocalFileListFragment.java
@@
-120,9
+120,9
@@
public class LocalFileListFragment extends ExtendedListFragment {
ImageView checkBoxV = (ImageView) v.findViewById(R.id.custom_checkbox);
if (checkBoxV != null) {
if (((ListView)getListView()).isItemChecked(position)) {
ImageView checkBoxV = (ImageView) v.findViewById(R.id.custom_checkbox);
if (checkBoxV != null) {
if (((ListView)getListView()).isItemChecked(position)) {
- checkBoxV.setImageResource(
android.R.drawable.checkbox_on_backgroun
d);
+ checkBoxV.setImageResource(
R.drawable.ic_checkbox_marke
d);
} else {
} else {
- checkBoxV.setImageResource(
android.R.drawable.checkbox_off_background
);
+ checkBoxV.setImageResource(
R.drawable.ic_checkbox_blank_outline
);
}
}
// notify the change to the container Activity
}
}
// notify the change to the container Activity