2010-07-21 21:29:49 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright (C) 2010 The Android Open Source Project
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2010-09-01 23:41:44 +00:00
|
|
|
android:splitMotionEvents="true"
|
2010-07-21 21:29:49 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/left_pane"
|
2010-09-21 22:36:23 +00:00
|
|
|
android:layout_width="300dip"
|
2010-07-21 21:29:49 +00:00
|
|
|
android:layout_height="match_parent"
|
2010-09-21 22:36:23 +00:00
|
|
|
android:layout_weight="0"
|
|
|
|
/>
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/middle_pane"
|
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
2010-07-21 21:29:49 +00:00
|
|
|
/>
|
Let MessageViewFragment own bottom buttons.
Create a custom view containing the bottons below MVF
(delete, move, reply, etc) and let MVF own this.
These buttons used to be owned by the XL activity itself, because
the UI for these commands will most likely be totally different
from the tablet UI, so the fragment having them looked wrong.
However, this made it harder to make changes suggested by the latest
mock, such as "put reply/forward in the message header".
I think the buttons are semantically part of the message view anyway,
so the fragment owning UI for these commands is probably the way to go.
(And let's worry about the phone UI later.)
Reason for the use of a custom view is that it will make it easier
to make non-trivial UI changes, e.g. "combine reply, reply-all and
forward and make it dropdown."
Also removed obsolete TODOs from MessageListXL.
Change-Id: Ibf93f4c70fe07bdbbe33d2adb6bbd2b96812830d
2010-09-16 18:16:46 +00:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/right_pane"
|
2010-07-21 21:29:49 +00:00
|
|
|
android:layout_width="0dip"
|
|
|
|
android:layout_height="match_parent"
|
2010-09-21 22:36:23 +00:00
|
|
|
android:layout_weight="2"
|
|
|
|
/>
|
2010-07-21 21:29:49 +00:00
|
|
|
</LinearLayout>
|