summaryrefslogtreecommitdiffstats
path: root/res/layout/swipe_leavebehind.xml
diff options
context:
space:
mode:
authorMindy Pereira <mindyp@google.com>2012-04-17 15:48:01 -0700
committerMindy Pereira <mindyp@google.com>2012-04-17 16:16:26 -0700
commit07b8b1b3c93743690b05bbf79772f24d3bed5a7a (patch)
tree46551d125e517fa8412a3982cf79a5973328ef80 /res/layout/swipe_leavebehind.xml
parente8f94dc92567d8efa691860c38720d3ae753f429 (diff)
downloadandroid_packages_apps_UnifiedEmail-07b8b1b3c93743690b05bbf79772f24d3bed5a7a.tar.gz
android_packages_apps_UnifiedEmail-07b8b1b3c93743690b05bbf79772f24d3bed5a7a.tar.bz2
android_packages_apps_UnifiedEmail-07b8b1b3c93743690b05bbf79772f24d3bed5a7a.zip
Temporarily style the leave behind to look like the undo bar.
Change-Id: If1d26f9431fe6ed676114e6345f12fabd940d165
Diffstat (limited to 'res/layout/swipe_leavebehind.xml')
-rw-r--r--res/layout/swipe_leavebehind.xml28
1 files changed, 8 insertions, 20 deletions
diff --git a/res/layout/swipe_leavebehind.xml b/res/layout/swipe_leavebehind.xml
index 763c8baec..f7a8d5f83 100644
--- a/res/layout/swipe_leavebehind.xml
+++ b/res/layout/swipe_leavebehind.xml
@@ -15,30 +15,18 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
-<!-- This layout is used as a template to create custom view CanvasConversationHeaderView
- in normal mode. To be able to get the correct measurements, every source field should
- be populated with data here. E.g:
- - Text View should set text to a random long string (android:text="@string/long_string")
- - Image View should set source to a specific asset -->
<com.android.mail.ui.LeaveBehindItem
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="@dimen/conversation_item_height"
android:background="@android:color/black"
- android:layout_gravity="center_vertical"
- android:gravity="center_vertical">
- <Button android:id="@+id/undo_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:text="@string/undo"/>
- <TextView android:id="@+id/undo_description"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_alignParentLeft="true"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:layout_marginLeft="16dip"
- android:clickable="true"/>
+ android:gravity="center_vertical"
+ android:clickable="true"
+ android:layout_marginLeft="4dip"
+ android:layout_marginRight="4dip"
+ android:orientation="horizontal">
+
+ <include layout="@layout/undo_row"/>
+
</com.android.mail.ui.LeaveBehindItem> \ No newline at end of file