How To Increase Icon Size Of Actionbutton In Sherlockactionbar? October 17, 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 :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); CopyThat 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 JugaHow Exactly Does Jvm Compile Ternary Operators? Should I Be Concerned About Different Api Versions?Pass Data To Another Fragment By Swipe View With Tab Android Studio,not ButtonHow To Rotate Imageview From Its Centre Position Share You may like these postsHow To Add App Launcher Icon To Homescreen On Android Oreo(8.0)?How To Create An Android Application That Support And Run Perfect All Screen Size Mobile Device And Tablets?Android - How To Execute Main Functionality Of Project Only By Clicking On The Icon Of Application?Android Menu Item With Both Icon And Text Together When Showasaction Is Never 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?"