Skip to content Skip to sidebar Skip to footer

How To Increase Icon Size Of Actionbutton In Sherlockactionbar?

To define the actionButton and set its icon, I would:

Solution 1:

First of all I suggest you to try with different sizes of the icon which you want, without no paddings until you achieve your goal. If that not suits you, you can add a custom view in actionbar and set OnClickListener on a button and achieve your goal. Here is a way how to do this :

ViewcustomNav= LayoutInflater.from(this).inflate(R.layout.my_button, null); // layout which contains your button.ButtonmButton= (Button) customNav.findViewById(R.id.date_num);
mButton.setOnClickListener(this);

getSupportActionBar().setCustomView(customNav);
getSupportActionBar().setDisplayShowCustomEnabled(true);

That should do the trick. You can use Button or ImageButton to achieve this.

Solution 2:

Post a Comment for "How To Increase Icon Size Of Actionbutton In Sherlockactionbar?"