summaryrefslogtreecommitdiffstats
path: root/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
diff options
context:
space:
mode:
authorMindy Pereira <mindyp@google.com>2011-12-15 13:35:37 -0800
committerMindy Pereira <mindyp@google.com>2011-12-15 14:49:03 -0800
commita11c2b0e1ea043aa4d8745285f2dcbe20448b417 (patch)
tree40bce7e838e164c31ba947b2f873994b040c172e /chips/src/com/android/ex/chips/BaseRecipientAdapter.java
parent0c980c3f851ee251e8914ae439403acf3c446268 (diff)
downloadandroid_frameworks_ex-a11c2b0e1ea043aa4d8745285f2dcbe20448b417.tar.gz
android_frameworks_ex-a11c2b0e1ea043aa4d8745285f2dcbe20448b417.tar.bz2
android_frameworks_ex-a11c2b0e1ea043aa4d8745285f2dcbe20448b417.zip
Update build file to allow us to have resources in static libs.
Depends on: Change Ifb4d2300: Support to build static Java library with Android resource Change-Id: Ie1ac8c93cb3f12a7d4e9afd873a13607ed72b932
Diffstat (limited to 'chips/src/com/android/ex/chips/BaseRecipientAdapter.java')
-rw-r--r--chips/src/com/android/ex/chips/BaseRecipientAdapter.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/chips/src/com/android/ex/chips/BaseRecipientAdapter.java b/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
index 8c251bb..e788fc1 100644
--- a/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
+++ b/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
@@ -901,18 +901,24 @@ public abstract class BaseRecipientAdapter extends BaseAdapter implements Filter
* (for photo). Ids for those should be available via {@link #getDisplayNameId()},
* {@link #getDestinationId()}, and {@link #getPhotoId()}.
*/
- protected abstract int getItemLayout();
+ protected int getItemLayout() {
+ return R.layout.chips_recipient_dropdown_item;
+ }
/**
* Returns a layout id for a view showing "waiting for more contacts".
*/
- protected abstract int getWaitingForDirectorySearchLayout();
+ protected int getWaitingForDirectorySearchLayout() {
+ return R.layout.chips_recipient_dropdown_item;
+ }
/**
* Returns a resource ID representing an image which should be shown when ther's no relevant
* photo is available.
*/
- protected abstract int getDefaultPhotoResource();
+ protected int getDefaultPhotoResource() {
+ return R.drawable.ic_contact_picture;
+ }
/**
* Returns an id for TextView in an item View for showing a display name. By default