diff options
author | Mindy Pereira <mindyp@google.com> | 2012-05-25 08:47:58 -0700 |
---|---|---|
committer | Mindy Pereira <mindyp@google.com> | 2012-05-25 08:57:01 -0700 |
commit | 5c9051141d7dc1a21ea619c10afcd18e37b615a2 (patch) | |
tree | 0f3beda9d31928c4dd65c5dd53e23b35b110f17d /chips/res | |
parent | 932ec21b60a7829e0535b105172045daaed3278e (diff) | |
download | android_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
Diffstat (limited to 'chips/res')
-rw-r--r-- | chips/res/layout/chips_waiting_for_directory_search.xml | 23 |
1 files changed, 12 insertions, 11 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> |