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

Commit 4f3536bd authored by Isaac Katzenelson's avatar Isaac Katzenelson
Browse files

Fix contact widget layout

Bug: 5071756 Widget update is cut off on phone portrait

Removed the date view from the widget
Removed assets
Fixed paddings and margins for tablet

Change-Id: I21877529720c088a9752e8185fff4f958ed83c1c
parent e2c99d07
Loading
Loading
Loading
Loading
−165 B
Loading image diff...
−163 B
Loading image diff...
−175 B
Loading image diff...
+4 −15
Original line number Diff line number Diff line
@@ -48,14 +48,14 @@
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:background="@drawable/bg_status_contact_widget"
            android:layout_marginTop="4dip"
            android:layout_marginTop="@dimen/widget_snippet_top_margin"
            android:layout_marginRight="16dip"
            android:layout_marginBottom="7dip"
            android:layout_marginBottom="@dimen/widget_snippet_bottom_margin"
            android:layout_marginLeft="0dip"
            android:paddingLeft="47dip"
            android:paddingRight="8dip"
            android:paddingTop="3dip"
            android:paddingBottom="6dip">
            android:paddingTop="@dimen/widget_snippet_top_padding"
            android:paddingBottom="@dimen/widget_snippet_bottom_padding">

            <TextView
                android:id="@+id/name_and_snippet"
@@ -75,17 +75,6 @@
                android:gravity="center"
                android:textColor="#FFFFFFFF"
                android:textSize="@dimen/widget_text_size_name" />

            <TextView
                android:id="@+id/status_date"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_alignParentBottom="true"
                android:background="@drawable/statusbox_attribute_holo"
                android:textSize="13sp"
                android:textColor="#FF444444"
                android:visibility="gone" />
        </RelativeLayout>
    </LinearLayout>
</FrameLayout>
 No newline at end of file
+6 −0
Original line number Diff line number Diff line
@@ -45,4 +45,10 @@
    <dimen name="contact_browser_list_left_margin">0dip</dimen>
    <dimen name="contact_browser_list_right_margin">0dip</dimen>
    <dimen name="list_visible_scrollbar_padding">48dip</dimen>

    <!-- Margins and padding for text in widget -->
    <dimen name="widget_snippet_top_margin">5dip</dimen>
    <dimen name="widget_snippet_bottom_margin">6dip</dimen>
    <dimen name="widget_snippet_top_padding">6dip</dimen>
    <dimen name="widget_snippet_bottom_padding">3dip</dimen>
</resources>
Loading