diff --git a/res/layout-sw600dp/message_view_invitation.xml b/res/layout-sw600dp-land/message_view_invitation.xml
similarity index 100%
rename from res/layout-sw600dp/message_view_invitation.xml
rename to res/layout-sw600dp-land/message_view_invitation.xml
diff --git a/res/layout-sw600dp-port/message_view_invitation.xml b/res/layout-sw600dp-port/message_view_invitation.xml
new file mode 100644
index 000000000..eaf8d6374
--- /dev/null
+++ b/res/layout-sw600dp-port/message_view_invitation.xml
@@ -0,0 +1,139 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/res/layout-sw800dp-port b/res/layout-sw800dp-port
new file mode 100644
index 000000000..f80593f2c
--- /dev/null
+++ b/res/layout-sw800dp-port
@@ -0,0 +1,139 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/res/layout/message_view_fragment.xml b/res/layout/message_view_fragment.xml
index 38014fcc0..a2f9b7515 100644
--- a/res/layout/message_view_fragment.xml
+++ b/res/layout/message_view_fragment.xml
@@ -160,6 +160,9 @@
android:background="@android:color/white"
android:visibility="gone"
/>
+
+
diff --git a/res/layout/message_view_invitation.xml b/res/layout/message_view_invitation.xml
index b2df131cc..6df4ff952 100644
--- a/res/layout/message_view_invitation.xml
+++ b/res/layout/message_view_invitation.xml
@@ -28,7 +28,6 @@
@@ -52,86 +50,82 @@
android:singleLine="true"
android:ellipsize="end"
android:text="@string/message_view_invite_view"
- android:layout_marginRight="6dip"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:layout_marginRight="3dip"
android:layout_alignParentRight="true"
- android:gravity="center_vertical"
- android:layout_gravity="center_vertical"
+ android:layout_centerVertical="true"
/>
+
+
+
-
-
-
-
-
-
diff --git a/src/com/android/email/activity/MessageViewFragment.java b/src/com/android/email/activity/MessageViewFragment.java
index daf178c31..88f1f22cb 100644
--- a/src/com/android/email/activity/MessageViewFragment.java
+++ b/src/com/android/email/activity/MessageViewFragment.java
@@ -27,8 +27,6 @@ import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
-import android.widget.CheckBox;
-import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.PopupMenu;
import android.widget.PopupMenu.OnMenuItemClickListener;
@@ -48,9 +46,7 @@ import com.android.emailcommon.utility.Utility;
* files").
*/
public class MessageViewFragment extends MessageViewFragmentBase
- implements CheckBox.OnCheckedChangeListener,
- MoveMessageToDialog.Callback,
- OnMenuItemClickListener {
+ implements MoveMessageToDialog.Callback, OnMenuItemClickListener {
/** Argument name(s) */
private static final String ARG_MESSAGE_ID = "messageId";
@@ -67,9 +63,9 @@ public class MessageViewFragment extends MessageViewFragmentBase
private View mMoreButton;
// calendar meeting invite answers
- private CheckBox mMeetingYes;
- private CheckBox mMeetingMaybe;
- private CheckBox mMeetingNo;
+ private View mMeetingYes;
+ private View mMeetingMaybe;
+ private View mMeetingNo;
private Drawable mFavoriteIconOn;
private Drawable mFavoriteIconOff;
@@ -194,9 +190,9 @@ public class MessageViewFragment extends MessageViewFragmentBase
mReplyButton = UiUtilities.getView(view, R.id.reply);
mReplyAllButton = UiUtilities.getViewOrNull(view, R.id.reply_all);
mForwardButton = UiUtilities.getViewOrNull(view, R.id.forward);
- mMeetingYes = (CheckBox) UiUtilities.getView(view, R.id.accept);
- mMeetingMaybe = (CheckBox) UiUtilities.getView(view, R.id.maybe);
- mMeetingNo = (CheckBox) UiUtilities.getView(view, R.id.decline);
+ mMeetingYes = UiUtilities.getView(view, R.id.accept);
+ mMeetingMaybe = UiUtilities.getView(view, R.id.maybe);
+ mMeetingNo = UiUtilities.getView(view, R.id.decline);
mFavoriteIcon.setOnClickListener(this);
mReplyButton.setOnClickListener(this);
@@ -207,9 +203,9 @@ public class MessageViewFragment extends MessageViewFragmentBase
mMoreButton = UiUtilities.getView(view, R.id.more);
mMoreButton.setOnClickListener(this);
}
- mMeetingYes.setOnCheckedChangeListener(this);
- mMeetingMaybe.setOnCheckedChangeListener(this);
- mMeetingNo.setOnCheckedChangeListener(this);
+ mMeetingYes.setOnClickListener(this);
+ mMeetingMaybe.setOnClickListener(this);
+ mMeetingNo.setOnClickListener(this);
UiUtilities.getView(view, R.id.invite_link).setOnClickListener(this);
enableReplyForwardButtons(false);
@@ -247,9 +243,6 @@ public class MessageViewFragment extends MessageViewFragmentBase
@Override
protected void resetView() {
super.resetView();
- mMeetingYes.setChecked(false);
- mMeetingNo.setChecked(false);
- mMeetingMaybe.setChecked(false);
mPreviousMeetingResponse = EmailServiceConstants.MEETING_REQUEST_NOT_RESPONDED;
}
@@ -379,6 +372,18 @@ public class MessageViewFragment extends MessageViewFragmentBase
onInviteLinkClicked();
return;
+ case R.id.accept:
+ onRespondToInvite(EmailServiceConstants.MEETING_REQUEST_ACCEPTED,
+ R.string.message_view_invite_toast_yes);
+ return;
+ case R.id.maybe:
+ onRespondToInvite(EmailServiceConstants.MEETING_REQUEST_TENTATIVE,
+ R.string.message_view_invite_toast_maybe);
+ return;
+ case R.id.decline:
+ onRespondToInvite(EmailServiceConstants.MEETING_REQUEST_DECLINED,
+ R.string.message_view_invite_toast_no);
+
case R.id.more: {
PopupMenu popup = new PopupMenu(getActivity(), mMoreButton);
popup.getMenuInflater().inflate(R.menu.message_header_overflow_menu,
@@ -408,25 +413,6 @@ public class MessageViewFragment extends MessageViewFragmentBase
}
- @Override
- public void onCheckedChanged(CompoundButton view, boolean isChecked) {
- if (!isChecked) return;
- switch (view.getId()) {
- case R.id.accept:
- onRespondToInvite(EmailServiceConstants.MEETING_REQUEST_ACCEPTED,
- R.string.message_view_invite_toast_yes);
- return;
- case R.id.maybe:
- onRespondToInvite(EmailServiceConstants.MEETING_REQUEST_TENTATIVE,
- R.string.message_view_invite_toast_maybe);
- return;
- case R.id.decline:
- onRespondToInvite(EmailServiceConstants.MEETING_REQUEST_DECLINED,
- R.string.message_view_invite_toast_no);
- return;
- }
- }
-
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {