Merge "Change the width of the suggestion item to match the one of the suggestion pop-up"
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user