Use control color for auto complete action button

This commit is contained in:
M66B 2021-07-02 08:05:57 +02:00
parent 3ae1bd3374
commit b63f5de879
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ public class TextViewAutoCompleteAction extends AppCompatAutoCompleteTextView {
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.TextViewAutoCompleteAction, 0, 0);
drawable = a.getDrawable(R.styleable.TextViewAutoCompleteAction_end_drawable);
}
drawable.setTint(getCurrentTextColor());
int colorControlNormal = Helper.resolveColor(context, R.attr.colorControlNormal);
drawable.setTint(colorControlNormal);
drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
setOnTouchListener(new OnTouchListener() {