diff options
author | Yorke Lee <yorkelee@google.com> | 2015-02-06 14:50:35 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-02-17 13:48:55 -0800 |
commit | 2b94c39bb8e54ae2bd78e582e8161f783c9dc516 (patch) | |
tree | 5286346f4956ee4e1805825e39a3a66e29038dd2 /res/layout | |
parent | d9d409a86330c5fde0cc465562c6d3eb96ec10eb (diff) |
Remove shortcut cards list view
Remove ListView containing shortcut cards and replace it with a single
ShortcutCard card.
Rename ShortcutCardAdapter to ShortcutCardManager with slight refactor.
Some corresponding logic changes inside ListsFragment.
Reduces the number of getView calls at startup from 4 to 1.
Change-Id: I11787bdb1d04cc19634c21bfd398b7533c75d339
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/lists_fragment.xml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/res/layout/lists_fragment.xml b/res/layout/lists_fragment.xml index face20e26..a11c89fef 100644 --- a/res/layout/lists_fragment.xml +++ b/res/layout/lists_fragment.xml @@ -21,15 +21,12 @@ android:layout_height="match_parent" android:animateLayoutChanges="true" > - <ListView - android:id="@+id/shortcut_card_list" + <com.android.dialer.list.SwipeableShortcutCard + android:id="@+id/shortcut_card" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="@dimen/action_bar_height_large" - android:background="@color/actionbar_background_color" - android:clipToPadding="false" - android:fadingEdge="none" - android:divider="@null" /> + android:background="@color/actionbar_background_color" /> <FrameLayout android:layout_width="match_parent" |