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

Commit 1fa0de90 authored by Katherine Kuan's avatar Katherine Kuan
Browse files

Scroll content to edges of screen on tablet

- This affects the contact card (only in landscape)
and favorites grid (landscape and portrait).
Contact card portrait view is tricky because
the tab carousel doesn't deal well with
padding / margin values and will get offset
incorrectly.

- Adjust padding values on tablet landscape
contact card

- Modify spacing and width of favorites/frequent
fragments on tablet portrait so it looks more
similar to the "group" and "all" tabs

Bug: 5506809
Bug: 5239701
Change-Id: I2538fe4e048e722d9b5b423a50cc696cb86730a5
parent 3e3e5051
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -22,7 +22,8 @@
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/background_primary"
    android:padding="16dip">
    android:paddingLeft="16dip"
    android:paddingRight="16dip">

    <!-- Placeholder for empty list -->
    <include
@@ -41,11 +42,14 @@
            android:scaleType="centerCrop"
            android:layout_width="@dimen/detail_contact_photo_size"
            android:layout_height="@dimen/detail_contact_photo_size"
            android:layout_marginTop="@dimen/detail_contact_photo_margin"
            android:layout_marginRight="@dimen/detail_contact_photo_margin"/>

        <ListView android:id="@android:id/list"
            android:layout_width="0dip"
            android:layout_height="match_parent"
            android:paddingTop="16dip"
            android:clipToPadding="false"
            android:fadingEdge="none"
            android:layout_weight="1"
            android:divider="@null"/>
+0 −1
Original line number Diff line number Diff line
@@ -129,7 +129,6 @@
                        class="com.android.contacts.list.ContactTileListFragment"
                        android:layout_height="match_parent"
                        android:layout_width="match_parent"
                        android:layout_marginTop="32dip"
                        android:layout_marginRight="32dip"
                        android:layout_marginLeft="32dip"/>

+5 −6
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@
                <FrameLayout
                    android:layout_width="0dip"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:layout_weight="10"
                    android:background="@drawable/panel_favorites_holo_light">

                    <fragment
@@ -125,9 +125,8 @@
                        class="com.android.contacts.list.ContactTileListFragment"
                        android:layout_height="match_parent"
                        android:layout_width="match_parent"
                        android:layout_marginTop="32dip"
                        android:layout_marginRight="32dip"
                        android:layout_marginLeft="32dip"/>
                        android:layout_marginRight="16dip"
                        android:layout_marginLeft="16dip"/>

                </FrameLayout>

@@ -137,8 +136,8 @@
                    class="com.android.contacts.list.ContactTileListFragment"
                    android:layout_width="0dip"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:layout_marginTop="32dip"
                    android:layout_weight="8"
                    android:layout_marginTop="16dip"
                    android:layout_marginRight="16dip"/>

            </LinearLayout>
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,8 @@
        android:id="@+id/contact_tile_list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingTop="@dimen/contact_tile_list_padding_top"
        android:clipToPadding="false"
        android:fadingEdge="none"
        android:divider="@null" />

+1 −0
Original line number Diff line number Diff line
@@ -18,4 +18,5 @@
    <dimen name="group_detail_side_margin">32dip</dimen>
    <dimen name="detail_contact_photo_margin">16dip</dimen>
    <dimen name="contact_detail_list_top_padding">32dip</dimen>
    <dimen name="contact_tile_list_padding_top">32dip</dimen>
</resources>
Loading