How do I get the initial entry to return when I click the FloatingActionButton again? Here is the code:
final FloatingActionButton btnKzt = (FloatingActionButton)header_0.findViewById(R.id.btn_kzt); btnKzt.setImageDrawable(getResources().getDrawable(R.drawable.ic_kzt)); btnKzt.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { btnKzt.setImageDrawable(getResources().getDrawable(R.drawable.ic_usd)); } }); When you run the application inside the fab there is a KZT entry, when pressed, the entry changes to USD. How to make the second click to return the record KZT ??