I want to add image view on action bar right hand side.I tried to do that but i couldn\'t. Can anyone help me?
This is my image view xml
Use
ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayShowCustomEnabled(true);
LayoutInflater inflator = (LayoutInflater) this .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View v = inflator.inflate(R.layout.custom_imageview, null);
actionBar.setCustomView(v);
Code for Custom ImageView