Bug 1148197 - Move share overlay margins to child to properly align. r=liuche

When it's on the parent of the outermost container with
layout_width="match_parent", the margin adds to the parent's size
(i.e. the screen width). Adding the margin to the child ensures the width is
reduced and content centered.
This commit is contained in:
Michael Comella 2015-03-26 17:42:47 -07:00
parent 9c465ac034
commit 6f584fe969

View File

@ -9,8 +9,6 @@
android:id="@+id/sharedialog"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:clipChildren="false"
android:clipToPadding="false">
@ -18,6 +16,8 @@
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:paddingTop="8dp"
android:orientation="vertical">