Show when an email is selected

This commit is contained in:
str4d
2014-05-16 13:51:31 +00:00
parent 0e8dd0b607
commit 3e4aa63d45
6 changed files with 13 additions and 2 deletions

2
TODO
View File

@@ -1,5 +1,3 @@
- Email selection
-- Show which have been selected (background? image?)
- Deleting identities - Deleting identities
-- Select identities in list, or menu option of each? -- Select identities in list, or menu option of each?
- Addressbook - Addressbook

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -10,6 +10,15 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/ic_contact_picture" /> android:src="@drawable/ic_contact_picture" />
<ImageView
android:id="@+id/email_selected"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/contact_picture"
android:layout_alignLeft="@+id/contact_picture"
android:visibility="gone"
android:src="@drawable/ic_navigation_accept" />
<TextView <TextView
android:id="@+id/email_subject" android:id="@+id/email_subject"
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -63,6 +63,10 @@ public class EmailListAdapter extends ArrayAdapter<Email> {
} }
}); });
if (mSelectedEmails.get(position)) {
((ImageView) v.findViewById(R.id.email_selected)).setVisibility(View.VISIBLE);
}
try { try {
String fromAddress = email.getOneFromAddress(); String fromAddress = email.getOneFromAddress();