Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change SearchView text size? #236

Open
iman2420 opened this issue May 12, 2019 · 2 comments
Open

How to change SearchView text size? #236

iman2420 opened this issue May 12, 2019 · 2 comments

Comments

@iman2420
Copy link

No description provided.

@iman2420
Copy link
Author

I Do it by 💯

  `int resourceId = this.getResources().getIdentifier("searchTextView", "id", Objects.requireNonNull(getContext()).getPackageName());
        AppCompatEditText search_text = searchView.findViewById(resourceId);
        search_text.setTextColor(Color.WHITE);
        search_text.setTextSize(TypedValue.COMPLEX_UNIT_PX, getResources().getDimensionPixelSize(R.dimen.text_font_size_small));`

@alexlovar
Copy link

int resourceId = this.getResources().getIdentifier("searchTextView", "id", Objects.requireNonNull(getContext()).getPackageName()); AppCompatEditText search_text = searchView.findViewById(resourceId); search_text.setTextColor(Color.WHITE); search_text.setTextSize(TypedValue.COMPLEX_UNIT_PX, getResources().getDimensionPixelSize(R.dimen.text_font_size_small));

hi, where i need to put this code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants