From afdd8b997dc3e82a81fa9605e05428f51464842e Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 5 Oct 2015 17:57:40 -0700 Subject: Convert caller information into list header. this allows us to scroll the header with the rest of the screen, instead of having it pinned to the top, as it is currently. Bug: 24109819 Change-Id: Ic440bc18d31d196493a86130e06d954c453c9146 --- res/layout/call_detail.xml | 83 +----------------------- res/layout/call_detail_header.xml | 89 ++++++++++++++++++++++++++ res/layout/call_details_voicemail_header.xml | 31 --------- res/values/dimens.xml | 2 +- src/com/android/dialer/CallDetailActivity.java | 3 + 5 files changed, 95 insertions(+), 113 deletions(-) create mode 100644 res/layout/call_detail_header.xml delete mode 100644 res/layout/call_details_voicemail_header.xml diff --git a/res/layout/call_detail.xml b/res/layout/call_detail.xml index 591ba5c45..7d9124888 100644 --- a/res/layout/call_detail.xml +++ b/res/layout/call_detail.xml @@ -13,91 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/res/layout/call_details_voicemail_header.xml b/res/layout/call_details_voicemail_header.xml deleted file mode 100644 index e3640faf4..000000000 --- a/res/layout/call_details_voicemail_header.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - diff --git a/res/values/dimens.xml b/res/values/dimens.xml index d35a78d12..1d5717735 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -44,7 +44,7 @@ 16dp 20dp 9dp - 0.5dp + 0.5dp 18dp 18dp diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index c8a5356a6..a43ec3edc 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -231,6 +231,9 @@ public class CallDetailActivity extends AppCompatActivity mVoicemailUri = getIntent().getParcelableExtra(EXTRA_VOICEMAIL_URI); + ListView historyList = (ListView) findViewById(R.id.history); + historyList.addHeaderView(mInflater.inflate(R.layout.call_detail_header, null)); + mQuickContactBadge = (QuickContactBadge) findViewById(R.id.quick_contact_photo); mQuickContactBadge.setOverlay(null); mQuickContactBadge.setPrioritizedMimeType(Phone.CONTENT_ITEM_TYPE); -- cgit v1.2.3