How To Increase Icon Size Of ActionButton In SherlockActionBar? February 22, 2023 Post a Comment 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 : View customNav = LayoutInflater.from(this).inflate(R.layout.my_button, null); // layout which contains your button. Button mButton = (Button) customNav.findViewById(R.id.date_num); mButton.setOnClickListener(this); getSupportActionBar().setCustomView(customNav); getSupportActionBar().setDisplayShowCustomEnabled(true); Copy That should do the trick. You can use Button or ImageButton to achieve this. Solution 2: Use high resolution transparent PNG images with no padding. Follow the Icon Design Guidelines. You can also use the Action Bar and Tab Icon Generator to generate icons specific to the guidelines.Baca JugaCan A Mobile App Which Supports An Mdm Work On Devices Which Do Not Run On MdmsNoclassdeffounderror On Calligraphy LibraryProtect Android Application From Piracy Share You may like these postsHow To Get Contact Information In Android?Sqldroid And Encrypted DatabaseList View Not Scrolling In Fragment Using View Pager Inside NestedscrollviewAttempt To Invoke Virtual Method 'void Android.support.v4.view.viewpager.setadapter(android.support.v4.view.pageradapter)' On A Null Object Reference Post a Comment for "How To Increase Icon Size Of ActionButton In SherlockActionBar?"
Post a Comment for "How To Increase Icon Size Of ActionButton In SherlockActionBar?"