I am using Toolbar search widget in my project. Everything works fine but expect the thing which I am completely stuck up with removing the underline below search field in m
For AndroidX I used this based on other answers here,
mSearchView.findViewById(androidx.appcompat.R.id.search_plate) .setBackgroundColor(Color.TRANSPARENT);