Detect animation finish in Android's RecyclerView
问题 The RecyclerView , unlike to ListView , doesn't have a simple way to set an empty view to it, so one has to manage it manually, making empty view visible in case of adapter's item count is 0. Implementing this, at first I tried to call empty view logic right after modifying underlaying structure ( ArrayList in my case), for example: btnRemoveFirst.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { devices.remove(0); // remove item from ArrayList adapter