title: Width of Action bar android
body: <pre><code>View customNav = LayoutInflater.from(this).inflate(R.layout.activity_custom_layout, null);     
  actionBar.setCustomView(customNav); 
  actionBar.setDisplayShowCustomEnabled(true); 
  final Context context1 = this; 
  ImageButton ibItem1 = (ImageButton) customNav.findViewById(R.id.refresh); 
  ibItem1.setPadding(280, 0, 0, 0); 
  ibItem1.setVisibility(View.INVISIBLE); 
  ibItem1.setOnClickListener(new View.OnClickListener() 
  { @Override public void onClick(View view) { } });
  </code></pre>
  
  <p>I have added custom view with image button to android action bar,image button size is
  small,so need to change the size of action bar for proper image size?</p>