diff options
author | 2016-10-21 21:19:02 +0000 | |
---|---|---|
committer | 2016-10-21 21:19:02 +0000 | |
commit | c457816e8b3da7623d1fbd1a807a63a700ffffca (patch) | |
tree | 5be1421044739a876cd8f308b86fe2863fad93ab | |
parent | 0dd9902595d36525fc0b1f8a595cbb2f7c883d93 (diff) | |
parent | 35f5700178218a5748d697904ea047b2fabc544e (diff) |
Fix improperly laid out alert dialog title to match UX specs. am: 9c86e68bfa
am: 35f5700178
Change-Id: I53d1f23f72c617f6a6a63436b8afbf9f6958b3e2
-rw-r--r-- | core/res/res/layout-round-watch/alert_dialog_title_material.xml | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/core/res/res/layout-round-watch/alert_dialog_title_material.xml b/core/res/res/layout-round-watch/alert_dialog_title_material.xml index e543c9b69390..aefe28f7f359 100644 --- a/core/res/res/layout-round-watch/alert_dialog_title_material.xml +++ b/core/res/res/layout-round-watch/alert_dialog_title_material.xml @@ -14,25 +14,31 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License --> -<FrameLayout +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" - android:gravity="top|center_horizontal" - android:minHeight="@dimen/alert_dialog_title_height"> - <ImageView android:id="@+id/icon" + android:orientation="vertical" + android:gravity="top|center_horizontal"> + <FrameLayout android:adjustViewBounds="true" - android:maxHeight="24dp" - android:maxWidth="24dp" - android:layout_marginTop="12dp" - android:layout_gravity="center_horizontal" - android:layout_width="wrap_content" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:src="@null" /> + android:minHeight="@dimen/screen_percentage_15"> + <ImageView android:id="@+id/icon" + android:adjustViewBounds="true" + android:maxHeight="24dp" + android:maxWidth="24dp" + android:layout_marginTop="@dimen/screen_percentage_10" + android:layout_marginBottom="8dp" + android:layout_gravity="center_horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@null" /> + </FrameLayout> <TextView android:id="@+id/alertTitle" style="?android:attr/windowTitleStyle" - android:layout_marginTop="36dp" android:layout_marginBottom="8dp" android:layout_width="match_parent" android:layout_height="wrap_content" /> -</FrameLayout> +</LinearLayout> |