This seems to be a bug in API 21 - Issue 77982 .
. .
:
1) Actually, the 21 works fine. Is the 19 that doesn't.
- " api 21 Android". sdk 21, sdk 21, apis.
2) searchView.setPadding(40, 0, 55, 0);
, , . dp
int paddingLeft = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 40, getResources().getDisplayMetrics());
int paddingRight = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 55, getResources().getDisplayMetrics());
int paddingTop = editText.getPaddingTop();
int paddingBottom = editText.getPaddingBottom();
editText.setPadding(paddingLeft, paddingTop, paddingRight, paddingBottom);