Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c188a09 authored by Brian Attwell's avatar Brian Attwell
Browse files

Reflect framework dimen changes in editor

dimens_material was recently updated with new values in
ag/599191. These changes need to be reflected inside the Contacts
editor in order for the editor to look good.

Bug: 18004959
Change-Id: I0c8eb0b3275d797e4a71ca0fbea846b8eea5f3db
parent 1bec54a5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
    <ImageView
        android:id="@+id/kind_icon"
        android:src="@drawable/ic_camera_alt_black_24dp"
        android:layout_marginTop="8dp"
        android:layout_marginTop="13dp"
        android:contentDescription="@string/header_photo_entry"
        style="@style/EditKindIconStyle" />

@@ -37,7 +37,7 @@
        android:layout_height="72dip"
        android:cropToPadding="true"
        android:scaleType="centerCrop"
        android:layout_marginTop="10dp"
        android:layout_marginTop="15dp"
        android:layout_marginStart="4dp"
        android:contentDescription="@string/description_contact_photo"
        android:layout_marginBottom="@dimen/editor_padding_below_photo"
@@ -59,14 +59,14 @@
            This is 2dp less than the default touch target size.
            3) This button will appear to be offset by the private
            @android:dimen/button_inset_vertical_material amount. Therefore, in order to achieve
            10dp of apparent top margin, we only need to apply 4dp. -->
            15dp of apparent top margin, we only need to apply 9dp. -->
        <Button
            android:id="@+id/change_button"
            android:layout_width="wrap_content"
            android:layout_height="46dp"
            android:textSize="@dimen/editor_form_text_size"
            android:textColor="@color/primary_text_color"
            android:layout_marginTop="4dp"
            android:layout_marginTop="9dp"
            android:paddingStart="20dp"
            android:paddingEnd="20dp"
            android:text="@string/change_photo" />
+3 −3
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@
    <!-- Top margin applied to mime-type icons inside the editor. This is needed to give the
        appearance that the icons are top aligned with the text, since visible text doesn't
        start at the very top of TextViews. -->
    <dimen name="editor_kind_icon_top_margin">9dp</dimen>
    <dimen name="editor_kind_icon_top_margin">14dp</dimen>

    <!-- RHS padding added to spinners in the editor. This separates the spinner text from the
        spinner graphic since b/18194928 causes the spinner to always be on the RHS.
@@ -70,7 +70,7 @@

    <!-- Padding below every editor view, such as LabeledEditorView. This value is chosen
        to give 32dp of apparent padding between EditText's in the Raw Contact Editor. -->
    <dimen name="editor_padding_between_editor_views">20dp</dimen>
    <dimen name="editor_padding_between_editor_views">15dp</dimen>

    <!-- Padding below every readonly editor view. This value is chosen to give 32dp of apparent padding
        between TextView's in the readonly Raw Contact Editor. -->
@@ -83,7 +83,7 @@
    <!-- Padding below the photo editor. This value is larger than
        editor_padding_between_editor_views, since ImageView's don't have space between the bottom
        of their visual bottom, like an EditText does. -->
    <dimen name="editor_padding_below_photo">22dp</dimen>
    <dimen name="editor_padding_below_photo">21dp</dimen>

    <!-- Width of the Type-Label in the Editor -->
    <dimen name="editor_type_label_width">150dip</dimen>