summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMindy Pereira <mindyp@google.com>2012-05-25 08:47:58 -0700
committerMindy Pereira <mindyp@google.com>2012-05-25 08:57:01 -0700
commit5c9051141d7dc1a21ea619c10afcd18e37b615a2 (patch)
tree0f3beda9d31928c4dd65c5dd53e23b35b110f17d
parent932ec21b60a7829e0535b105172045daaed3278e (diff)
downloadandroid_frameworks_ex-5c9051141d7dc1a21ea619c10afcd18e37b615a2.tar.gz
android_frameworks_ex-5c9051141d7dc1a21ea619c10afcd18e37b615a2.tar.bz2
android_frameworks_ex-5c9051141d7dc1a21ea619c10afcd18e37b615a2.zip
The mysterious blank item was just a mis-used layout
Was expecting the chips_waiting_for_directory_search layout But was given the chips_recipient layout Fixed this to use the correct layout fixes b/6546713 Blank suggestion is sometimes shown even if nothing was typed that's at least part of the problem why it shows up "uninvited" is another question Change-Id: Ie60b9ae8f7f86dda4316fee43b3983fbe0f17cb0
-rw-r--r--chips/res/layout/chips_waiting_for_directory_search.xml23
-rw-r--r--chips/src/com/android/ex/chips/BaseRecipientAdapter.java2
2 files changed, 13 insertions, 12 deletions
diff --git a/chips/res/layout/chips_waiting_for_directory_search.xml b/chips/res/layout/chips_waiting_for_directory_search.xml
index cc35c35..5ed1ec2 100644
--- a/chips/res/layout/chips_waiting_for_directory_search.xml
+++ b/chips/res/layout/chips_waiting_for_directory_search.xml
@@ -16,16 +16,26 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
- android:layout_height="50dip"
+ android:layout_height="wrap_content"
+ android:minHeight="48dip"
android:orientation="horizontal"
android:layout_centerVertical="true"
android:layout_gravity="center_vertical">
+ <ProgressBar android:id="@+id/progress_circular"
+ style="?android:attr/progressBarStyle"
+ android:indeterminate="true"
+ android:layout_centerVertical="true"
+ android:layout_alignParentLeft="true"
+ android:layout_marginLeft="8dip"
+ android:layout_marginRight="8dip"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
<TextView android:id="@+id/text1"
android:textColor="?android:attr/textColorSecondary"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
+ android:layout_toRightOf="@id/progress_circular"
android:layout_centerVertical="true"
android:gravity="center_vertical"
android:paddingLeft="6dip"
@@ -33,13 +43,4 @@
android:ellipsize="end"
android:text="@string/chips_waiting_for_directory_result"
/>
- <ProgressBar android:id="@+id/progress_circular"
- style="?android:attr/progressBarStyleSmall"
- android:indeterminate="true"
- android:layout_centerVertical="true"
- android:layout_alignParentRight="true"
- android:layout_marginLeft="6dip"
- android:layout_marginRight="6dip"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
</RelativeLayout>
diff --git a/chips/src/com/android/ex/chips/BaseRecipientAdapter.java b/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
index fb6378b..a0ebd7f 100644
--- a/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
+++ b/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
@@ -916,7 +916,7 @@ public abstract class BaseRecipientAdapter extends BaseAdapter implements Filter
* Returns a layout id for a view showing "waiting for more contacts".
*/
protected int getWaitingForDirectorySearchLayout() {
- return R.layout.chips_recipient_dropdown_item;
+ return R.layout.chips_waiting_for_directory_search;
}
/**