diff options
author | Andrew Lee <anwlee@google.com> | 2015-03-11 18:13:58 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-11 18:13:59 +0000 |
commit | 13221cc931efce402bf6277f82a85f3f3395a4ef (patch) | |
tree | e8ce563da85cd75b16e76d1b2b9eab3ff783a775 | |
parent | 50b38ca44bd1f36990e5d512b8ff7a7e2f68cb1d (diff) | |
parent | 59b1088845d9c0f289e89cf49701263c9f12b50c (diff) |
Merge "Replace tabs-text with icons."
16 files changed, 7 insertions, 0 deletions
diff --git a/res/drawable-hdpi/ic_grade_24dp.png b/res/drawable-hdpi/ic_grade_24dp.png Binary files differnew file mode 100644 index 000000000..86eecdd4a --- /dev/null +++ b/res/drawable-hdpi/ic_grade_24dp.png diff --git a/res/drawable-hdpi/ic_people_24dp.png b/res/drawable-hdpi/ic_people_24dp.png Binary files differnew file mode 100644 index 000000000..ff698afc0 --- /dev/null +++ b/res/drawable-hdpi/ic_people_24dp.png diff --git a/res/drawable-hdpi/ic_schedule_24dp.png b/res/drawable-hdpi/ic_schedule_24dp.png Binary files differnew file mode 100644 index 000000000..f3581d104 --- /dev/null +++ b/res/drawable-hdpi/ic_schedule_24dp.png diff --git a/res/drawable-mdpi/ic_grade_24dp.png b/res/drawable-mdpi/ic_grade_24dp.png Binary files differnew file mode 100644 index 000000000..d2cbe4c92 --- /dev/null +++ b/res/drawable-mdpi/ic_grade_24dp.png diff --git a/res/drawable-mdpi/ic_people_24dp.png b/res/drawable-mdpi/ic_people_24dp.png Binary files differnew file mode 100644 index 000000000..270e4de2e --- /dev/null +++ b/res/drawable-mdpi/ic_people_24dp.png diff --git a/res/drawable-mdpi/ic_schedule_24dp.png b/res/drawable-mdpi/ic_schedule_24dp.png Binary files differnew file mode 100644 index 000000000..501ee842e --- /dev/null +++ b/res/drawable-mdpi/ic_schedule_24dp.png diff --git a/res/drawable-xhdpi/ic_grade_24dp.png b/res/drawable-xhdpi/ic_grade_24dp.png Binary files differnew file mode 100644 index 000000000..d65f39d7c --- /dev/null +++ b/res/drawable-xhdpi/ic_grade_24dp.png diff --git a/res/drawable-xhdpi/ic_people_24dp.png b/res/drawable-xhdpi/ic_people_24dp.png Binary files differnew file mode 100644 index 000000000..323981ccf --- /dev/null +++ b/res/drawable-xhdpi/ic_people_24dp.png diff --git a/res/drawable-xhdpi/ic_schedule_24dp.png b/res/drawable-xhdpi/ic_schedule_24dp.png Binary files differnew file mode 100644 index 000000000..2e27936a4 --- /dev/null +++ b/res/drawable-xhdpi/ic_schedule_24dp.png diff --git a/res/drawable-xxhdpi/ic_grade_24dp.png b/res/drawable-xxhdpi/ic_grade_24dp.png Binary files differnew file mode 100644 index 000000000..aa5879215 --- /dev/null +++ b/res/drawable-xxhdpi/ic_grade_24dp.png diff --git a/res/drawable-xxhdpi/ic_people_24dp.png b/res/drawable-xxhdpi/ic_people_24dp.png Binary files differnew file mode 100644 index 000000000..6c68435fb --- /dev/null +++ b/res/drawable-xxhdpi/ic_people_24dp.png diff --git a/res/drawable-xxhdpi/ic_schedule_24dp.png b/res/drawable-xxhdpi/ic_schedule_24dp.png Binary files differnew file mode 100644 index 000000000..bfc72736a --- /dev/null +++ b/res/drawable-xxhdpi/ic_schedule_24dp.png diff --git a/res/drawable-xxxhdpi/ic_grade_24dp.png b/res/drawable-xxxhdpi/ic_grade_24dp.png Binary files differnew file mode 100644 index 000000000..7f38d0963 --- /dev/null +++ b/res/drawable-xxxhdpi/ic_grade_24dp.png diff --git a/res/drawable-xxxhdpi/ic_people_24dp.png b/res/drawable-xxxhdpi/ic_people_24dp.png Binary files differnew file mode 100644 index 000000000..5676f7041 --- /dev/null +++ b/res/drawable-xxxhdpi/ic_people_24dp.png diff --git a/res/drawable-xxxhdpi/ic_schedule_24dp.png b/res/drawable-xxxhdpi/ic_schedule_24dp.png Binary files differnew file mode 100644 index 000000000..b94f4dfa1 --- /dev/null +++ b/res/drawable-xxxhdpi/ic_schedule_24dp.png diff --git a/src/com/android/dialer/list/ListsFragment.java b/src/com/android/dialer/list/ListsFragment.java index 45b2f689d..0410814b8 100644 --- a/src/com/android/dialer/list/ListsFragment.java +++ b/src/com/android/dialer/list/ListsFragment.java @@ -80,6 +80,7 @@ public class ListsFragment extends Fragment implements CallLogQueryHandler.Liste new ArrayList<OnPageChangeListener>(); private String[] mTabTitles; + private int[] mTabIcons; private CallLogAdapter mCallLogAdapter; private CallLogQueryHandler mCallLogQueryHandler; @@ -220,7 +221,13 @@ public class ListsFragment extends Fragment implements CallLogQueryHandler.Liste mTabTitles[TAB_INDEX_RECENTS] = getResources().getString(R.string.tab_recents); mTabTitles[TAB_INDEX_ALL_CONTACTS] = getResources().getString(R.string.tab_all_contacts); + mTabIcons = new int[TAB_INDEX_COUNT]; + mTabIcons[TAB_INDEX_SPEED_DIAL] = R.drawable.tab_speed_dial; + mTabIcons[TAB_INDEX_RECENTS] = R.drawable.tab_recents; + mTabIcons[TAB_INDEX_ALL_CONTACTS] = R.drawable.tab_contacts; + mViewPagerTabs = (ViewPagerTabs) parentView.findViewById(R.id.lists_pager_header); + mViewPagerTabs.setTabIcons(mTabIcons); mViewPagerTabs.setViewPager(mViewPager); addOnPageChangeListener(mViewPagerTabs); |