Note that there are some explanatory texts on larger screens.

plurals
  1. POHide the share action icon near the share action provider WITHOUT ActionBarSherlock
    primarykey
    data
    text
    <p>I'm quite new to Android development and I'm trying to build an ActionBar with the <strong>ShareActionProvider</strong>, using the "stock" ActionBar (i.e. <strong>not</strong> using ActionBarSherlock), because I want to target ICS+ devices only.</p> <p>I would like the history function enabled (as it is by default), but I don't want the most used intent icon near the share button, because it takes too much space.<br> I know that using ActionBarSherlock this is possible, but as I said I'm trying to do it with the stock ActionBar, so I would like to know how to overcome to this problem.</p> <p>I've found these two related answers:<br> <a href="https://stackoverflow.com/questions/15755465/how-to-hide-the-share-action-which-use-most-icon-near-the-share-action-provide">How to hide the share action (which use most) icon near the share action provider?</a><br> <a href="https://stackoverflow.com/questions/13395601/android-shareactionprovider-with-no-history">Android: ShareActionProvider with no history</a></p> <p>but none of them clearly say how to edit the Android sources to have another "version" of the ActionBar that hides the icon.<br> I mean, how can I combine the two answers and ship my application with the modified ActionBar class that hides the most-used icon?</p> <p>EDIT:<br> I'm looking for a brief list of operations that have to be done to extend the three classes <strong>ShareActionProvider</strong>, <strong>ActivityChooserView</strong> and <strong>ActivityChooserMode</strong> to build a modified version of them that doesn't raise errors in Eclipse. AFAIK this is not documented elsewhere on the web (Google doesn't give results).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload