Dialpad: T9 Dialer - Fixes

- Added highlight for matching part of number/name in all entries
  in the drop down list

- Replaced the QuickContactBadge and TextView items with a ListView
  like in the drop down but with only 1 element. This way the
  first entry and the drop down entries all look the same.
  This also adds the (mobile/home/...) indicator in the first item.

- Some changes to the layout xml:
  * Reverted the height of the digit editbox to a fixed value.
    This should fix the cut off text on smaller resolutions.
  * Reduced the size of the dropdown arrow to match the height
    of the ListView item row (40dip)

- call searchContacts() in onKey(), too, to make it work with
  hard-keyboards and the android soft-keyboard

Patch Set 2:
- If/else was swapped accidently

Patch Set 3:
- Fine tuned layout parameters:
  * Fixed mdpi dial pad
  * Limited size of mdpi digit box just like hdpi
  * Made first result entry fixed height to fit the large
    list below (almost looks like one continous list now)

Patch Set 4:
- Same as Patch Set 3, but for landscape

Patch Set 5:
- Remove unneded setNumber() method in T9Adapter, and use mPrevInput
  field of T9Search instead
- Set cursor to the end of the digits input after selecting a number
  from the t9 search results
- Prevent android soft keyboard from popping up and messing up the
  layout when clicking the digits edittext to move the cursor

Patch Set 6:
- Fixed toggle arrow not missing on ldpi devices
  (replaced 9patch graphics with fixed ones)
- Remove unneeded drawable/t9result_state.xml

Change-Id: I5867f82be089f77012b114536ae913fabf6c8b09
Fix a possible null pointer exeption editing a contact.

Change-Id: I4c6fb8f6f5c72ae4b286514e4a1dfd8a6bb66632

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Dialpad: T9 Dialer - Additional Fixes

Included fixes from
http://review.cyanogenmod.com/#change,11107

Change-Id: Icec955bdb03e8341df5c6f2d82bd6448fcc191f0
Dialpad: perform search when retrieving last dialled number

Change-Id: I5ec0b565b15605017bd878ae0c3b1dc94907530d
Signed-off-by: Spencer Oliver <spenoliver@gmail.com>
Merge "Fix a possible null pointer exeption editing a contact." into gingerbread
Merge remote-tracking branch 'cm-gingerbread/gingerbread' into gingerbread