diff options
author | Yorke Lee <yorkelee@google.com> | 2014-04-18 17:14:58 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-04-21 16:40:14 -0700 |
commit | 4cde566de5f54b6bdd305229c3134068cdde4bbd (patch) | |
tree | 2e7fee8434341791b109d43ab2155ffcd4c5d101 /res | |
parent | 4b10dd4a659bec13d5415fcaf24d2b60453f4d7a (diff) |
Move call shortcut cards to their own list
This CL migrates the logic that queries for and displays call
shortcut cards to ListsFragment so that they can be displayed
above the main contacts viewpager.
* Add a ListView above the ViewPager in ListsFragment
* Implement CallLogQueryHandler.Listener and CallLogAdapter.CallFetcher
in ListsFragment, and delete that corresponding logic in
PhoneFavoritesFragment.
* Use animateLayoutChanges on the parent LinearLayout hosting shortcard
cards so that we don't have to handle animations ourselves when a card
is swiped away.
* Make the minimum set of changes to PhoneFavoritesMergedAdapter so that
only call shortcut cards are displayed (no more menu, teaser, etc).
More significant changes to actually delete unnecessary logic is upcoming
in a separate CL.
Bug: 13963734
Change-Id: I55cdc53a9311b1bb78422aab9d174e860596b997
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/call_log_list_item.xml | 2 | ||||
-rw-r--r-- | res/layout/lists_fragment.xml | 9 | ||||
-rw-r--r-- | res/layout/phone_favorites_fragment.xml | 1 |
3 files changed, 11 insertions, 1 deletions
diff --git a/res/layout/call_log_list_item.xml b/res/layout/call_log_list_item.xml index a33ec7d7c..953efc403 100644 --- a/res/layout/call_log_list_item.xml +++ b/res/layout/call_log_list_item.xml @@ -38,6 +38,7 @@ <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" + android:baselineAligned="false" android:orientation="horizontal" android:gravity="center_vertical" > @@ -48,7 +49,6 @@ android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" - android:layout_centerVertical="true" android:padding="@dimen/call_log_outer_margin" android:orientation="horizontal" android:gravity="center_vertical" diff --git a/res/layout/lists_fragment.xml b/res/layout/lists_fragment.xml index 740dc2af6..6ed0f856e 100644 --- a/res/layout/lists_fragment.xml +++ b/res/layout/lists_fragment.xml @@ -19,7 +19,16 @@ android:layout_height="match_parent" android:paddingTop="?android:attr/actionBarSize" android:orientation="vertical" + android:animateLayoutChanges="true" android:id="@+id/lists_frame"> + <ListView + android:id="@+id/shortcut_card_list" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@color/actionbar_background_color" + android:clipToPadding="false" + android:fadingEdge="none" + android:divider="@null" /> <com.android.dialer.list.ViewPagerTabs android:id="@+id/lists_pager_header" android:layout_width="match_parent" diff --git a/res/layout/phone_favorites_fragment.xml b/res/layout/phone_favorites_fragment.xml index 5e9e3bbb2..89a9f73bc 100644 --- a/res/layout/phone_favorites_fragment.xml +++ b/res/layout/phone_favorites_fragment.xml @@ -35,6 +35,7 @@ android:id="@+id/contact_tile_list" android:layout_width="match_parent" android:layout_height="match_parent" + android:paddingTop="@dimen/favorites_row_top_padding" android:numColumns="@integer/contact_tile_column_count_in_favorites" android:clipToPadding="false" android:fadingEdge="none" |