When an action item is long-clicked, a Toast without text is show below the action item.
Can I disable the Toast
?
Thanks you.
Using this answer to get the action bar view: https://stackoverflow.com/a/21125631/555914 I used this to disable the toast:
View actionBar = AppUtils.getActionBarView(getActivity());
if(actionBar!=null) {
View item = actionBar.findViewById(id);
if(item!=null) {
item.setOnLongClickListener(null);
}
}
Although I do not recommend disabling this functionality but sometimes designers want something for esthetic reasons...