Merge "Change the width of the suggestion item to match the one of the suggestion pop-up"

This commit is contained in:
Luca Zanolin
2011-09-29 01:09:47 -07:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 1 deletions

View File

@@ -9770,6 +9770,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
View view = null;
for (int i = 0; i < mNumberOfSuggestions; i++) {
view = mSuggestionsAdapter.getView(i, view, mContentView);
view.getLayoutParams().width = LayoutParams.WRAP_CONTENT;
view.measure(horizontalMeasure, verticalMeasure);
width = Math.max(width, view.getMeasuredWidth());
}

View File

@@ -15,7 +15,7 @@
-->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="16dip"
android:paddingRight="16dip"