enter image description here Hi everybody i want to put 3 ImageView in action bar two ImageView fixed and one does a zoom animation i try several times but i can not find the solution i want here is the code i'm using .help me please
getSupportActionBar().setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.colorBleu)));
android.support.v7.app.ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayShowCustomEnabled(true);
//desactive le titre d'action bar
actionBar.setDisplayShowTitleEnabled(false);
actionBar.setDisplayShowHomeEnabled(false);
LayoutInflater inflator = (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
assert inflator != null;
View v = inflator.inflate(R.layout.custom_imageview, null);
actionBar.setCustomView(v);
AnimationSet animation = new AnimationSet(true);
animation.addAnimation(new AlphaAnimation(0.0F, 1.0F));
animation.addAnimation(new ScaleAnimation(0.8f, 1.5f, 0.8f, 1.5f));
animation.setDuration(4000);
v.startAnimation(animation);
Just use a Toolbar instead of actionbar. Some example: