Issue
In TabLayout there are 4 tabs. At 2nd tab I have EditText(for search).When entered some text in EditText and when swipe to another tab again and I come back to watch EditText, whatever I entered text which is not cleared. But I want to clear EditText when swiped to other tab.
Solution
try this in your edittext fragment..
@Override
public void setMenuVisibility(final boolean visible) {
super.setMenuVisibility(visible);
if (visible) {
}
else
{
edittext.setText("");
}
}
Answered By - faisal iqbal
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.