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

Commit 2871d615 authored by Maurice Chu's avatar Maurice Chu
Browse files

Made Favorites view in portrait orientation in 7" look like phone

Added two new configuration parameters in resources:
- (integer) contact_tile_column_count_in_favorites - which specifies the
  number of columns for the image thumbnails in the favorites tab
- (bool) config_use_two_panes_in_favorites - indicates whether favorites
  should be shown in two-pane mode

Bug: 6379260
Change-Id: I41100b2aee507e0b9a2a37e9149b944a4831a3e9
parent 311882ab
Loading
Loading
Loading
Loading
+10 −31
Original line number Diff line number Diff line
@@ -100,20 +100,11 @@
                android:visibility="gone" />
        </view>

        <!-- Two-panel view under the Favorites tab -->
        <LinearLayout
        <!-- Single panel view under the Favorites tab (Strequent) -->
        <FrameLayout
            android:id="@+id/favorites_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@drawable/list_background_holo"
            android:baselineAligned="false">

            <!-- Starred -->
            <FrameLayout
                android:layout_width="0dip"
                android:layout_height="match_parent"
                android:layout_weight="10"
                android:background="@drawable/panel_favorites_holo_light">
            android:layout_height="match_parent">

            <fragment
                android:id="@+id/favorites_fragment"
@@ -125,18 +116,6 @@

        </FrameLayout>

            <!-- Most Frequent -->
            <fragment
                android:id="@+id/frequent_fragment"
                class="com.android.contacts.list.ContactTileFrequentFragment"
                android:layout_width="0dip"
                android:layout_height="match_parent"
                android:layout_weight="8"
                android:layout_marginTop="16dip"
                android:layout_marginRight="16dip"/>

        </LinearLayout>

    </LinearLayout>

    <com.android.contacts.widget.InterpolatingLayout
+1 −0
Original line number Diff line number Diff line
@@ -19,4 +19,5 @@

<resources>
    <bool name="config_browse_list_show_images">true</bool>
    <bool name="config_use_two_panes_in_favorites">true</bool>
</resources>
+1 −0
Original line number Diff line number Diff line
@@ -15,5 +15,6 @@
-->
<resources>
    <integer name="contact_tile_column_count">3</integer>
    <integer name="contact_tile_column_count_in_favorites">3</integer>
    <integer name="updates_tab_snippet_max_lines">7</integer>
</resources>
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@

<resources>
    <bool name="config_use_two_panes">true</bool>
    <bool name="config_use_two_panes_in_favorites">false</bool>
    <bool name="show_home_icon">true</bool>
    <bool name="config_show_group_action_in_action_bar">false</bool>
    <bool name="config_browse_list_show_images">false</bool>
+1 −0
Original line number Diff line number Diff line
@@ -15,5 +15,6 @@
-->
<resources>
    <integer name="contact_tile_column_count">2</integer>
    <integer name="contact_tile_column_count_in_favorites">3</integer>
    <integer name="updates_tab_snippet_max_lines">4</integer>
</resources>
Loading