diff options
author | Andrew Dolgov <[email protected]> | 2013-10-16 10:32:57 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-10-16 10:32:57 +0400 |
commit | 17720f23b11667148f5ffaea395d63f9064a16b8 (patch) | |
tree | 7df985157697d6c1cc6feab60b2bed2a33baec7d /src | |
parent | 3bc88f2f85c2b86baacac933f22ed482fdfa0431 (diff) |
fix padding for manually set borders
Diffstat (limited to 'src')
-rw-r--r-- | src/org/fox/ttcomics/ComicListFragment.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/org/fox/ttcomics/ComicListFragment.java b/src/org/fox/ttcomics/ComicListFragment.java index 7ff7fcb..910895a 100644 --- a/src/org/fox/ttcomics/ComicListFragment.java +++ b/src/org/fox/ttcomics/ComicListFragment.java @@ -135,19 +135,21 @@ public class ComicListFragment extends Fragment implements OnItemClickListener { ImageView thumbnail = (ImageView) v.findViewById(R.id.thumbnail);
if (thumbnail != null) {
- View imageholder1 = v.findViewById(R.id.imageholder1);
+ View imageholder = v.findViewById(R.id.listimageholder);
if (size == SIZE_DIR) {
- if (isList && imageholder1 != null) {
- imageholder1.setBackgroundResource(R.drawable.border_folder);
+ if (isList && imageholder != null) {
+ imageholder.setBackgroundResource(R.drawable.border_folder);
+ imageholder.setPadding(2, 2, 2, 2);
} else {
thumbnail.setBackgroundResource(R.drawable.border_folder);
}
} else {
- if (isList && imageholder1 != null) {
- imageholder1.setBackgroundResource(R.drawable.border);
+ if (isList && imageholder != null) {
+ imageholder.setBackgroundResource(R.drawable.border);
+ imageholder.setPadding(2, 2, 2, 2);
} else {
thumbnail.setBackgroundResource(R.drawable.border);
}
|