diff --git a/res/layout/message_list_item.xml b/res/layout/message_list_item.xml index 9eabc8192..c9777f7bd 100644 --- a/res/layout/message_list_item.xml +++ b/res/layout/message_list_item.xml @@ -1,80 +1,98 @@ - + + + + + + + + + - android:paddingBottom="6dip" - android:paddingRight="4dip" - android:paddingLeft="8dip" - android:paddingTop="5dip"> - - - - - - - - + android:layout_toLeftOf="@+id/flagged_bottom_right" + android:layout_marginLeft="1dip" + android:layout_marginRight="3dip" + android:bufferType="spannable" + android:layout_below="@+id/subject_wrapper" + android:singleLine="false" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorPrimary" + android:longClickable="false" + android:layout_alignWithParentIfMissing="false" + android:gravity="top" + android:layout_alignParentBottom="false"/> + android:layout_alignParentBottom="false" + android:layout_alignParentLeft="false" + android:layout_toLeftOf="@+id/date"> + + - + android:layout_alignParentRight="true" + android:layout_centerVertical="true" + android:paddingTop="3dip" + android:paddingLeft="2dip" + android:paddingRight="4dip" + android:focusable="false" + android:visibility="gone" + /> - + android:visibility="visible" + android:gravity="center_vertical"/> + - - + diff --git a/src/com/fsck/k9/fragment/MessageListFragment.java b/src/com/fsck/k9/fragment/MessageListFragment.java index 54302e61f..043d6c2e9 100644 --- a/src/com/fsck/k9/fragment/MessageListFragment.java +++ b/src/com/fsck/k9/fragment/MessageListFragment.java @@ -1827,10 +1827,17 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick if (mPreviewLines == 0 && mContactsPictureLoader == null) { view.findViewById(R.id.preview).setVisibility(View.GONE); holder.preview = (TextView) view.findViewById(R.id.sender_compact); + holder.flagged = (CheckBox) view.findViewById(R.id.flagged_center_right); + view.findViewById(R.id.flagged_bottom_right).setVisibility(View.GONE); + + } else { view.findViewById(R.id.sender_compact).setVisibility(View.GONE); holder.preview = (TextView) view.findViewById(R.id.preview); + holder.flagged = (CheckBox) view.findViewById(R.id.flagged_bottom_right); + view.findViewById(R.id.flagged_center_right).setVisibility(View.GONE); + } QuickContactBadge contactBadge = @@ -1861,7 +1868,6 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick mFontSizes.setViewTextSize(holder.threadCount, mFontSizes.getMessageListSubject()); // thread count is next to subject view.findViewById(R.id.selected_checkbox_wrapper).setVisibility((mCheckboxes) ? View.VISIBLE : View.GONE); - holder.flagged = (CheckBox) view.findViewById(R.id.flagged); holder.flagged.setVisibility(mStars ? View.VISIBLE : View.GONE); holder.flagged.setOnClickListener(holder);