1
0
mirror of https://github.com/etesync/android synced 2025-01-23 14:10:54 +00:00

Fiddling around with UI again and again and again … hoping for console-only mobile phones one day (fixes #386)

This commit is contained in:
rfc2822 2014-12-07 12:58:50 +01:00
parent 5b21cb4938
commit 760632302d

View File

@ -103,12 +103,14 @@ public class SelectCollectionsAdapter extends BaseAdapter implements ListAdapter
break; break;
case TYPE_ADDRESS_BOOKS_ROW: case TYPE_ADDRESS_BOOKS_ROW:
v = inflater.inflate(android.R.layout.simple_list_item_single_choice, null); v = inflater.inflate(android.R.layout.simple_list_item_single_choice, null);
v.setPadding(0, 8, 0, 8);
break; break;
case TYPE_CALENDARS_HEADING: case TYPE_CALENDARS_HEADING:
v = inflater.inflate(R.layout.calendars_heading, parent, false); v = inflater.inflate(R.layout.calendars_heading, parent, false);
break; break;
case TYPE_CALENDARS_ROW: case TYPE_CALENDARS_ROW:
v = inflater.inflate(android.R.layout.simple_list_item_multiple_choice, null); v = inflater.inflate(android.R.layout.simple_list_item_multiple_choice, null);
v.setPadding(0, 8, 0, 8);
} }
} }
@ -126,7 +128,6 @@ public class SelectCollectionsAdapter extends BaseAdapter implements ListAdapter
protected void setContent(CheckedTextView view, int collectionIcon, ServerInfo.ResourceInfo info) { protected void setContent(CheckedTextView view, int collectionIcon, ServerInfo.ResourceInfo info) {
// set layout and icons // set layout and icons
view.setPadding(view.getPaddingLeft(), 8, view.getPaddingRight(), 8);
view.setCompoundDrawablesWithIntrinsicBounds(collectionIcon, 0, info.isReadOnly() ? R.drawable.ic_read_only : 0, 0); view.setCompoundDrawablesWithIntrinsicBounds(collectionIcon, 0, info.isReadOnly() ? R.drawable.ic_read_only : 0, 0);
view.setCompoundDrawablePadding(10); view.setCompoundDrawablePadding(10);